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


dipesh.parmar 55

published 4 years ago

# Include Twilio PHP helper library.

# 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.

Your session has timed out.

Dismiss (the page may not function properly).