How To Hangup All Channels

Home » Asterisk Tips » How To Hangup All Channels
Asterisk Tips No Comments
  1. sudo /etc/init.d/asterisk restart
  2. Write a script to do “asterisk -r -x ‘core show channels’”, parse the output and do “asterisk -r -x ‘channel request hangup ${CHANNEL_NAME}” for each channel.
  3. Write a script to do #2 using AMI.