[Asterisk-Users] Problems with AGI scripts in Perl and Java
Robert Hajime Lanning
lanning+asterisk at monsoonwind.com
Sat Oct 11 10:37:33 MST 2003
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 at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
END OF LINE
More information about the asterisk-users
mailing list