]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
reset 'confirm' mode so DTMF can be used by Zap callees after confirming (bug #4083)
authorRussell Bryant <russell@russellbryant.com>
Thu, 19 May 2005 03:13:31 +0000 (03:13 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 19 May 2005 03:13:31 +0000 (03:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5730 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index fb899d45fe9bcae220aabbadbc7a3130f92f421e..3f80f1234fcd57d3d0ab667e9f3362bf8b9c16c6 100755 (executable)
@@ -4044,6 +4044,8 @@ struct ast_frame  *zt_read(struct ast_channel *ast)
                        p->subs[index].f.subclass = AST_CONTROL_ANSWER;
                        ast_setstate(ast, AST_STATE_UP);
                        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");