ARI: Ensure managing application receives ChannelEnteredBridge messages
authorKinsey Moore <kmoore@digium.com>
Thu, 13 Mar 2014 19:33:22 +0000 (19:33 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 13 Mar 2014 19:33:22 +0000 (19:33 +0000)
commit5247a0d99078ecc0a108aba5ac24570f6f082f46
tree521df3eb64904cac29e391a4c216d26fd5482dc6
parent1b5c09897649fec6742136ac6a575cd6f286dd2b
ARI: Ensure managing application receives ChannelEnteredBridge messages

This fixes an issue where a Stasis application running over ARI and
subscribed to ari/events could miss the ChannelEnteredBridge event
because it did not subscribe to the new bridge fast enough.

To accomplish this, it subscribes the application controlling the
channel to the new bridge before adding it to that bridge which
required the stasis_app_control structure to maintain a reference to
the stasis_app.

(closes issue ASTERISK-23295)
Review: https://reviewboard.asterisk.org/r/3336/
........

Merged revisions 410527 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_stasis.c
res/stasis/control.c
res/stasis/control.h