[asterisk-commits] mattf: trunk r129399 - /trunk/main/pbx.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 9 10:57:07 CDT 2008


Author: mattf
Date: Wed Jul  9 10:57:06 2008
New Revision: 129399

URL: http://svn.digium.com/view/asterisk?view=rev&rev=129399
Log:
Add Proceeding() application (#13025)

Modified:
    trunk/main/pbx.c

Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=129399&r1=129398&r2=129399
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Wed Jul  9 10:57:06 2008
@@ -292,6 +292,7 @@
 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 @@
 	"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 @@
 /*!
  * \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);




More information about the asterisk-commits mailing list