only propagate net,download_ptime to rtp,download_ptime if value != 0

This commit is contained in:
Jehan Monnier 2013-09-12 11:59:06 +02:00
parent ab2b7d0e38
commit 26c8f6ff98

View file

@ -494,8 +494,11 @@ static void net_config_read (LinphoneCore *lc)
lc->net_conf.nat_sdp_only=tmp;
tmp=lp_config_get_int(lc->config,"net","mtu",1300);
linphone_core_set_mtu(lc,tmp);
tmp=lp_config_get_int(lc->config,"net","download_ptime",0);
linphone_core_set_download_ptime(lc,tmp);
tmp=lp_config_get_int(lc->config,"net","download_ptime",-1);
if (tmp !=-1 && linphone_core_get_download_ptime(lc) !=0) {
/*legacy parameter*/
linphone_core_set_download_ptime(lc,tmp);
}
/* This is to filter out unsupported firewall policies */
linphone_core_set_firewall_policy(lc, linphone_core_get_firewall_policy(lc));