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

Olivier oza-4h07 at myamail.com
Wed Aug 27 09:13:00 CDT 2008


It does work, here !!
Thanks you very much !!

2008/8/27 Steven Howes <steve at geekinter.net>

>
> On 27 Aug 2008, at 14:21, Olivier wrote:
> > I think we're getting closer now as obviously Asterisk's greeting
> > ("...UNIX connection") is mixed with its output.
> > (I can't understand why this happens now  as I never noticed this
> > before and didn't change anything).
> >
> > I tried to use asterisk -rx '!sleep 1 && sip show peers' to works
> > around but :
> > 1. !sleep is not valid when issued from shell CLI (it's ok from
> > Asterisk CLI)
> > 2. constructions like 'foo && foo' are not accepted by asterisk
> >
> >
> > Beside using sed to remove 'on^@', I can't imagine any smarter
> > workaround ...
> >
> > If anyone is inspired, please do not hesitate ...
>
> asterisk -rx'sip show peers' | grep -a '('
>
> Bit hacky but works...
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080827/0507082d/attachment.htm 


More information about the asterisk-users mailing list