aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_macro.c
diff options
context:
space:
mode:
authormartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-23 23:54:48 +0000
committermartinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-23 23:54:48 +0000
commit6a24b245cba14dabcbe078662d0470fd3d0df0d2 (patch)
tree63a5faa9d4dadb9e12f851bdbe2134634fa05240 /apps/app_macro.c
parent3d19be4fe5a42c972713c1e4f1a0c3106ec8a15c (diff)
Fix the previous patch (don't exit from macro when we were invoked from 'h' extension)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@902 f38db490-d61c-443f-a65b-d21fe96a405b
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 55b3df48a..3e102454b 100755
--- a/apps/app_macro.c
+++ b/apps/app_macro.c
@@ -164,7 +164,7 @@ static int macro_exec(struct ast_channel *chan, void *data)
break;
}
/* don't stop executing extensions when we're in "h" */
- if (chan->_softhangup && strcasecmp(chan->exten,"h")) {
+ if (chan->_softhangup && strcasecmp(oldexten,"h")) {
ast_log(LOG_DEBUG, "Extension %s, priority %d returned normally even though call was hung up\n",
chan->exten, chan->priority);
goto out;