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

Question on call tracking

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
nsiram
Posts: 8
Joined: Wed Aug 19, 2009 9:08 am

Question on call tracking

Post by nsiram »

Can you please provide an example code for the resultURL.

I would also like to know how I can track whether the call is answered.

Please provide some examples for how to :
1) track the call placed and
2) Check how many calls were made and how many hits are remaining on our account.

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

IVR code example for using result_url

Post by support »

Hi,

Here is an IVR code example of what you can use for result_url:

storeresults.php

Code: Select all

<?php
$File = "storeresults.txt";
$Handle = fopen($File, 'a+');
$Date = date("r");
$Result = $_POST[result];
$Callid = $_POST[call_id];
$Data = "$Date $Callid $Result\n";
fwrite($Handle, $Data);
print "Data Written";
fclose($Handle);
?>
This IVR code example allows you to write some post-call information to a file to track whether the IVR call had been answered, the call ID, and the date timestamp.

As for checking "how many hits are remaining for your account", could you please clarify further by what you mean?

Regards,
Plum Support

Post Reply