Hi all
I've implemented a php file that sends SMS to customers and I added it on DISPO CALL URL after Manual Disposition.
Code is like this :
<?php
$phonenum= $_GET['phonenum'];
$disposition=$_GET['disposition'];
if($disposition == "B") {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'http://ip-sms-gateway/sendsms.php?num=2B39'.$phonenum.'&msg=Test Send SMS');
$resp = curl_exec($curl);
curl_close($curl);
error_log("Sono entrato nel ramo if - $resp\n");
}
?>
Our environment :
VICIBOX v6.0 ISO PReload
VERSION: 2.12-493a
BUILD: 150703-2105
Asterisk : 1.8.23.0-1_centos5.go
If Agent sets a particular Disposition when hang up calls, Vicidial is able to send SMS to Customers.
If Agents manually sets "B - BUSY" or "N - Not Answer" as CODE above, is quite simple,but
I have one question :
IF RATIO is active , Vicidial sets a dispo like "No Answer AutoDial".
I've set up a LEAD RECYCLE for NA (2 attempts every 4 hours)
I'd like to change those DISPO from NA to custom DISPO, but I 'd like to sets this DISPO only on the first attempt, so Vicidial send only one SMS.
Second attempt Vicidial must setting up NA.
It's quite difficult to explain..I'm sorry