From: Martin Pycko Date: Fri, 26 Sep 2003 17:28:57 +0000 (+0000) Subject: Don't do callprogress on incoming calls -> that used to put that call in a wierd... X-Git-Tag: 0.7.0~464 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be64ea63b115e2be0b63d7ed92b5c40f03f9511c;p=thirdparty%2Fasterisk.git Don't do callprogress on incoming calls -> that used to put that call in a wierd state 6 and the call is not answered. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1548 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index d58a31cff1..0f10cce72f 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -2660,7 +2660,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast) zt_enable_ec(p); p->dialing = 0; if (ast->_state == AST_STATE_DIALING) { - if (p->callprogress && CANPROGRESSDETECT(p) && p->dsp) { + if (p->callprogress && CANPROGRESSDETECT(p) && p->dsp && i->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_EMWINK) || (p->sig == SIG_FEATD) || (p->sig == SIG_FEATDMF) || (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);