]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 220289 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 24 Sep 2009 19:42:33 +0000 (19:42 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 24 Sep 2009 19:42:33 +0000 (19:42 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r220289 | tilghman | 2009-09-24 14:41:02 -0500 (Thu, 24 Sep 2009) | 13 lines

  Merged revisions 220288 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r220288 | tilghman | 2009-09-24 14:39:41 -0500 (Thu, 24 Sep 2009) | 6 lines

    Implicitly sending a progress signal breaks some applications.
    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.6.1@220291 65c4cc65-6c06-0410-ace0-fbb531ad65f3

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

index d93bb1485b2aa887603fd24f9ed38d490f16bd86..6ced33b1cf2fba8bd40bb714faae68b9413db739 100644 (file)
@@ -160,12 +160,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;
 
        ast_debug(1, "Context: %s\n",args.context);
 
index 0be2c2e48ff0ca61caa92f0303d090a8257390c4..2dc3c5b17e364cd9d1ff25fcb377e232aee85c34 100644 (file)
@@ -429,10 +429,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 36c745e454fb0d1fb631e2b46ea455a02c7f91d5..9a01b9acf30d725e016e44a250a3388fca2550bb 100644 (file)
@@ -8238,8 +8238,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) {