diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-06-19 00:43:41 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-06-19 00:43:41 +0000 |
commit | ad0d1bfd9e531b8fd0a7c04238f69850c07824bd (patch) | |
tree | 3d946bcd4ffba429fd18a6f00b27daa81d5697a9 /main/features.c | |
parent | f3414189888c843a8de8f9f1a261bdaa316e9d3f (diff) |
Merged revisions 201828 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r201828 | tilghman | 2009-06-18 19:40:41 -0500 (Thu, 18 Jun 2009) | 6 lines
If the "h" extension fails, give it another chance in main/pbx.c.
If the "h" extension fails, give it another chance in main/pbx.c, when it
returns from the bridge code. Fixes an issue where the "h" extension may
occasionally not fire, when a Dial is executed from a Macro.
Debugged in #asterisk with user tompaw.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@201829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/features.c')
-rw-r--r-- | main/features.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/features.c b/main/features.c index 664c6c87b..298131033 100644 --- a/main/features.c +++ b/main/features.c @@ -2952,7 +2952,9 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast bridge_cdr = NULL; } } - ast_set_flag(chan, AST_FLAG_BRIDGE_HANGUP_RUN); + if (chan->priority != 1 || !spawn_error) { + ast_set_flag(chan, AST_FLAG_BRIDGE_HANGUP_RUN); + } ast_channel_unlock(chan); /* protect the lastapp/lastdata against the effects of the hangup/dialplan code */ if (bridge_cdr) { |