PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, November 18, 2022

[FIXED] How to build administrative functions in Twilio Programmable Voice (Conference)

 November 18, 2022     twilio, twilio-php, twilio-programmable-voice     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing