]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't munge outgoing call progress when fax enabled (bug #1909)
authorMark Spencer <markster@digium.com>
Fri, 25 Jun 2004 21:17:08 +0000 (21:17 +0000)
committerMark Spencer <markster@digium.com>
Fri, 25 Jun 2004 21:17:08 +0000 (21:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3308 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 2c48f67ea54c62df6f4854cc264c397237186a28..26c0c95c794be5aa92ce36fa9b5828cd7909532f 100755 (executable)
@@ -3060,7 +3060,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast)
                                                }
                                        }
                                        if (ast->_state == AST_STATE_DIALING) {
-                                               if (p->callprogress && CANPROGRESSDETECT(p) && p->dsp && p->outgoing) {
+                                               if ((p->callprogress & 1) && CANPROGRESSDETECT(p) && p->dsp && p->outgoing) {
                                                        ast_log(LOG_DEBUG, "Done dialing, but waiting for progress detection before doing more...\n");
                                                } else if (p->confirmanswer || (!p->dialednone && ((p->sig == SIG_EM) || (p->sig == SIG_EM_E1) ||  (p->sig == SIG_EMWINK) || (p->sig == SIG_FEATD) || (p->sig == SIG_FEATDMF) || (p->sig == SIG_E911) || (p->sig == SIG_FEATB) || (p->sig == SIG_SF) || (p->sig == SIG_SFWINK) || (p->sig == SIG_SF_FEATD) || (p->sig == SIG_SF_FEATDMF) || (p->sig == SIG_SF_FEATB)))) {
                                                        ast_setstate(ast, AST_STATE_RINGING);