aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-25 17:31:18 +0000
committerrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2011-01-25 17:31:18 +0000
commitc6e8b5068cd5ba8c0695a76098cbed4bb4adf2b7 (patch)
tree58fb0f433b9ca052a2af4161956bab7c17fb355a
parent01629efea645c7d68320bf9fb9696931efa36e76 (diff)
Backport the Proceeding application.
Added in trunk -r129399. Enable the workaround for issue #17085 and #18509. (issue #17085) (issue #18509) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@303747 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 4bd4ca010..6301745c7 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -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"
@@ -5486,6 +5493,15 @@ static void wait_for_hangup(struct ast_channel *chan, void *data)
/*!
* \ingroup applications
*/
+static int pbx_builtin_proceeding(struct ast_channel *chan, void *data)
+{
+ ast_indicate(chan, AST_CONTROL_PROCEEDING);
+ return 0;
+}
+
+/*!
+ * \ingroup applications
+ */
static int pbx_builtin_progress(struct ast_channel *chan, void *data)
{
ast_indicate(chan, AST_CONTROL_PROGRESS);