How to make live voice phone call using Twilio instead of just playing an MP3 when call is answered?

别等时光非礼了梦想. 提交于 2019-12-03 21:10:58

Twilio evangelist here.

If you want to place a phone call from your browser you'll need to look at using Twilio Client for JavaScript:

https://www.twilio.com/docs/quickstart/csharp/client

That will let you place a VoIP call from the browser into Twilio. Once the call reaches Twilio you can then bridge that call with another Twilio Client, SIP endpoint or PSTN phone:

https://www.twilio.com/docs/quickstart/csharp/client/outgoing-calls

Hope that helps.

The way to do this would be to use the Dial Twiml https://www.twilio.com/docs/api/twiml/dial Dial can take one of several options; either a phone number, a SIP URL or a Twilio Client identifier. An example of dial is the CallMe twimlet available at https://www.twilio.com/labs/twimlets/callme and would look something like the following

<Response>
    <Dial>
        <Number>+44.........</Number>
    </Dial>
</Response>

If you've already got a softphone installed on your notebook then you could dial that. If you've got Skype you could use your Skype phone number for example.

If you don't have a softphone installed, you could always use Twilio client https://www.twilio.com/client and have that running inside your web browser.

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