bridge_holding: Add suspsend/unsuspend callbacks
authorJonathan Rose <jrose@digium.com>
Mon, 5 Aug 2013 17:48:03 +0000 (17:48 +0000)
committerJonathan Rose <jrose@digium.com>
Mon, 5 Aug 2013 17:48:03 +0000 (17:48 +0000)
commit2d87fc773b6c68ea2cc82a5345cab30946b38d75
tree19c5d91cd4f49aebdbf59398d6b0cea38f24d35a
parente47794ead1fb35527728a0c655585af35679e258
bridge_holding: Add suspsend/unsuspend callbacks

Suspend and unsuspend callbacks are added to the holding bridge so
that entertainment can be disabled and re-enabled when operations
would suspend a channel on the bridge (such as playback operations).
This fixes entertainment so that when those operations end, the
entertainment can pick back up and it also serves as an optimization.
Also, this patch fixes a bug caused by triggering ringing frames
immediately instead of pushing them to the queue which created a race
condition where sometimes parking with ringing during attended
transfers would cause the ringing to be interrupted by an unhold
frame.

(closes issue ASTERISK-22006)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2711/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
bridges/bridge_holding.c