From: Joshua Colp Date: Mon, 30 Jul 2007 14:50:02 +0000 (+0000) Subject: (closes issue #10334) X-Git-Tag: 1.2.24~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea98dd3dfc5186a6487a96f0b061fa875563343b;p=thirdparty%2Fasterisk.git (closes issue #10334) 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 --- diff --git a/apps/app_macro.c b/apps/app_macro.c index 4002a8b003..557155c711 100644 --- a/apps/app_macro.c +++ b/apps/app_macro.c @@ -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");