aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-25 21:17:08 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-25 21:17:08 +0000
commit986a043379fc8afb746a077c8dfef0d8ca637fb9 (patch)
tree28a243b1872bd4cf7b55d6052be7aa4ca08d0acc
parent35156b337258a39d0994770a8b0c68431f406c42 (diff)
Don't munge outgoing call progress when fax enabled (bug #1909)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3308 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 2c48f67ea..26c0c95c7 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -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);