twilio / twilio-python

A Python module for communicating with the Twilio API and generating TwiML.
MIT License
1.84k stars 703 forks source link

Twilio python function for incoming_phone_numbers.local.list does not provide only local 10DLC numbers. #717

Open rgyardi opened 1 year ago

rgyardi commented 1 year ago

Issue Summary

Am using the Twilio python function - client.incoming_phone_numbers.local.list to gather a list of only local 10DLC numbers within our account so that it can be compared against the numbers already included within a messaging service, but unfortunately the local list also includes toll free numbers in it. Is this a known issue?

Steps to Reproduce

Twilio python functions

  1. Get a list of local numbers in an account SID. - client.incoming_phone_numbers.local.list(limit=100000)
  2. Get a list of numbers within a messaging service - service.phone_numbers.list(limit=10000)
  3. Compare the lists to find numbers missing in a messaging service.
  4. Add missing numbers to a messaging service.

Technical details:

sbansla commented 1 year ago

This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.