[asterisk-users] sip show peers from shell or from CLI
Steven Howes
steve at geekinter.net
Wed Aug 27 08:36:53 CDT 2008
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...
More information about the asterisk-users
mailing list