mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 13:48:09 +00:00
Fix proxy update when using uPnP
This commit is contained in:
parent
dd7da58c0c
commit
3ba2e1af0c
2 changed files with 4 additions and 2 deletions
|
|
@ -1100,8 +1100,8 @@ void linphone_proxy_config_update(LinphoneProxyConfig *cfg){
|
|||
switch(linphone_core_get_firewall_policy(lc)) {
|
||||
case LinphonePolicyUseUpnp:
|
||||
#ifdef BUILD_UPNP
|
||||
if(!lc->sip_conf.register_only_when_upnp_is_ok ||
|
||||
(lc->upnp != NULL && !linphone_upnp_context_is_ready_for_register(lc->upnp))) {
|
||||
if(lc->sip_conf.register_only_when_upnp_is_ok &&
|
||||
(lc->upnp == NULL || !linphone_upnp_context_is_ready_for_register(lc->upnp))) {
|
||||
break;
|
||||
}
|
||||
#endif //BUILD_UPNP
|
||||
|
|
|
|||
|
|
@ -881,6 +881,8 @@ void linphone_upnp_update_proxy(UpnpContext* lupnp, bool_t force) {
|
|||
// Only reset ithe registration if we require that upnp should be ok
|
||||
if(lupnp->lc->sip_conf.register_only_when_upnp_is_ok) {
|
||||
linphone_proxy_config_set_state(cfg, LinphoneRegistrationNone, "Registration impossible (uPnP not ready)");
|
||||
} else {
|
||||
cfg->commit=TRUE;
|
||||
}
|
||||
} else {
|
||||
cfg->commit=TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue