Skip to content

Commit

Permalink
fix: use friendly_name instead of sid
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Jan 23, 2025
1 parent 703b39a commit ce3e1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crm/integrations/exotel/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit ce3e1e7

Please sign in to comment.