mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-27 13:16:21 +00:00
fix unnotified register failure in case of timeout
This commit is contained in:
parent
ea322c79c5
commit
f9a596f40a
1 changed files with 2 additions and 2 deletions
|
|
@ -1422,7 +1422,7 @@ static bool_t registration_failure(Sal *sal, eXosip_event_t *ev){
|
||||||
if (ev->response){
|
if (ev->response){
|
||||||
status_code=osip_message_get_status_code(ev->response);
|
status_code=osip_message_get_status_code(ev->response);
|
||||||
reason=osip_message_get_reason_phrase(ev->response);
|
reason=osip_message_get_reason_phrase(ev->response);
|
||||||
}else return TRUE;
|
}
|
||||||
switch(status_code){
|
switch(status_code){
|
||||||
case 401:
|
case 401:
|
||||||
case 407:
|
case 407:
|
||||||
|
|
@ -1436,7 +1436,7 @@ static bool_t registration_failure(Sal *sal, eXosip_event_t *ev){
|
||||||
default:
|
default:
|
||||||
/* if contact is up to date, process the failure, otherwise resend a new register with
|
/* if contact is up to date, process the failure, otherwise resend a new register with
|
||||||
updated contact first, just in case the faillure is due to incorrect contact */
|
updated contact first, just in case the faillure is due to incorrect contact */
|
||||||
if (register_again_with_updated_contact(op,ev->request,ev->response))
|
if (ev->response && register_again_with_updated_contact(op,ev->request,ev->response))
|
||||||
return TRUE; /*we are retrying with an updated contact*/
|
return TRUE; /*we are retrying with an updated contact*/
|
||||||
if (status_code==403){
|
if (status_code==403){
|
||||||
se=SalErrorFailure;
|
se=SalErrorFailure;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue