From 75e98ab6d1c5b4ae5f45302b04e5ff5dc5175e01 Mon Sep 17 00:00:00 2001
From: Martin Pycko <martinp@digium.com>
Date: Wed, 23 Apr 2003 21:52:05 +0000
Subject: [PATCH] Don't stop executing macro when we're in 'h' extension

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_macro.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/app_macro.c b/apps/app_macro.c
index 53235e34f9..55b3df48a1 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;
-- 
GitLab