[asterisk-users] How to hangup all channels
Steve Edwards
asterisk.org at sedwards.com
Mon Nov 29 09:33:21 CST 2010
Un-top-posting...
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.
On Sat, 27 Nov 2010, Steve Edwards wrote:
> > 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.
On Mon, 29 Nov 2010, Giuseppe D'alessio wrote:
> 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
1) Use 'popen().'
2) Use 'proc_open().'
3) Google for 'asterisk php ami.'
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list