[Asterisk-Users] asterisk -rx not working well

Steven Critchfield critch at basesys.com
Sat Jun 19 13:17:19 MST 2004


On Sat, 2004-06-19 at 07:05, Sam Bingner wrote:
> It's exiting before the output finishes printing, it's a known bug and a
> timing issue.... There's a patch I put that's a hack to put in a timeout
> for exit, you should be able to find it on bugs.digium.com

Instead of timing the exit, why don't you just flush the STDOUT and
STDERR file descriptors? Seems this could be done before exit no matter
what the reason was.

> -----Original Message-----
> From: asterisk-users-admin at lists.digium.com
> [mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Stephan Wik
> Sent: Saturday, June 19, 2004 1:23 AM
> To: asterisk-users at lists.digium.com
> Subject: [Asterisk-Users] asterisk -rx not working well
> 
> 
> We're trying to use asterisk -r -x "sip show peers" to monitor sip 
> phone availability. Sometimes the command shows the correct output but 
> 9 times out of 10 all that is returned is:
> 
> Name/username    Host                 Mask             Port     Status
> 
> with no listing.
> 
> Anyone else see this behaviour?
> 
> Stephan
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list