Outbound Campaign : : default
Posted: Wed May 13, 2009 1:12 pm
Support,
Some of my posts to queuecall.php do not seem to be working.
1. I post my data to http://outbound.plumgroup.com/webservice/queuecall.php
2. I see the call being attempted in my call queue (Outbound Campaign : : default)
3. My phone doesn't ring and the queue reports it as "failed no answer"
4. I post the data again (refresh my browser) and this time the call comes through?
Here is my test code:
<?
// Set Vars
$sPhone = '4126243889';
$sSubj = '123-X';
$sDay = '1a'; //(1a, 1b, 1c, 1d)
$sMod = 'mod1'; //(mod1, mod2, mod3, mod4)
$sCall = '1'; //(1, 2, 3, 4)
// Set Hostname
$url = 'http://outbound.plumgroup.com/webservice/queuecall.php';
$pv = '';
$pv = $pv.'login=ucsur';
$pv = $pv.'&pin=12345678';
$pv = $pv.'&phone_number='.$sPhone;
$pv = $pv.'&max_retries=0';
$pv = $pv.'&start_url=https://xxx.ucsur.pitt.edu/freddie09/test2.php';
$pv = $pv.'?s='.$sSubj.'~'.$sDay.'~'.$sMod.'~'.$sCall;
// Open the Curl session
$session = curl_init($url);
curl_setopt ($session, CURLOPT_POST, true);
curl_setopt ($session, CURLOPT_POSTFIELDS, $pv);
// Do not return HTTP headers. Do return the contents of the call
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
// Make the call
$xml = curl_exec($session);
curl_close($session);
?>
-rob
Some of my posts to queuecall.php do not seem to be working.
1. I post my data to http://outbound.plumgroup.com/webservice/queuecall.php
2. I see the call being attempted in my call queue (Outbound Campaign : : default)
3. My phone doesn't ring and the queue reports it as "failed no answer"
4. I post the data again (refresh my browser) and this time the call comes through?
Here is my test code:
<?
// Set Vars
$sPhone = '4126243889';
$sSubj = '123-X';
$sDay = '1a'; //(1a, 1b, 1c, 1d)
$sMod = 'mod1'; //(mod1, mod2, mod3, mod4)
$sCall = '1'; //(1, 2, 3, 4)
// Set Hostname
$url = 'http://outbound.plumgroup.com/webservice/queuecall.php';
$pv = '';
$pv = $pv.'login=ucsur';
$pv = $pv.'&pin=12345678';
$pv = $pv.'&phone_number='.$sPhone;
$pv = $pv.'&max_retries=0';
$pv = $pv.'&start_url=https://xxx.ucsur.pitt.edu/freddie09/test2.php';
$pv = $pv.'?s='.$sSubj.'~'.$sDay.'~'.$sMod.'~'.$sCall;
// Open the Curl session
$session = curl_init($url);
curl_setopt ($session, CURLOPT_POST, true);
curl_setopt ($session, CURLOPT_POSTFIELDS, $pv);
// Do not return HTTP headers. Do return the contents of the call
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
// Make the call
$xml = curl_exec($session);
curl_close($session);
?>
-rob