]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10334)
authorJoshua Colp <jcolp@digium.com>
Mon, 30 Jul 2007 14:50:02 +0000 (14:50 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 30 Jul 2007 14:50:02 +0000 (14:50 +0000)
Reported by: ramonpeek
Pass through the return value from macro_exec through the MacroIf application.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@77767 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_macro.c

index 4002a8b00381ef20049de39026e4c4de6fe82230..557155c71138e5dbdaf9aba8f49c2ffa8266f1ca 100644 (file)
@@ -482,9 +482,9 @@ static int macroif_exec(struct ast_channel *chan, void *data)
                        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");