]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Implicitly sending a progress signal breaks some applications.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 24 Sep 2009 19:39:41 +0000 (19:39 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 24 Sep 2009 19:39:41 +0000 (19:39 +0000)
Call Progress() in your dialplan if you explicitly want progress to be sent.
(Reverts change 216430, closes issue #15957)
Reported by: Pavel Troller on the Asterisk-Dev mailing list
http://lists.digium.com/pipermail/asterisk-dev/2009-September/039897.html

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@220288 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_disa.c
apps/app_playback.c
main/pbx.c

index 038274057936f404023718834f2549e6ea4e8ff5..3c8bad9d4a7130b4dadc20db8a1e957e67f599e9 100644 (file)
@@ -176,12 +176,7 @@ static int disa_exec(struct ast_channel *chan, void *data)
                        /* answer */
                        ast_answer(chan);
                }
-       } else {
-               special_noanswer = 1;
-               if (chan->_state != AST_STATE_UP) {
-                       ast_indicate(chan, AST_CONTROL_PROGRESS);
-               }
-       }
+       } else special_noanswer = 1;
        i = k = x = 0; /* k is 0 for pswd entry, 1 for ext entry */
        did_ignore = 0;
        exten[0] = 0;
index 972435f18cfdfd2410454a1aaaf232fe85b96a6b..0b788e23a74109d7f3f83f46ccbed77beee20402 100644 (file)
@@ -421,10 +421,7 @@ static int playback_exec(struct ast_channel *chan, void *data)
                } else if (!option_noanswer) {
                        /* Otherwise answer unless we're supposed to send this while on-hook */
                        res = ast_answer(chan);
-               } else {
-                       ast_indicate(chan, AST_CONTROL_PROGRESS);
                }
-
        }
        if (!res) {
                char *back = args.filenames;
index 78abecfae5a50c264d57a1daf519adf2aff50a39..7cf669c1f198b208b2af9a751c33fe3787bfedc6 100644 (file)
@@ -5710,8 +5710,6 @@ static int pbx_builtin_background(struct ast_channel *chan, void *data)
                } else if (!ast_test_flag(&flags, BACKGROUND_NOANSWER)) {
                        res = ast_answer(chan);
                }
-               /* Send progress control frame to start early media */
-               ast_indicate(chan, AST_CONTROL_PROGRESS);
        }
 
        if (!res) {