From 750a692fa17baf7004e344acfb69b90e47468a72 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 6 Aug 2015 16:03:51 +0200 Subject: [PATCH] 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 --- coreapi/proxy.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/coreapi/proxy.c b/coreapi/proxy.c index 9d3bdc3d6..40ef6a0b0 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -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),