[Asterisk-Users] asterisk -rx not working well
Sam Bingner
sam at bingner.com
Sat Jun 19 15:54:36 MST 2004
The problem is that it uses a socket, and doesn't KNOW when the end of the
command is. Somebody else IS working on fixing this so there is a
control connection and it will know. It does finish writing everything
that the remote console got from the * server before it exits... It just
hasn't got everything yet.
Sam
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Steven
Critchfield
Sent: Saturday, June 19, 2004 10:17 AM
To: asterisk-users at lists.digium.com
Subject: RE: [Asterisk-Users] asterisk -rx not working well
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>
_______________________________________________
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3047 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20040619/b9fbbc3c/smime.bin
More information about the asterisk-users
mailing list