Skip to content
Snippets Groups Projects
Commit 562fc888 authored by Martin Pycko's avatar Martin Pycko
Browse files

Fix the previous patch (don't exit from macro when we were invoked from 'h' extension)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent b0506b3e
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment