summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-12-02 23:09:04 +0000
committerMark Spencer <markster@digium.com>2003-12-02 23:09:04 +0000
commit08c7c4be3131df965fcc2ac30167900f344e4964 (patch)
tree7ef1c5ddf520e5ff055ef198bbde197f2f8549da
parentb3e9086d5d89f7e53c0186c5251a524bdaf6ffb1 (diff)
Don't retrain after each digit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1814 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index d9ff15771..a0f0636ba 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -2735,8 +2735,8 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
}
if (!x) { /* if not still dialing in driver */
zt_enable_ec(p);
- zt_train_ec(p);
if (p->echobreak) {
+ zt_train_ec(p);
strcpy(p->dop.dialstr, p->echorest);
p->dop.op = ZT_DIAL_OP_REPLACE;
res = ioctl(p->subs[SUB_REAL].zfd, ZT_DIAL, &p->dop);