[asterisk-users] Hangup extensions via CLI?
Dinesh Nair
dinesh at alphaque.com
Fri Feb 13 04:08:45 CST 2009
On Wed, 11 Feb 2009 12:34:12 +0100, Lenz Emilitri wrote:
> This is a bit of trickery, but could not resist :)
>
> This will kill a channel that is connected to SIP/201
>
> asterisk -rx "soft hangup $(asterisk -rx 'show channels' | grep SIP/201
> | awk '{ print $1 '} )"
what if there're also channels sip/201, sip/2011, sip/2012, sip/2013 et
al ?
--
Regards, /\_/\ "All dogs go to heaven."
dinesh at alphaque.com (0 0) http://www.openmalaysiablog.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do |
| for b in clients employers associates relatives neighbours pets; do |
| echo "The opinions here in no way reflect the opinions of my $a $b." |
| done; done |
+=========================================================================+
More information about the asterisk-users
mailing list