Menu

how to use "request[]"

2007-01-27
2013-04-29
  • pankajkarde

    pankajkarde - 2007-01-27

    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.

     
  • josephtikva

    josephtikva - 2010-10-19

    $clid = $agi->request;

    $agi->swift("Your caller i d is $clid");

    echo("Caller ID is $clid");

    should be:

    $agi->conlog("Caller ID is $clid");

     
  • Matthew Asham

    Matthew Asham - 2010-10-19

    using echo() will send output to the AGI stream with asterisk, thus corrupting the AGI protocol.  Use conlog().

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.