]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure we check the faxdetect option before doing fax processing
authorMatthew Fredrickson <creslin@digium.com>
Fri, 6 Apr 2007 18:21:52 +0000 (18:21 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Fri, 6 Apr 2007 18:21:52 +0000 (18:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60485 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 408a7734b08c4e4e832c28ced9e3a9acf7cb3108..d7bc60a6dded376d4698f77689bf50427fe92ae7 100644 (file)
@@ -3610,7 +3610,7 @@ static void zt_handle_dtmfup(struct ast_channel *ast, int index, struct ast_fram
                *dest = &p->subs[index].f;
        } else if (f->subclass == 'f') {
                /* Fax tone -- Handle and return NULL */
-               if (!p->faxhandled) {
+               if ((p->callprogress & 0x6) && !p->faxhandled) {
                        p->faxhandled++;
                        if (strcmp(ast->exten, "fax")) {
                                const char *target_context = S_OR(ast->macrocontext, ast->context);