We're going to set up a page that we'll use to display a list of call queues. We will also find out the number of callers in each queue and the average wait time to connect to an agent.
In this section, we're going to set up a page that will show us our call queues and how many callers are on hold, as well as how long they are estimated to wait for before they speak to an agent. Perform the following steps:
Download the Twilio Helper Library available at https://github.com/twilio/twilio-php/zipball/master and unzip it.
Upload the
Services/
folder to your website.Upload
config.php
to your web server using the following code:<?php $accountsid = ''; // YOUR TWILIO ACCOUNT SID $authtoken = ''; // YOUR TWILIO AUTH TOKEN ?>
Upload
wait-times.php
to your web server using the following code:<?php include("config.php"); # Include...