Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test telephone numbers for Twilio

Tags:

twilio

Does Twilio have any "test" telephone numbers that I can use to emulate outbound calls? For example, I'd like to be able to test my app to the fullest, getting back asynchronous responses (like I would normally expect to) for calls that are busy, answering machines, out-of-order, invalid numbers etc.

There are a few numbers you can use for SMS messages - but these all return simple, immediate responses, and not the kind of asynchronous ones you'd expect through voice calls that are being handled through TwilXML.

How am I supposed to test all this functionality without making calls to tons of "live" numbers?

like image 544
Brad Avatar asked Apr 12 '14 01:04

Brad


People also ask

How does Twilio validate phone numbers?

When you make a POST request to Twilio's REST API, Twilio will check the validity of the "To" phone number in the request. If Twilio discovers that the "To" phone number provided cannot possibly exist based on its format, Twilio will respond to your API request with an HTTP 400 response and Error 21211.

How do I send a test message in Twilio?

You can simulate an attempt to send a message to a non-mobile number. Trigger this by passing the magic number +15005550009 as the To number.

What is a Twilio test?

The Twilio Video Diagnostics Application is an open-source ReactJS application that tests participants' device and software setup, connectivity with the Twilio Cloud, and network performance.

How many phone numbers do I need Twilio?

So if the same participant will be active in two concurrent sessions, at least two Twilio numbers will be required as Proxy Numbers in the Service. That being said, one single proxy Identifier (the Twilio number in the Service) can be used in multiple active sessions, but by distinct participants.


1 Answers

I was looking for the same thing, because I need to test external calls to my internal IPs, and because I don't want the phone ringing all the time! While I find it disappointing that Twilio doesn't provide this functionality, Devin's response seems reasonable.

I was wondering if someone else had created the set of HTTP interactions in a more comprehensive manner, and found this:

https://github.com/minddog/twilio-emulator

Trying it out now. Perhaps in the future Twilio could add basic callback, not necessarily a full set of Twiml cases that would have to be passed in for each interaction.

like image 101
orbfish Avatar answered Sep 23 '22 01:09

orbfish