summaryrefslogtreecommitdiff
path: root/apps/app_macro.c
diff options
context:
space:
mode:
authorMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-08 06:00:17 +0000
committerMatteo Brancaleoni <mbrancaleoni@espia.it>2003-03-08 06:00:17 +0000
commitd50ea0e9d465ea8eaf09844660d597f4291cab7c (patch)
treef54c62d36f8c99997a17fc202fe190c7b4d4a4bd /apps/app_macro.c
parentf2c4538f612a8976c7cc8893000165fa06733ddb (diff)
Sat Mar 8 07:00:00 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@635 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 bb8b43de8..c06fa117f 100755
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -184,7 +184,7 @@ out:
pbx_builtin_setvar_helper(chan, "MACRO_PRIORITY", save_macro_priority);
if (save_macro_priority) free(save_macro_priority);
- if (!strcasecmp(chan->context, fullmacro)) {
+ if (!strcasecmp(chan->context, fullmacro) && !chan->_softhangup) {
/* If we're leaving the macro normally, restore original information */
chan->priority = oldpriority;
strncpy(chan->exten, oldexten, sizeof(chan->exten) - 1);