Test telephone numbers for Twilio

前端 未结 2 1991
春和景丽
春和景丽 2021-02-19 06:01

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 asynchron

相关标签:
2条回答
  • 2021-02-19 06:27

    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.

    0 讨论(0)
  • 2021-02-19 06:29

    Twilio evangelist here.

    Have you looked at using Test Credentials? These are a special set of credentials and magic phone numbers that you can use to tell Twilio via the REST API to emulate things like making an outbound phone call. Using the magic phone numbers you can get Twilio to return specific responses (like trying to dial an international phone number without the right permissions).

    For testing webhook endpoints (the URL's in your webhook that Twilio is going to make its HTTP requests to), you can use the same testing techniques you would to test a normal web app.

    0 讨论(0)
提交回复
热议问题