mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
Don't unregister previous contact by default. It is causing troubles with +sip.instance.
This commit is contained in:
parent
7a4555ea79
commit
a858005cab
1 changed files with 4 additions and 3 deletions
|
|
@ -406,11 +406,12 @@ void linphone_proxy_config_apply(LinphoneProxyConfig *cfg,LinphoneCore *lc){
|
||||||
|
|
||||||
void linphone_proxy_config_stop_refreshing(LinphoneProxyConfig * cfg){
|
void linphone_proxy_config_stop_refreshing(LinphoneProxyConfig * cfg){
|
||||||
LinphoneAddress *contact_addr=NULL;
|
LinphoneAddress *contact_addr=NULL;
|
||||||
if ( cfg->op
|
if (cfg->op
|
||||||
&& cfg->state == LinphoneRegistrationOk
|
&& cfg->state == LinphoneRegistrationOk
|
||||||
&& (contact_addr = (LinphoneAddress*)sal_op_get_contact_address(cfg->op))
|
&& (contact_addr = (LinphoneAddress*)sal_op_get_contact_address(cfg->op))
|
||||||
&& linphone_address_get_transport(contact_addr) != LinphoneTransportUdp /*with udp, there is a risk of port reuse, so I prefer to not do anything for now*/) {
|
&& linphone_address_get_transport(contact_addr) != LinphoneTransportUdp /*with udp, there is a risk of port reuse, so I prefer to not do anything for now*/
|
||||||
/*need to save current contact in order to reset is later*/
|
&& lp_config_get_int(cfg->lc->config, "sip", "unregister_previous_contact", 0)) {
|
||||||
|
/*need to save current contact in order to reset it later*/
|
||||||
linphone_address_ref(contact_addr);
|
linphone_address_ref(contact_addr);
|
||||||
if (cfg->pending_contact)
|
if (cfg->pending_contact)
|
||||||
linphone_address_unref(cfg->pending_contact);
|
linphone_address_unref(cfg->pending_contact);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue