[asterisk-users] How to hangup all channels

Giuseppe D'alessio peppewebadsl at hotmail.com
Mon Nov 29 08:47:01 CST 2010


Thank you, i want to follow your idea, how i can send and receive data from/to Command Line in PHP Script?Thank you in advance

> Date: Sat, 27 Nov 2010 08:45:47 -0800
> From: asterisk.org at sedwards.com
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] How to hangup all channels
> 
> 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
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101129/a1902443/attachment.htm 


More information about the asterisk-users mailing list