We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Robo calling?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
fkuhne
Posts: 21
Joined: Mon Nov 20, 2006 10:21 pm

Robo calling?

Post 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?

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR robo outbound call

Post 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

Post Reply