Hi All,
I’m relatively new to Asterisk so I’m hoping this is an easy question to answer.
I have a dial plan which calls an AGI written in PHP. The only thing I have in the PHP file is a command to initialize a variable called CHECK_STATUS and a command to write to the syslog however it isn’t being run. I’ve changed permissions, ran other commands (I thought maybe the syslog command was faulty) and nothing seems to work.
The Asterisk CLI shows that the call gets to the context but when it tries to run the PHP I get this:
Initiating : Platform: gtv Module: xml_maCheckName execution for session: xxxxx but nothing happens after that and there is no error message.
Here is my PHP:
[code]<?php
$agiWrapper->set_variable(“CHECK_STATUS”,“200”);
syslog(LOG_DEBUG,“STATUS SET TO 200 - FAIL THE CHECK PROCCESS”);
?>[/code]
Here is my dial plan:
[code][gtv-recharge-main-ivr]
exten => _X.,1,Noop(******* BEGIN CODE FOR CHECK NAME *****)
exten => _X.,n,AGI(agiWrapper.agi,gtv^xml_maCheckName )
exten => _X.,n,Noop( Check Status: ${CHECK_STATUS} ************)
exten => _X.,n,GotoIf($[${CHECK_STATUS} != 200]?TechError)
[/code]
Also in the noop the $CHECK_STATUS is null.
Can anyone help?
Thanks!