shawn bright
2006-Jul-29 03:07 UTC
[asterisk-users] where to read stderr.out from an agi script
Hello there all, i am using an agi python script. It is kinda from an example in the ATOF book ( O'Reilly) it simply answers the phone, receives 5 DTMF digits, and writes those digits to a text file. however, it isn't working. The script is in python, and i have stderr writing out some debug lines, but i do not know where to read them. here is what i am getting in the /var/log/asterisk/messages Jul 29 06:02:05 WARNING[2863]: unable to spawn mp3player Jul 29 06:02:05 NOTICE[2863]: registered database handle 'mysql1' dsn->[MySQL-asterisk] Jul 29 06:02:05 NOTICE[2863]: registered database handle 'mysql2' dsn->[MySQL-asterisk] Jul 29 06:02:05 NOTICE[2863]: res_odbc loaded. Jul 29 06:02:05 NOTICE[2863]: Registered Config Engine odbc Jul 29 06:02:05 NOTICE[2863]: res_config_odbc loaded. Jul 29 06:02:05 WARNING[2863]: Firmware file '/var/lib/asterisk/firmware/iax/iaxy.bin' fails checksum Jul 29 06:02:05 WARNING[2863]: Unable to get our IP address, Skinny disabled Jul 29 06:02:44 WARNING[2863]: Timeout, but no rule 't' in context 'incoming' any tips would be appreciated greatly. thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060729/0a26d9d1/attachment.htm
Matt Florell
2006-Jul-29 07:05 UTC
[asterisk-users] where to read stderr.out from an agi script
Stop asterisk and run it from the command line directly(asterisk -vvvvvvvvgc). For some reason AGI scripts only output to the original Asterisk session, not remotely connected Asterisk sessions(asterisk -r) MATT--- On 7/29/06, shawn bright <nephish@gmail.com> wrote:> Hello there all, > i am using an agi python script. > It is kinda from an example in the ATOF book ( O'Reilly) > it simply answers the phone, receives 5 DTMF digits, > and writes those digits to a text file. > > however, it isn't working. > The script is in python, and i have stderr writing out some debug lines, > but i do not know where to read them. > > here is what i am getting in the /var/log/asterisk/messages > > Jul 29 06:02:05 WARNING[2863]: unable to spawn mp3player > Jul 29 06:02:05 NOTICE[2863]: registered database handle 'mysql1' > dsn->[MySQL-asterisk] > Jul 29 06:02:05 NOTICE[2863]: registered database handle 'mysql2' > dsn->[MySQL-asterisk] > Jul 29 06:02:05 NOTICE[2863]: res_odbc loaded. > Jul 29 06:02:05 NOTICE[2863]: Registered Config Engine odbc > Jul 29 06:02:05 NOTICE[2863]: res_config_odbc loaded. > Jul 29 06:02:05 WARNING[2863]: Firmware file > '/var/lib/asterisk/firmware/iax/iaxy.bin' fails checksum > Jul 29 06:02:05 WARNING[2863]: Unable to get our IP address, Skinny disabled > Jul 29 06:02:44 WARNING[2863]: Timeout, but no rule 't' in context > 'incoming' > > any tips would be appreciated greatly. > thanks! > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > >