mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
attempt a fix for mexico dial plans
This commit is contained in:
parent
4fccaf7b8f
commit
730d42f576
2 changed files with 7 additions and 0 deletions
|
|
@ -158,6 +158,8 @@ static LinphoneDialPlan const dial_plans[]={
|
|||
{"Mauritius" ,"MU" , "230" , 7 , "00" },
|
||||
{"Mayotte Island" ,"YT" , "262" , 9 , "00" },
|
||||
{"Mexico" ,"MX" , "52" , 10 , "00" },
|
||||
/*The following is a pseudo dial plan for Mexican mobile phones. See https://en.wikipedia.org/wiki/Telephone_numbers_in_Mexico*/
|
||||
{"Mexico" ,"MX" , "521" , 10 , "00" },
|
||||
{"Micronesia" ,"FM" , "691" , 7 , "011" },
|
||||
{"Moldova" ,"MD" , "373" , 8 , "00" },
|
||||
{"Monaco" ,"MC" , "377" , 8 , "00" },
|
||||
|
|
|
|||
|
|
@ -127,6 +127,11 @@ static void phone_normalization_with_proxy(void) {
|
|||
BC_ASSERT_STRING_EQUAL(phone_normalization(proxy, "0123456789"), "+990123456789");
|
||||
BC_ASSERT_STRING_EQUAL(phone_normalization(proxy, "01234567890"), "+991234567890");
|
||||
|
||||
// Phone normalization for mexican dial plans
|
||||
linphone_proxy_config_set_dial_prefix(proxy, "52");
|
||||
BC_ASSERT_STRING_EQUAL(phone_normalization(proxy, "+5217227718184"), "+5217227718184"); /*this is a mobile phone number */
|
||||
BC_ASSERT_STRING_EQUAL(phone_normalization(proxy, "+528127718184"), "+528127718184"); /*this is a landline phone number from Monterrey*/
|
||||
|
||||
linphone_proxy_config_unref(proxy);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue