aboutsummaryrefslogtreecommitdiffstats
path: root/pbx.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-22 03:51:34 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-22 03:51:34 +0000
commit64b7fe35eb3ad0b50862624db38ddf3f3a55d98b (patch)
tree1b2f4ded4b8f3789aea6419354fe9ad25fc78d0c /pbx.c
parente7488b16b930362a1f688ae071b45a736652b596 (diff)
Add "Progress" application
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3268 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-xpbx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index d88c265c5..05f3dd20c 100755
--- a/pbx.c
+++ b/pbx.c
@@ -167,6 +167,7 @@ static int pbx_builtin_setlanguage(struct ast_channel *, void *);
static int pbx_builtin_resetcdr(struct ast_channel *, void *);
static int pbx_builtin_setaccount(struct ast_channel *, void *);
static int pbx_builtin_ringing(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 *);
static int pbx_builtin_setglobalvar(struct ast_channel *, void *);
@@ -274,6 +275,11 @@ static struct pbx_builtin {
"which has no first step, the PBX will treat it as though the user dialed an\n"
"invalid extension.\n" },
+ { "Progress", pbx_builtin_progress,
+"Indicate progress",
+" Progress(): Request that the channel indicate in-band progress is available to the user.\n"
+"Always returns 0.\n" },
+
{ "ResetCDR", pbx_builtin_resetcdr,
"Resets the Call Data Record",
" ResetCDR([options]): Causes the Call Data Record to be reset, optionally\n"
@@ -4203,6 +4209,12 @@ static void wait_for_hangup(struct ast_channel *chan)
} while(f);
}
+static int pbx_builtin_progress(struct ast_channel *chan, void *data)
+{
+ ast_indicate(chan, AST_CONTROL_PROGRESS);
+ return 0;
+}
+
static int pbx_builtin_ringing(struct ast_channel *chan, void *data)
{
ast_indicate(chan, AST_CONTROL_RINGING);