[asterisk-commits] tilghman: trunk r236300 - /trunk/apps/app_stack.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 23 12:25:30 CST 2009
Author: tilghman
Date: Wed Dec 23 12:25:27 2009
New Revision: 236300
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236300
Log:
AGI may be invoked from outside the dialplan
(closes issue #16510)
Reported by: atis
Patches:
20091223__issue16510.diff.txt uploaded by tilghman (license 14)
Tested by: atis
Modified:
trunk/apps/app_stack.c
Modified: trunk/apps/app_stack.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_stack.c?view=diff&rev=236300&r1=236299&r2=236300
==============================================================================
--- trunk/apps/app_stack.c (original)
+++ trunk/apps/app_stack.c Wed Dec 23 12:25:27 2009
@@ -605,12 +605,12 @@
* call a Gosub for the CALLEE channel in Dial or Queue.
*/
if (argc == 5) {
- if (asprintf(&gosub_args, "%s,%s,%d(%s)", argv[1], argv[2], priority + 1, argv[4]) < 0) {
+ if (asprintf(&gosub_args, "%s,%s,%d(%s)", argv[1], argv[2], priority + (chan->pbx ? 1 : 0), argv[4]) < 0) {
ast_log(LOG_WARNING, "asprintf() failed: %s\n", strerror(errno));
gosub_args = NULL;
}
} else {
- if (asprintf(&gosub_args, "%s,%s,%d", argv[1], argv[2], priority + 1) < 0) {
+ if (asprintf(&gosub_args, "%s,%s,%d", argv[1], argv[2], priority + (chan->pbx ? 1 : 0)) < 0) {
ast_log(LOG_WARNING, "asprintf() failed: %s\n", strerror(errno));
gosub_args = NULL;
}
More information about the asterisk-commits
mailing list