Merge pull request #930 in FS/freeswitch from ~LAZEDO/freeswitch:feature/FS-9439 to master

* commit '676419a2619dda579d2bca9e6aaaecfa9a86e200':
  FS-9439 check chained loopback for loopback_bowout
This commit is contained in:
Mike Jerris 2016-08-19 22:56:14 -05:00
commit f92bb5aeff
1 changed files with 4 additions and 1 deletions

View File

@ -776,6 +776,7 @@ static switch_status_t find_non_loopback_bridge(switch_core_session_t *session,
const char *a_uuid = NULL;
switch_core_session_t *sp = NULL;
*br_session = NULL;
*br_uuid = NULL;
@ -787,7 +788,9 @@ static switch_status_t find_non_loopback_bridge(switch_core_session_t *session,
switch_channel_t *spchan = switch_core_session_get_channel(sp);
switch_channel_wait_for_state_or_greater(spchan, channel, CS_ROUTING);
if (switch_false(switch_channel_get_variable(spchan, "loopback_bowout"))) break;
tech_pvt = switch_core_session_get_private(sp);
if (tech_pvt->other_channel) {