Commit f33093e8 authored by smorlat's avatar smorlat
Browse files

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
parent d0fe2ae5
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment