Page 1 of 1

Robo calling?

Posted: Tue Dec 08, 2009 2:26 pm
by fkuhne
We have successfully taken our IVR app into production. For a future release we would like to give our clients the ability to setup call reminders for their clients. The workflow would be something like:

1) Scheduled task is run, calling Robocall.aspx in our IVR app
2) Robocall.aspx runs a database query to get the phone number, name, and any other information needed to contact the appropriate person
3) Robocall.aspx initiates a call to that person.
4) The person would be able to interact with the call, enter an ID, send a payment, etc.

I don't remember seeing any examples of that anywhere. Any ideas?

IVR robo outbound call

Posted: Tue Dec 08, 2009 3:59 pm
by support
Hi,

Within Robocall.aspx, you would need to create an IVR outbound call that sets the phone number parameter equal to the number pulled from the query. You would also want to set the start_url to an IVR application that would enter an ID, send a payment, etc. with a HTTP POST or HTTP GET to receive the other queried data (name, other information).

Below is a php example that might help you get started:

robocall.php:

Code: Select all

<?php

// run some database queries to get the phone number, name, and other information needed to contact the appropriate person;

$phonenumber = "1234567890"; // for demo purposes, this is the 10-digit phone number pulled from database
$firstname = "jack"; // for demo purposes, this is some information pulled from the database
$lastname = "sparrow"; // for demo purposes, this is some information pulled from the database

$params['login'] = "xxxxxx";
$params['pin'] = "xxxxxxxx";

$params['campaign_name'] = "callnumbers";

$params['max_retries'] = "2";

$params['retry_interval'] = "300";

$params['phone_number'] = "tel:+1$phonenumber";

$params['call_parameters'] = "lang=en_us";

$params['start_url'] = "http://www.example.com/startcall.php?firstname=$firstname&lastname=$lastname"; // this is the application that the person who gets dialed will interact with (enter an ID, send a payment, etc.)

$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_URL, "http://outbound.plumgroup.com/webservice/queuecalls.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$result = curl_exec($ch);
echo $result;

curl_close($ch);

?>
Regards,
Plum Support