[asterisk-users] Problem with AGI Script

Steve Edwards asterisk.org at sedwards.com
Thu Nov 15 09:57:23 CST 2007


On Thu, 15 Nov 2007, Benjamin Jacob wrote:

> well.. if nothings working.. try putting in debug lines urself in the
> code.. say
> use system calls to write some debugging data into some temporary file
> in ur perl code.

I'm a big fan of

 	syslog(LOG_ERR, "I expected %d, but I got %d", foo, bar);

to write a message to the system log. A single statement and no temporary 
files to clean up. Syslog has lots of features -- check out the man page.

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



More information about the asterisk-users mailing list