From: Mark Spencer Date: Fri, 9 Apr 2004 16:33:37 +0000 (+0000) Subject: Don't take digits in-band when in overlap dial mode X-Git-Tag: 1.0.0-rc1~755 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=639438836b7a0db34ca52477d979ecfaef63aa8f;p=thirdparty%2Fasterisk.git Don't take digits in-band when in overlap dial mode git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2668 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c0af6cf351..818a072702 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -3673,6 +3673,11 @@ struct ast_frame *zt_read(struct ast_channel *ast) f = NULL; } } else if (f->frametype == AST_FRAME_DTMF) { + if (!p->proceeding && p->sig==SIG_PRI && p->pri && p->pri->overlapdial) { + /* Don't accept in-band DTMF when in overlap dial mode */ + f->frametype = AST_FRAME_NULL; + f->subclass = 0; + } /* DSP clears us of being pulse */ p->pulsedial = 0; }