[svn-commits] tilghman: branch 1.6.2 r236303 - in /branches/1.6.2: ./ apps/app_stack.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 23 12:27:07 CST 2009


Author: tilghman
Date: Wed Dec 23 12:27:05 2009
New Revision: 236303

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236303
Log:
Merged revisions 236300 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r236300 | tilghman | 2009-12-23 12:25:27 -0600 (Wed, 23 Dec 2009) | 7 lines
  
  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:
    branches/1.6.2/   (props changed)
    branches/1.6.2/apps/app_stack.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/apps/app_stack.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/apps/app_stack.c?view=diff&rev=236303&r1=236302&r2=236303
==============================================================================
--- branches/1.6.2/apps/app_stack.c (original)
+++ branches/1.6.2/apps/app_stack.c Wed Dec 23 12:27:05 2009
@@ -590,12 +590,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 svn-commits mailing list