From: Richard Mudgett Date: Tue, 25 Jan 2011 17:31:18 +0000 (+0000) Subject: Backport the Proceeding application. X-Git-Tag: 1.4.41-rc1~33 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3903adbb9e9b9a7a08f20f709a955c0aaf774ac;p=thirdparty%2Fasterisk.git Backport the Proceeding application. Added in trunk -r129399. Enable the workaround for issue #17085 and #18509. (issue #17085) (issue #18509) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@303747 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 4bd4ca0106..6301745c7d 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" @@ -5483,6 +5490,15 @@ static void wait_for_hangup(struct ast_channel *chan, void *data) } while(f); } +/*! + * \ingroup applications + */ +static int pbx_builtin_proceeding(struct ast_channel *chan, void *data) +{ + ast_indicate(chan, AST_CONTROL_PROCEEDING); + return 0; +} + /*! * \ingroup applications */