From: Kevin P. Fleming Date: Fri, 1 Dec 2006 23:30:59 +0000 (+0000) Subject: if Dial() is going to send music-on-hold to the calling party, it has to send PROGRES... X-Git-Tag: 1.2.14~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37d6a18db1aa25fbc462d3bc39a1bcf11164bf6b;p=thirdparty%2Fasterisk.git if Dial() is going to send music-on-hold to the calling party, it has to send PROGRESS first to ensure that the reverse audio path has been setup first (BE-106) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48192 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 1d414bc306..662a2142aa 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1197,6 +1197,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags strcpy(status, "NOANSWER"); if (ast_test_flag(outgoing, OPT_MUSICBACK)) { moh=1; + ast_indicate(chan, AST_CONTROL_PROGRESS); ast_moh_start(chan, opt_args[OPT_ARG_MUSICBACK]); } else if (ast_test_flag(outgoing, OPT_RINGBACK)) { ast_indicate(chan, AST_CONTROL_RINGING);