how to start phpAgi

Discussion in 'General' started by joe072, Aug 20, 2009.

  1. joe072

    Joined:
    Jul 24, 2009
    Messages:
    3
    Likes Received:
    0
    I have a problem programming phpAGI where I try to enter the value from the id of my customers, and the result form of the bill that the answer's id is my customers. I've tried to run what was at the address www.voip-info.org/wiki/view/Asterisk+AGI+php
    but no way at all. Explanation please?
     
  2. haamed

    Joined:
    Jul 23, 2007
    Messages:
    251
    Likes Received:
    0
    Hi my Friend,
    you didn't say the problem clearly, but i think you couldn't run your PHP script even !
    for running php program as agi you know these notes:

    1) put your .php file in /var/lib/asterisk/agi-bin/ with 777 permission.

    2) use phpagi.php as require in your file, here is a sample code:


    if your problem is something else please let me know,

    Goodluck
     

Share This Page