diff --git a/asterisk_click2dial/scripts/get_cid_name.py b/asterisk_click2dial/scripts/get_cid_name.py index a922427..b42d0c3 100755 --- a/asterisk_click2dial/scripts/get_cid_name.py +++ b/asterisk_click2dial/scripts/get_cid_name.py @@ -103,7 +103,7 @@ def geolocate_phone_number(number, my_country_code, lang): import phonenumbers.geocoder res = '' phonenum = phonenumbers.parse(number, my_country_code.upper()) - city = phonenumbers.area_description_for_number(phonenum, lang.lower()) + city = phonenumbers.geocoder._area_description_for_number(phonenum, lang.lower()) #country = phonenumbers.country_name_for_number(phonenum, lang.lower()) country_code = phonenumbers.region_code_for_number(phonenum) if country_code == my_country_code.upper():