On Wed, 16 Jan 2013, Muhammad wrote:

I wrote some php code to working with AGI, but it dosen't work.

When you say 'doesn't work' do you mean 'doesn't do what I want' or 'does not execute?'

If you enable AGI debugging, what does the Asterisk console log look like?

Did you use an established PHP library or 'roll your own?'

A good way to test an AGI is to create a text file containing all the cruft (the AGI 'environment') Asterisk sends to the AGI along with the expected responses. Then you can execute your AGI completely external from Asterisk with a shell command line like:

        /var/lib/asterisk/agi-bin/my-firs-agi <example environment

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to