]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9207 #resolve [Add ignore_sdp_ice=true to ignore ICE when parsing an SDP]
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 27 May 2016 19:52:51 +0000 (14:52 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 27 May 2016 19:52:51 +0000 (14:52 -0500)
src/switch_core_media.c

index 5ff0a3afa65b8b36a866dcf51f6688d8f346744c..50df501340b6f8dae1e53b23f38d54020559e666 100644 (file)
@@ -3347,6 +3347,10 @@ static switch_status_t check_ice(switch_media_handle_t *smh, switch_media_type_t
        const char *val;
        int ice_seen = 0, cid = 0, ai = 0;
 
+       if (switch_true(switch_channel_get_variable_dup(smh->session->channel, "ignore_sdp_ice", SWITCH_FALSE, -1))) {
+               return SWITCH_STATUS_BREAK;
+       }
+
        //if (engine->ice_in.is_chosen[0] && engine->ice_in.is_chosen[1]) {
                //return SWITCH_STATUS_SUCCESS;
        //}