Page 1 of 1

Question on call tracking

Posted: Fri Aug 21, 2009 11:59 am
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.

IVR code example for using result_url

Posted: Fri Aug 21, 2009 1:42 pm
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