Commit aaf0eac9 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fixed crash in proxy config when dialplan is generic

parent a9e3caf1
......@@ -686,7 +686,7 @@ char* linphone_proxy_config_normalize_phone_number(LinphoneProxyConfig *proxy, c
ms_debug("Using dial plan '%s'",linphone_dial_plan_get_country(dialplan));
/*if proxy has a dial prefix, modify phonenumber accordingly*/
if (linphone_dial_plan_get_country_calling_code(dialplan)[0]!='\0') {
if (linphone_dial_plan_get_country_calling_code(dialplan) != NULL && linphone_dial_plan_get_country_calling_code(dialplan)[0]!='\0') {
/* the number already starts with + or international prefix*/
/*0. keep at most national number significant digits */
char* nationnal_significant_number_start = nationnal_significant_number
......
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