[Asterisk-cvs] asterisk pbx.c,1.126,1.127
markster at lists.digium.com
markster at lists.digium.com
Tue Jun 22 00:05:39 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv16821
Modified Files:
pbx.c
Log Message:
Add "Progress" application
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.126
retrieving revision 1.127
diff -u -d -r1.126 -r1.127
--- pbx.c 13 Jun 2004 21:25:09 -0000 1.126
+++ pbx.c 22 Jun 2004 03:51:34 -0000 1.127
@@ -167,6 +167,7 @@
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 @@
"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 @@
} 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);
More information about the svn-commits
mailing list