From ce3e1e7588cedff3c0ac570f7842259d3efff8e6 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 24 Jan 2025 00:35:32 +0530 Subject: [PATCH] fix: use friendly_name instead of sid --- crm/integrations/exotel/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/integrations/exotel/handler.py b/crm/integrations/exotel/handler.py index d24613c92..bdb9ebfdb 100644 --- a/crm/integrations/exotel/handler.py +++ b/crm/integrations/exotel/handler.py @@ -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():