<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>&gt; Date: Sat, 27 Nov 2010 08:45:47 -0800<br>&gt; From: asterisk.org@sedwards.com<br>&gt; To: asterisk-users@lists.digium.com<br>&gt; Subject: Re: [asterisk-users] How to hangup all channels<br>&gt; <br>&gt; On Sat, 27 Nov 2010, Giuseppe D'alessio wrote:<br>&gt; <br>&gt; &gt; Hi guys, I'm using Asterisk 1.4 and i need a way to hangup all channels.<br>&gt; <br>&gt; 1) sudo /etc/init.d/asterisk restart<br>&gt; <br>&gt; 2) Write a script to do "asterisk -r -x 'core show channels'", parse the <br>&gt; output and do "asterisk -r -x 'channel request hangup ${CHANNEL_NAME}" for <br>&gt; each channel.<br>&gt; <br>&gt; 3) Write a script to do #2 using AMI.<br>&gt; <br>&gt; -- <br>&gt; Thanks in advance,<br>&gt; -------------------------------------------------------------------------<br>&gt; Steve Edwards       sedwards@sedwards.com      Voice: +1-760-468-3867 PST<br>&gt; Newline                                              Fax: +1-760-731-3000<br>&gt; <br>&gt; -- <br>&gt; _____________________________________________________________________<br>&gt; -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>&gt;                http://www.asterisk.org/hello<br>&gt; <br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;    http://lists.digium.com/mailman/listinfo/asterisk-users<br></div>                                               </body>
</html>