]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Hangup extension executed twice.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 9 May 2011 19:07:01 +0000 (19:07 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 9 May 2011 19:07:01 +0000 (19:07 +0000)
commit607164ad91e65963f53cb7df71622671e489f98d
tree4f105dad071897a34120e5f5fe3684fc3e073af4
parenta0d4192e2df964743144ade0ba3efacdad134924
Hangup extension executed twice.

When a user hangs up a call, in certain circumstances, the hangup
extension can end up being executed twice:

1) If a call is bridged and the 'h' extension executes the Hangup
application, then the 'h' extension will be executed twice.

2) If a call is bridged within a macro (Dial or Queue), it has its own 'h'
extension, the main context also has an 'h' extension, and the macro 'h'
extension executes the Hangup application, then both 'h' extensions will
be executed.

* Revert originally commited fix for #16106 and just set
AST_FLAG_BRIDGE_HANGUP_RUN unconditionally in ast_bridge_call().  The
bridge code just executed an 'h' extension so the main PBX loop does not
need to execute one as well.

(issue #16106)
Reported by: ajohnson

(issue #16548)
Reported by: hajekd

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@318282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/features.c