mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 19:59:36 +00:00
only check upnp state if upnp is configured
This commit is contained in:
parent
a177101b55
commit
7545582ab8
1 changed files with 3 additions and 1 deletions
|
|
@ -1087,7 +1087,9 @@ void linphone_proxy_config_update(LinphoneProxyConfig *cfg){
|
|||
linphone_proxy_config_activate_sip_setup(cfg);
|
||||
}
|
||||
if ((!lc->sip_conf.register_only_when_network_is_up || lc->network_reachable) &&
|
||||
(!lc->sip_conf.register_only_when_upnp_is_ok || linphone_core_get_upnp_state(lc) == LinphoneUpnpStateOk))
|
||||
(linphone_core_get_firewall_policy(lc)!=LinphonePolicyUseUpnp
|
||||
|| !lc->sip_conf.register_only_when_upnp_is_ok
|
||||
|| linphone_core_get_upnp_state(lc) == LinphoneUpnpStateOk))
|
||||
linphone_proxy_config_register(cfg);
|
||||
if (cfg->publish && cfg->publish_op==NULL){
|
||||
linphone_proxy_config_send_publish(cfg,lc->presence_mode);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue