[asterisk-users] sip show peers from shell or from CLI

Olivier oza-4h07 at myamail.com
Wed Aug 27 07:19:35 CDT 2008


A closer inspection shows ^@ between "on and Name" as if these letters came
from a word previously cut" (from connexion ?)s o shell command would show
# asterisk -rx "sip show peers"
on
^@Name/username              Host            Dyn Nat ACL Port     Status
4201/4201                  192.168.100.111  D          5060     OK (6 ms)
4200/4200                  192.168.100.110  D          5060     OK (9 ms)

When passing this to grep, grep replies it got binary data.
Strange, isn't ?


2008/8/27 Olivier <oza-4h07 at myamail.com>

> Hello,
>
> On a 1.2 Asterisk / Debian Sarge, I noticed that :
>
> ipbx*CLI> sip show peers
> Name/username              Host            Dyn Nat ACL Port     Status
> 4201/4201                  192.168.100.111  D          5060     OK (8 ms)
> 4200/4200                  192.168.100.110  D          5060     OK (8 ms)
>
> but from shell, I've got
>
> # asterisk -rx "sip show peers"
> on
> Name/username              Host            Dyn Nat ACL Port     Status
> 4201/4201                  192.168.100.111  D          5060     OK (6 ms)
> 4200/4200                  192.168.100.110  D          5060     OK (9 ms)
>
>
> I never noticed this "on" word before.
> Can anyone explain ?
>
> I'm using Asterisk 1.2.17-BRIstuffed-0.3.0-PRE-1y-e
>
> Regards
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080827/8e6860bf/attachment.htm 


More information about the asterisk-users mailing list