Merge pull request #547 from frappe/develop

This commit is contained in:
Shariq Ansari 2025-01-24 00:36:35 +05:30 committed by GitHub
commit c8d2910c7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,7 +145,7 @@ def get_exotel_endpoint(action=None, version="v1"):
def get_all_exophones():
endpoint = get_exotel_endpoint("IncomingPhoneNumbers", "v2_beta")
response = requests.get(endpoint)
return [phone.get("sid") for phone in response.json().get("incoming_phone_numbers", [])]
return [phone.get("friendly_name") for phone in response.json().get("incoming_phone_numbers", [])]
def get_status_updater_url():