Fix Bridge API DTMF hook matching for begin and end DTMF events.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 15 Aug 2013 14:20:59 +0000 (14:20 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 15 Aug 2013 14:20:59 +0000 (14:20 +0000)
commit5f40a6625dcd128092d18533b6d4586d11aadccb
tree9a72f886be80fdaaa95b0e2229b927af93b5aec6
parent82ba10bb47dafd14fbce5c75a8e0b50286c36736
Fix Bridge API DTMF hook matching for begin and end DTMF events.

The Bridge API DTMF hook matching would not deal with DTMF end events
only.  It required a DTMF begin event to start matching the DTMF hooks.
There are many places in Asterisk where code only generates DTMF end
events without the corresponding begin event.  One such place is the AMI
action Atxfer.

* Fixed DTMF hook matching if there is a string of DTMF frames in the read
queue.  We could potentially miss some of them before.

* Fixed AMI Atxfer action documentation.

(closes issue ASTERISK-22037)
Reported by: Matt Jordan

Review: https://reviewboard.asterisk.org/r/2752/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396732 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/bridge_channel_internal.h
main/bridge_channel.c
main/manager.c