]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9439 check chained loopback for loopback_bowout
authorLuis Azedo <luis.azedo@factorlusitano.com>
Thu, 18 Aug 2016 15:11:58 +0000 (10:11 -0500)
committerLuis Azedo <luis@2600hz.com>
Sat, 20 Aug 2016 01:12:30 +0000 (02:12 +0100)
src/mod/endpoints/mod_loopback/mod_loopback.c

index ce9da85965f22940eb6d4417a5304c59ecf94033..3a01377c10431372e238753d48300560c44caf70 100644 (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) {