]> sjero.net Git - linphone/blobdiff - coreapi/linphonecore.c
Add rtp config for disabling upnp for rtp streams
[linphone] / coreapi / linphonecore.c
index 2bb9fab32b8c4c2e7840bb6e2a534189ab981e0b..b704347da4849796d4c9afa4dc4f04df04e5ab67 100644 (file)
@@ -751,6 +751,7 @@ static void rtp_config_read(LinphoneCore *lc)
        linphone_core_enable_audio_adaptive_jittcomp(lc, adaptive_jitt_comp_enabled);
        adaptive_jitt_comp_enabled = lp_config_get_int(lc->config, "rtp", "video_adaptive_jitt_comp_enabled", TRUE);
        linphone_core_enable_video_adaptive_jittcomp(lc, adaptive_jitt_comp_enabled);
+       lc->rtp_conf.disable_upnp = lp_config_get_int(lc->config, "rtp", "disable_upnp", FALSE);
 }
 
 static PayloadType * find_payload(RtpProfile *prof, const char *mime_type, int clock_rate, int channels, const char *recv_fmtp){