asterisk/res/stasis
Richard Mudgett 6b1a632290 res_stasis: Handle re-enter stasis bridge with swap channel.
We lose the fact that there is a swap channel if there is one.  We
currently wind up rejoining the stasis bridge as a normal join after the
swap channel has already been kicked from the bridge.

This patch preserves the swap channel so the AMI/ARI events can note that
the channel joining the bridge is swapping with another channel.  Another
benefit to swaqpping in one operation is if there are any channels that
get lonely (MOH, bridge playback, and bridge record channels).  The lonely
channels won't leave before the joining channel has a chance to come back
in under stasis if the swap channel is the only reason the lonely channels
are staying in the bridge.

ASTERISK-25947 #close
Reported by: Richard Mudgett

ASTERISK-24649
Reported by: John Bigelow

ASTERISK-24782
Reported by: John Bigelow

Change-Id: If37ea508831d1fed6dbfac2f191c638fc0a850ee
2016-04-20 15:44:30 -05:00
..
app.c json: Audit ast_json_* usage for thread safety. 2015-12-16 15:21:14 -06:00
app.h ARI: Add the ability to subscribe to all events 2015-09-22 09:59:47 -05:00
command.c git migration: Refactor the ASTERISK_FILE_VERSION macro 2015-04-13 03:48:57 -04:00
command.h ARI: Fix a crash caused by hanging during playback to a channel in a bridge 2014-08-22 16:52:51 +00:00
control.c res_stasis: Handle re-enter stasis bridge with swap channel. 2016-04-20 15:44:30 -05:00
control.h res_stasis: Handle re-enter stasis bridge with swap channel. 2016-04-20 15:44:30 -05:00
messaging.c ARI: Add the ability to subscribe to all events 2015-09-22 09:59:47 -05:00
messaging.h Clean up files that do not end with newlines 2014-08-21 14:52:28 +00:00
stasis_bridge.c res_stasis: Handle re-enter stasis bridge with swap channel. 2016-04-20 15:44:30 -05:00
stasis_bridge.h ARI: Make mixing bridges propagate linkedids and accountcodes. 2014-07-09 16:34:51 +00:00