mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 04:58:14 +00:00
use double registration also for TCP and TLS
This commit is contained in:
parent
57d665e162
commit
51694fd79a
1 changed files with 17 additions and 19 deletions
|
|
@ -1788,26 +1788,24 @@ static bool_t register_again_with_updated_contact(SalOp *op, osip_message_t *ori
|
|||
osip_free(tmp);
|
||||
sal_address_destroy(ori_contact_address);
|
||||
|
||||
if (transport == SalTransportUDP) {
|
||||
eXosip_lock();
|
||||
eXosip_register_build_register(op->rid,op->expires,&msg);
|
||||
if (msg==NULL){
|
||||
eXosip_unlock();
|
||||
ms_warning("Fail to create a contact updated register.");
|
||||
return FALSE;
|
||||
}
|
||||
if (fix_message_contact(op,msg,last_answer)) {
|
||||
eXosip_register_send_register(op->rid,msg);
|
||||
eXosip_unlock();
|
||||
ms_message("Resending new register with updated contact");
|
||||
return TRUE;
|
||||
} else {
|
||||
ms_warning("Fail to send updated register.");
|
||||
eXosip_unlock();
|
||||
return FALSE;
|
||||
}
|
||||
eXosip_unlock();
|
||||
eXosip_lock();
|
||||
eXosip_register_build_register(op->rid,op->expires,&msg);
|
||||
if (msg==NULL){
|
||||
eXosip_unlock();
|
||||
ms_warning("Fail to create a contact updated register.");
|
||||
return FALSE;
|
||||
}
|
||||
if (fix_message_contact(op,msg,last_answer)) {
|
||||
eXosip_register_send_register(op->rid,msg);
|
||||
eXosip_unlock();
|
||||
ms_message("Resending new register with updated contact");
|
||||
return TRUE;
|
||||
} else {
|
||||
ms_warning("Fail to send updated register.");
|
||||
eXosip_unlock();
|
||||
return FALSE;
|
||||
}
|
||||
eXosip_unlock();
|
||||
|
||||
update_contact_from_response(op,last_answer);
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue