I am trying to execute a php script using Asterisk AGI.However the script works fine.I am trying to connect an external system from the script, which is not working.checked the same code in local server and works fine.How can I debug the same.Please advise.