Serge Mankovski
2003-Oct-11 10:15 UTC
[Asterisk-Users] Problems with AGI scripts in Perl and Java
Hi what can be wrong with * that console does not show any stderr text printed from agi script? I am starting with asterisk -vvvvvvvvvvvvvvvvvvvvvvvvrc VERBOSE command does show text on console but printing of STDERR does not I tried it from Perl and from Java and in both cases almost the same result, except in Java more things do not work. In Java for, for example, SAY DIGITS 123 78# would attempt to say "one", but would not finish and there is not attempt even to say "two". In Perl, however ,SAY DIGITS work correctly Thanks Serge _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
Robert Hajime Lanning
2003-Oct-11 10:37 UTC
[Asterisk-Users] Problems with AGI scripts in Perl and Java
Try putting at the top of the Perl script: $| = 1; select((select(STDERR),$| = 1)[0]); This removes buffering. <quote who="Serge Mankovski">> Hi > what can be wrong with * that console does not show any stderr text > printed > from agi script? > I am starting with asterisk -vvvvvvvvvvvvvvvvvvvvvvvvrc > VERBOSE command does show text on console but printing of STDERR does not > > I tried it from Perl and from Java and in both cases almost the same > result, > except in Java more things do not work. > > In Java for, for example, SAY DIGITS 123 78# would attempt to say "one", > but > would not finish and there is not attempt even to say "two". In Perl, > however ,SAY DIGITS work correctly > > Thanks > Serge > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >-- END OF LINE
Florian Overkamp
2003-Oct-11 12:01 UTC
[Asterisk-Users] Problems with AGI scripts in Perl and Java
Citeren Serge Mankovski <dorjegonpo@hotmail.com>:> Hi > what can be wrong with * that console does not show any stderr text printed > from agi script? > I am starting with asterisk -vvvvvvvvvvvvvvvvvvvvvvvvrc > VERBOSE command does show text on console but printing of STDERR does notIf you are running asterisk in detached mode and are connecting to it via 'asterisk -r' then stderr may not be where you expect it to be :-) Look on the stderr of the console where you originally started the initial asterisk process, which is not nessecarily the console where you ran the 'asterisk -r'. If you logged out and in inbetween it will be unavailable.. -- Met vriendelijke groet, Florian Overkamp ObSimRef BV
Serge Mankovski
2003-Oct-11 14:47 UTC
[Asterisk-Users] Problems with AGI scripts in Perl and Java
Thank you for your reply. I tried it, but it did not help Serge>From: "Robert Hajime Lanning" <lanning+asterisk@monsoonwind.com> >Reply-To: asterisk-users@lists.digium.com >To: asterisk-users@lists.digium.com >Subject: Re: [Asterisk-Users] Problems with AGI scripts in Perl and Java >Date: Sat, 11 Oct 2003 10:37:33 -0700 (PDT) > >Try putting at the top of the Perl script: > >$| = 1; >select((select(STDERR),$| = 1)[0]); > >This removes buffering. > ><quote who="Serge Mankovski"> > > Hi > > what can be wrong with * that console does not show any stderr text > > printed > > from agi script? > > I am starting with asterisk -vvvvvvvvvvvvvvvvvvvvvvvvrc > > VERBOSE command does show text on console but printing of STDERR does >not > > > > I tried it from Perl and from Java and in both cases almost the same > > result, > > except in Java more things do not work. > > > > In Java for, for example, SAY DIGITS 123 78# would attempt to say "one", > > but > > would not finish and there is not attempt even to say "two". In Perl, > > however ,SAY DIGITS work correctly > > > > Thanks > > Serge > > > > _________________________________________________________________ > > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > _______________________________________________ > > Asterisk-Users mailing list > > Asterisk-Users@lists.digium.com > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > >-- >END OF LINE >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users_________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Serge Mankovski
2003-Oct-12 13:03 UTC
[Asterisk-Users] Problems with AGI scripts in Perl and Java
Thank you, it helped. I started * with asterisk -vvvvvvvvvvvvvvvgc and I can see all STDERR messages Serge>From: Florian Overkamp <florian@obsimref.com> >Reply-To: asterisk-users@lists.digium.com >To: asterisk-users@lists.digium.com >Subject: Re: [Asterisk-Users] Problems with AGI scripts in Perl and Java >Date: Sat, 11 Oct 2003 21:01:53 +0200 > >Citeren Serge Mankovski <dorjegonpo@hotmail.com>: > > > Hi > > what can be wrong with * that console does not show any stderr text >printed > > from agi script? > > I am starting with asterisk -vvvvvvvvvvvvvvvvvvvvvvvvrc > > VERBOSE command does show text on console but printing of STDERR does >not > >If you are running asterisk in detached mode and are connecting to it >via 'asterisk -r' then stderr may not be where you expect it to be :-) Look >on >the stderr of the console where you originally started the initial asterisk >process, which is not nessecarily the console where you ran the 'asterisk >-r'. >If you logged out and in inbetween it will be unavailable.. > >-- >Met vriendelijke groet, >Florian Overkamp >ObSimRef BV >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users_________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail