twilio-labs / dev-phone

A developer tool for testing SMS and Voice applications
MIT License
73 stars 18 forks source link

Handle multiple instances of dev phone #24

Open ayyrickay opened 2 years ago

ayyrickay commented 2 years ago

e.g.,

Multiple browser tabs open that are associated with different soft phones

Configurable phone numbers - can change the phone number from the soft phone UI

Example use cases include testing regions (try a UK number, then a US number, or just US numbers from different area codes), etc.

Swimburger commented 1 year ago

While not very approachable, it is doable today by using 2 different Twilio accounts. Here's how I did it in case someone else needs to do it before it is officially supported:

  1. Use twilio login to create multiple profiles, each logging into separate upgraded Twilio accounts.
  2. Run twilio dev-phone -p YourProfileName
  3. Run PORT=3002 twilio dev-phone -p YourOtherProfileName.

Now the Dev Phone runs on port 3001 (default) and 3002, each using a different profile (account).