summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-07-30 14:53:14 +0000
committerJoshua Colp <jcolp@digium.com>2007-07-30 14:53:14 +0000
commit94bef1a25663a1ca6df3a5038ddae154f919dc9e (patch)
tree0d18f5e8017f247967a04b9648a9199884e92803 /apps
parentb20ab775d53b1e438b01f0e6ea19bd2e4d5f108a (diff)
Merged revisions 77768 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r77768 | file | 2007-07-30 11:51:44 -0300 (Mon, 30 Jul 2007) | 12 lines Merged revisions 77767 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r77767 | file | 2007-07-30 11:50:02 -0300 (Mon, 30 Jul 2007) | 4 lines (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/trunk@77769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r--apps/app_macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_macro.c b/apps/app_macro.c
index 923bd583f..0b9f87e83 100644
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -493,9 +493,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");