Test telephone numbers for Twilio

好久不见. 提交于 2019-12-03 23:26:43

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.

Devin Rader

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!