mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
fix bug in previous commit about register retries.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@619 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
d0fe2ae5e3
commit
f33093e82b
1 changed files with 4 additions and 6 deletions
|
|
@ -943,15 +943,13 @@ void linphone_registration_faillure(LinphoneCore *lc, eXosip_event_t *ev){
|
|||
case 407:
|
||||
linphone_process_authentication(lc,ev);
|
||||
break;
|
||||
case 403:
|
||||
default:
|
||||
cfg=linphone_core_get_proxy_config_from_rid(lc,ev->rid);
|
||||
/* 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 */
|
||||
if (!linphone_proxy_config_register_again_with_updated_contact(cfg,ev->request,ev->response)){
|
||||
linphone_proxy_config_process_authentication_failure(lc,ev);
|
||||
return;
|
||||
}
|
||||
default:
|
||||
if (linphone_proxy_config_register_again_with_updated_contact(cfg,ev->request,ev->response))
|
||||
return; /*we are retrying with an updated contact*/
|
||||
if (status_code==403) linphone_proxy_config_process_authentication_failure(lc,ev);
|
||||
osip_uri_to_str(requri,&ru);
|
||||
msg=ortp_strdup_printf(_("Registration on %s failed: %s"),ru,(reason!=NULL) ? reason : _("no response timeout"));
|
||||
lc->vtable.display_status(lc,msg);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue