diff options
author | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-23 21:52:05 +0000 |
---|---|---|
committer | martinp <martinp@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-23 21:52:05 +0000 |
commit | 02b13cb29bd6eb06545259b79fdd95b49d428cd8 (patch) | |
tree | 8c5e5843dd28d0cbcc103d2154aa8b69750a4017 | |
parent | b4c69d1f756e1183d00b1cdbe945595eafffe353 (diff) |
Don't stop executing macro when we're in 'h' extension
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@895 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | apps/app_macro.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_macro.c b/apps/app_macro.c index 53235e34f..55b3df48a 100755 --- a/apps/app_macro.c +++ b/apps/app_macro.c @@ -163,7 +163,8 @@ static int macro_exec(struct ast_channel *chan, void *data) ast_verbose(VERBOSE_PREFIX_2 "Channel '%s' jumping out of macro '%s'\n", chan->name, macro); break; } - if (chan->_softhangup) { + /* don't stop executing extensions when we're in "h" */ + if (chan->_softhangup && strcasecmp(chan->exten,"h")) { ast_log(LOG_DEBUG, "Extension %s, priority %d returned normally even though call was hung up\n", chan->exten, chan->priority); goto out; |