summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-04-27 01:59:00 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-04-27 01:59:00 +0000
commitcd932e2234a613c3eb5c7be7a6758c48b5d29400 (patch)
tree7e7f8eaab9256f5342a0f9991927d2c2fb85f117
parenta1d24f740fd7dd66d2dab1b735951ef4540c3b7c (diff)
reset 'confirm' mode so DTMF can be used by Zap callees after confirming (bug #4083)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index fb550f030..95fef3cd0 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -4318,6 +4318,8 @@ struct ast_frame *zt_read(struct ast_channel *ast)
p->subs[index].f.frametype = AST_FRAME_CONTROL;
p->subs[index].f.subclass = AST_CONTROL_ANSWER;
f = &p->subs[index].f;
+ /* Reset confirmanswer so DTMF's will behave properly for the duration of the call */
+ p->confirmanswer = 0;
} else if (p->callwaitcas) {
if ((f->subclass == 'A') || (f->subclass == 'D')) {
ast_log(LOG_DEBUG, "Got some DTMF, but it's for the CAS\n");