aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-09 15:57:06 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-09 15:57:06 +0000
commitf28510535a1d5b548e5cdaa7cbfe909fcea3ec1e (patch)
treec3d9a365fe8c846ab3ee12ed34c23a80e99c4c1e /main/pbx.c
parent8d596c6a2471dd156d1d45d0adcb9e9c4feae8eb (diff)
Add Proceeding() application (#13025)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@129399 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c20
1 files changed, 18 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 545bf5c74..7bf4faab0 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -292,6 +292,7 @@ static int pbx_builtin_keepalive(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 *);
@@ -588,9 +589,15 @@ static struct pbx_builtin {
"purposes. Any text that is provided as arguments to this application can be\n"
"viewed at the Asterisk CLI. This method can be used to see the evaluations of\n"
"variables or functions without having any effect. Alternatively, see the\n"
- "Verbose() application for finer grain control of output at custom verbose levels.\n"
+ "Verbose() application for finer grain control of output at custom verbose levels.\n"
},
-
+
+ { "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"
@@ -7224,6 +7231,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);