How To Hangup All Channels
- sudo /etc/init.d/asterisk restart
- 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.
- Write a script to do #2 using AMI.