]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 48192 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 1 Dec 2006 23:37:28 +0000 (23:37 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 1 Dec 2006 23:37:28 +0000 (23:37 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48192 | kpfleming | 2006-12-01 17:30:59 -0600 (Fri, 01 Dec 2006) | 2 lines

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.4@48193 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index b5c58385fbd26bbeb9b2adae382225db33e6b120..8d3c9e3b432f8e075cedb75a76965e3a8ac65d44 100644 (file)
@@ -1231,6 +1231,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
                if (ast_test_flag(outgoing, OPT_MUSICBACK)) {
                        moh = 1;
                        ast_moh_start(chan, opt_args[OPT_ARG_MUSICBACK], NULL);
+                       ast_indicate(chan, AST_CONTROL_PROGRESS);
                } else if (ast_test_flag(outgoing, OPT_RINGBACK)) {
                        ast_indicate(chan, AST_CONTROL_RINGING);
                        sentringing++;