]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
if Dial() is going to send music-on-hold to the calling party, it has to send PROGRES...
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 1 Dec 2006 23:30:59 +0000 (23:30 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 1 Dec 2006 23:30:59 +0000 (23:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48192 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 1d414bc30636bdd10bf6e77bc1e744501353d2fe..662a2142aa92195ba57b0a80162f69c3deb34b1a 100644 (file)
@@ -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);