SEND SMS/TXT to Customer after DISPO CALL URL

Discussions about new features or changes in existing features

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

SEND SMS/TXT to Customer after DISPO CALL URL

Postby stefano.pucci » Fri Jul 10, 2015 6:23 am

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
stefano.pucci
 
Posts: 28
Joined: Thu May 28, 2015 5:25 am

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

Postby mflorell » Fri Jul 10, 2015 6:26 am

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.
mflorell
Site Admin
 
Posts: 18379
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

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

Postby stefano.pucci » Fri Jul 10, 2015 6:30 am

Thanks Matt!
stefano.pucci
 
Posts: 28
Joined: Thu May 28, 2015 5:25 am


Return to Features

Who is online

Users browsing this forum: No registered users and 17 guests

cron