mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user