[asterisk-users] How to hangup all channels
Jim Dickenson
dickenson at cfmc.com
Sat Nov 27 10:52:39 CST 2010
Can also do "asterisk -r -x 'restart now'"
asterisk*CLI> help restart
restart gracefully Restart Asterisk gracefully
restart now Restart Asterisk immediately
restart when convenient Restart Asterisk at empty call volume
--
Jim Dickenson
mailto:dickenson at cfmc.com
CfMC
http://www.cfmc.com/
On Nov 27, 2010, at 8:45 AM, Steve Edwards wrote:
> On Sat, 27 Nov 2010, Giuseppe D'alessio wrote:
>
>> Hi guys, I'm using Asterisk 1.4 and i need a way to hangup all channels.
>
> 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.
>
> --
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
> Newline Fax: +1-760-731-3000
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list