summaryrefslogtreecommitdiff
path: root/apps/app_macro.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-03-04 05:57:47 +0000
committerMark Spencer <markster@digium.com>2004-03-04 05:57:47 +0000
commit0a103544e476edd09e6aee480e313d2c4e6e4941 (patch)
tree3498801c3bb92ec8cf740dab8cee57e7a63af2a7 /apps/app_macro.c
parent80904fddcf980212621d2245fb96e902e3ed5a4e (diff)
Copy old extension unless it's ASYNCGOTO (bug #1141)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_macro.c')
-rwxr-xr-xapps/app_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_macro.c b/apps/app_macro.c
index 6cb07bd6f..3189d077b 100755
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -202,7 +202,7 @@ out:
/* If we're leaving the macro normally, restore original information */
chan->priority = oldpriority;
strncpy(chan->context, oldcontext, sizeof(chan->context) - 1);
- if (!chan->_softhangup) {
+ if (!(chan->_softhangup & AST_SOFTHANGUP_ASYNCGOTO)) {
/* Copy the extension, so long as we're not in softhangup, where we could be given an asyncgoto */
strncpy(chan->exten, oldexten, sizeof(chan->exten) - 1);
if ((offsets = pbx_builtin_getvar_helper(chan, "MACRO_OFFSET"))) {