[asterisk-commits] file: branch 1.2 r77767 - /branches/1.2/apps/app_macro.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 30 09:50:02 CDT 2007


Author: file
Date: Mon Jul 30 09:50:02 2007
New Revision: 77767

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77767
Log:
(closes issue #10334)
Reported by: ramonpeek
Pass through the return value from macro_exec through the MacroIf application.

Modified:
    branches/1.2/apps/app_macro.c

Modified: branches/1.2/apps/app_macro.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_macro.c?view=diff&rev=77767&r1=77766&r2=77767
==============================================================================
--- branches/1.2/apps/app_macro.c (original)
+++ branches/1.2/apps/app_macro.c Mon Jul 30 09:50:02 2007
@@ -482,9 +482,9 @@
 			label_b++;
 		}
 		if (pbx_checkcondition(expr))
-			macro_exec(chan, label_a);
+			res = macro_exec(chan, label_a);
 		else if (label_b) 
-			macro_exec(chan, label_b);
+			res = macro_exec(chan, label_b);
 	} else
 		ast_log(LOG_WARNING, "Invalid Syntax.\n");
 




More information about the asterisk-commits mailing list