]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Backport the Proceeding application.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 25 Jan 2011 17:31:18 +0000 (17:31 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 25 Jan 2011 17:31:18 +0000 (17:31 +0000)
Added in trunk -r129399.

Enable the workaround for issue #17085 and #18509.

(issue #17085)
(issue #18509)

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

main/pbx.c

index 4bd4ca01063217f25955cb0455e7447922392d23..6301745c7d33c34227dc4a29d89eac41495cdaa2 100644 (file)
@@ -223,6 +223,7 @@ static int pbx_builtin_waitexten(struct ast_channel *, void *);
 static int pbx_builtin_resetcdr(struct ast_channel *, void *);
 static int pbx_builtin_setamaflags(struct ast_channel *, void *);
 static int pbx_builtin_ringing(struct ast_channel *, void *);
+static int pbx_builtin_proceeding(struct ast_channel *, void *);
 static int pbx_builtin_progress(struct ast_channel *, void *);
 static int pbx_builtin_congestion(struct ast_channel *, void *);
 static int pbx_builtin_busy(struct ast_channel *, void *);
@@ -379,6 +380,12 @@ static struct pbx_builtin {
        "variables or functions without having any effect."
        },
 
+       { "Proceeding", pbx_builtin_proceeding,
+       "Indicate proceeding",
+       "  Proceeding(): This application will request that a proceeding message\n"
+       "be provided to the calling channel.\n"
+       },
+
        { "Progress", pbx_builtin_progress,
        "Indicate progress",
        "  Progress(): This application will request that in-band progress information\n"
@@ -5483,6 +5490,15 @@ static void wait_for_hangup(struct ast_channel *chan, void *data)
        } while(f);
 }
 
+/*!
+ * \ingroup applications
+ */
+static int pbx_builtin_proceeding(struct ast_channel *chan, void *data)
+{
+       ast_indicate(chan, AST_CONTROL_PROCEEDING);
+       return 0;
+}
+
 /*!
  * \ingroup applications
  */