From 3f495448e11a973f7d5c7cadebd646f9ae76dde2 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Mon, 4 Apr 2016 13:35:06 +0200 Subject: [PATCH] proxy.c: replace + with most generic icp if none set --- coreapi/proxy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreapi/proxy.c b/coreapi/proxy.c index 6743f93c1..3e0a7cefb 100644 --- a/coreapi/proxy.c +++ b/coreapi/proxy.c @@ -939,6 +939,9 @@ char* linphone_proxy_config_normalize_phone_number(LinphoneProxyConfig *proxy, c , flatten_start); ms_debug("Prepended prefix resulted in %s", result); } + }else if (tmpproxy->dial_escape_plus){ + /* user did not provide dial prefix, so we'll take the most generic one */ + result = replace_plus_with_icp(flatten,most_common_dialplan.icp); } if (result==NULL) { result = flatten;