Currently I am playing around with Trixbox. In particular I am using version (trixbox CE 18.104.22.168 (Stable)) running on Asterisk 1.4.
I have done a fresh install on a laptop using the ISO file, I have set the extension 200 to be active in extension config I have used the following lines:
exten => 200,1,Answer
exten => 200,2,AGI(test.php)
exten => 200,3,Hangup
This should then call my script in /var/lib/asterisk/agi-bin/test.php and initialise it. I have CHMOD the file to 777 so permissions are all ok and the PHP file itself is pretty basic.
When I ring the extension 200 I get a pretty much instantaneous hang up and within the CLI of asterisk I have something along the lines of:
– Launched AGI Script /var/lib/asterisk/agi-bin.test.php
(Some lines of pointless output)
“AGI Tx >> 510 Invalid or unknown command”[/code]
This happens on multiple lines. The problem is I am fairly sure these are valid commands so perhaps this is some issues with PHP?
Would someone be able to give me a hand with this and hopefully allow me to solve this issue?