I am developing the Speech IVR using PHPAGI , i want to send the PHPAGI variable to python script . Below the my code details
// PHPAGI Code
i received the variable in Python code
TITLE = sys.argv
But i am not getting the any information on this variable , Please help me on this . How can receive the variable .
$item variable it is just an string ?
Sorry, I’m home now, but I can get on and retrieve. Just the Zimbra.log file? Asterisk version should be in my first entry, but let me know if you need me to post again. Not sure on the item variable. And how would I go about verifying the SIP device and it forwarding? Doesn’t appear to show up in any of the conf files or database in queues or ring groups. Thanks!
Sorry but your reply it is confusing and mention things that have nothing to do with the original post, are you sure you re posting on the correct thread ?
I’m sorry, I was thinking about another issue when I replied. But just let me know what, and maybe how, to pull what you need.
specify the full path of the python agi on your php code, also make sure the permisions for execute the code
And it starts with a #! line containing the full path to the python interpreter.
Yes . Its only for string . I want to capture this string in python code.
I am specify the full path but i did’t get the variable on python page.
// PHPAGI Code
// Python Code
titt = sys.argv // When i add this line into python code , this script is not working .
Make sure Python scripts works fine outside the Asterisk, test it directly on the console