From fc1b089175dc71cca8f648e531aebed857c6a15a Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Fri, 21 Oct 2016 11:38:58 +0200 Subject: [PATCH] [accountCreator] update account_creator_configure to keep default value server_add and route if not null --- coreapi/account_creator.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coreapi/account_creator.c b/coreapi/account_creator.c index 7c2fc66c4..115729280 100644 --- a/coreapi/account_creator.c +++ b/coreapi/account_creator.c @@ -476,8 +476,10 @@ LinphoneProxyConfig * linphone_account_creator_configure(const LinphoneAccountCr snprintf(buff, sizeof(buff), "%d", dial_prefix_number); linphone_proxy_config_set_dial_prefix(cfg, buff); } - linphone_proxy_config_set_server_addr(cfg, domain); - linphone_proxy_config_set_route(cfg, route); + if(linphone_proxy_config_get_server_addr == NULL) + linphone_proxy_config_set_server_addr(cfg, domain); + if(linphone_proxy_config_get_route == NULL) + linphone_proxy_config_set_route(cfg, route); linphone_proxy_config_enable_publish(cfg, FALSE); linphone_proxy_config_enable_register(cfg, TRUE);