mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fixed crash in proxy config when dialplan is generic
This commit is contained in:
parent
a9e3caf17f
commit
aaf0eac9c7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue