i am writing the phpagi script .now i want to use the "request" in my script.but i am unable to put it in the script in right way. i want to capture a callerid,i write the script with folowing entries like,
$clid = $agi->request['agi_callerid'];
$agi->swift("Your caller i d is $clid");
echo("Caller ID is $clid");
but it is not working at all.
i am unable to find out the bug.
is their any other entries required in the script.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i am writing the phpagi script .now i want to use the "request" in my script.but i am unable to put it in the script in right way. i want to capture a callerid,i write the script with folowing entries like,
$clid = $agi->request['agi_callerid'];
$agi->swift("Your caller i d is $clid");
echo("Caller ID is $clid");
but it is not working at all.
i am unable to find out the bug.
is their any other entries required in the script.
$clid = $agi->request;
$agi->swift("Your caller i d is $clid");
echo("Caller ID is $clid");
should be:
$agi->conlog("Caller ID is $clid");
using echo() will send output to the AGI stream with asterisk, thus corrupting the AGI protocol. Use conlog().