]> sjero.net Git - linphone/blobdiff - coreapi/upnp.c
Fix proxy update when using uPnP
[linphone] / coreapi / upnp.c
index 400cc7e2a02defe9e078c8e9e12c070d12b3a53b..092876574ba4e3208fd0a0371396c10f0ccbec5d 100644 (file)
@@ -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;