Speed up development with full-stack environments for every branch.Learn More
How to put calls in queue [PHP and twilio]
19 Runs 957 Views 275 Copies
<?php # Include Twilio PHP helper library. require('twilio-php-master/Services/Twilio.php'); # Tell Twilio to expect some XML header('Content-type: text/xml'); # Create response object. $response = new Services_Twilio_Twiml(); # Dial into the Queue we placed the caller into to connect agent to # first person in the Queue. $dial = $response->dial(); $dial->queue("Queue Demo user"); # Print TwiML print $response;
Please login/signup to get access to the terminal.