public
Created

Sequential dialing with Twilio

  • Download Gist
script.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
$arr = array('416...','647...','905..');
 
if (isset($_REQUEST['index'])) {
$index = $_REQUEST['index'];
} else {
$index = 0;
}
 
$next = $index + 1;
 
$call = $client->account->calls->create(
$from,
$arr[$index],
'http://path/to/your/script?index=' . $next,
array('Timeout' => 1)
);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.