Page 1 of 1

SEND SMS/TXT to Customer after DISPO CALL URL

PostPosted: Fri Jul 10, 2015 6:23 am
by stefano.pucci
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

Re: SEND SMS/TXT to Customer after DISPO CALL URL

PostPosted: Fri Jul 10, 2015 6:26 am
by mflorell
The "Dispo Call URL" feature only works on calls that go to an agent. For NA calls in a RATIO campaign, they never go to an agent, so the Dispo Call URL would not be triggered.

Re: SEND SMS/TXT to Customer after DISPO CALL URL

PostPosted: Fri Jul 10, 2015 6:30 am
by stefano.pucci
Thanks Matt!