Twilio: Can I make OUTBOUND Conference Calls?

孤街醉人 提交于 2019-12-10 03:38:02

问题


The Twilio markup language clearly defines how INCOMING calls can be joined to a common conference room.

But I want to dial several calls simultaneously and join those. If I use the "dial" verb within the markup language, I get several consecutive calls, but I'd like them in parallel.

The basic operation of my application is to receive a call from the conference leader and actively connect all parties to the conference.


回答1:


Twilio Developer Evangelist here.

This is very easy to achieve using the REST API instead of using the TwiML verb dial to call each attendee. First of all, you put the conference leader into the conference room:

<Response>
  <Dial>
    <Conference>my room</Conference>
  </Dial>
<Response>

(Note that you may want hold music, or other instructions etc..)

Next, you use the REST API and dial in the other participants. There is a quick start to help you get going with outbound calls, this one is in PHP but you can use the language switcher on the page for whatever your need. Then you can just use the URL for the above TwiML to connect those calls to the same conference room. You can also use other TwiML documents, the important factor here is that Conference room name matches. Then everyone will be on the same call.

Helper libraries are available in Ruby, PHP, Python, C#, Java and Node to help you with the REST API.

Hope this help!



来源:https://stackoverflow.com/questions/20976317/twilio-can-i-make-outbound-conference-calls

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