Hanging up a particular channel in Asterisk

Assuming that 2008 is the extension, here is the cli command:

asterisk -rx "channel request hangup $(asterisk -rx "core show channels" | grep "2008" | awk '{print $1}')"

Leave a Reply

Your email address will not be published. Required fields are marked *