<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Thank you, i want to follow your idea, how i can send and receive data from/to Command Line in PHP Script?<div>Thank you in advance<br><br>> Date: Sat, 27 Nov 2010 08:45:47 -0800<br>> From: asterisk.org@sedwards.com<br>> To: asterisk-users@lists.digium.com<br>> Subject: Re: [asterisk-users] How to hangup all channels<br>> <br>> On Sat, 27 Nov 2010, Giuseppe D'alessio wrote:<br>> <br>> > Hi guys, I'm using Asterisk 1.4 and i need a way to hangup all channels.<br>> <br>> 1) sudo /etc/init.d/asterisk restart<br>> <br>> 2) Write a script to do "asterisk -r -x 'core show channels'", parse the <br>> output and do "asterisk -r -x 'channel request hangup ${CHANNEL_NAME}" for <br>> each channel.<br>> <br>> 3) Write a script to do #2 using AMI.<br>> <br>> -- <br>> Thanks in advance,<br>> -------------------------------------------------------------------------<br>> Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST<br>> Newline Fax: +1-760-731-3000<br>> <br>> -- <br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>> http://www.asterisk.org/hello<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br></div>                                            </body>
</html>