proxy.c: notify display status when registration is in progress so that when previous registration failed and user forces refreshing the proxy config, he gets notified of it

This commit is contained in:
Gautier Pelloux-Prayer 2015-08-06 16:03:51 +02:00
parent 760b3bb755
commit 750a692fa1

View file

@ -1490,6 +1490,13 @@ void linphone_proxy_config_set_state(LinphoneProxyConfig *cfg, LinphoneRegistrat
LinphoneCore *lc=cfg->lc;
bool_t update_friends=FALSE;
if (state==LinphoneRegistrationProgress) {
char *msg=ortp_strdup_printf(_("Refreshing on %s..."), linphone_proxy_config_get_identity(cfg));
linphone_core_notify_display_status(lc,msg);
ms_free(msg);
}
if (cfg->state!=state || state==LinphoneRegistrationOk) { /*allow multiple notification of LinphoneRegistrationOk for refreshing*/
ms_message("Proxy config [%p] for identity [%s] moving from state [%s] to [%s]" , cfg,
linphone_proxy_config_get_identity(cfg),