[asterisk-users] Hangup extensions via CLI?

Lenz Emilitri lenz.loway at gmail.com
Fri Feb 13 01:38:44 CST 2009


I have a feeling we're overdoing it :)

l.

2009/2/12 Lukas Rypl <rypl at marconi.ttc.cz>

>
> > asterisk -rx "soft hangup $(asterisk -rx 'core show channels' | grep
> SIP/7000
>
>
>  Hi,
>
>  I used this way of processing output from asterisk 1.2 and found out
> that it is not 100% safe because there can appear unprintable characters
> in the output. This will cause the following grep command to show
> message similar to "Binary content: matched" instead of expected line.
>
>  It is necessary to use "strings -a" to filter output. So your example
> should be:
>
>  asterisk -rx 'core show channels' | strings -a | grep SIP/7000
>
>
>
>  Hope it helps
>
>  Lukas
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Loway - home of QueueMetrics - http://queuemetrics.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090213/a84e0536/attachment.htm 


More information about the asterisk-users mailing list