Issue
I'm playing around Twilio programmable Voice (Conference) along with PHP.
I'm unable to implement administrative functions like muting/un-muting all participants, start & stop recording etc by moderator of the conference, I preferably would like to use *1, *2, *3, *4 as keypad presses by moderator to have control over the active ongoing conference call.
Appreciate your feedback.
The flow I've created so far as prototype is working good.
- Participant/moderator dials Twilio number
- TwiML greets users by and prompts to capture PIN code by using
- PIN code validated by action URL on my server
- When two participant & moderator joins conference is working.
Solution
Twilio developer evangelist here.
In order to achieve this, you need to add a couple of things to your conference.
First, add the hangupOnStar
attribute to the <Dial>
for your moderator. That will allow the moderator to temporarily leave the conference by dialling *
.
When they do, Twilio will request the URL in the action
attribute. You will want to respond to that request with TwiML that allows the moderator to perform the muting action, so you'll need a <Gather>
. The <Gather>
will need an action
attribute that receives the Digits
pressed by the moderator, performs the action (muting/unmuting) using the REST API and returns TwiML to put the moderator back into the <Conference>
.
Does that help?
Answered By - philnash Answer Checked By - David Marino (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.