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

Reply via email to