<P>Hi,I met the same problem as this mail,</P>
<P><A href="http://www.mail-archive.com/asterisk-users@lists.digium.com/msg101451.html">http://www.mail-archive.com/asterisk-users@lists.digium.com/msg101451.html</A></P>
<P>*******************************************************</P><PRE style="MARGIN: 0em">Hello,

I want to recieve the output from astmanproxy in a php script.
Is that possible ?

I made a simple php script:

&lt;PRE&gt;
&lt;?php
$socket = fsockopen("127.0.0.1","1234", $errno, $errstr, $timeout);
fputs($socket, "Action: Login\r\n");
fputs($socket, "UserName: xxx\r\n");
fputs($socket, "Secret: xxx\r\n\r\n");
fputs($socket, "Action: Command\r\n");
fputs($socket, "Command: Show Channels\r\n\r\n");
fputs($socket, "Action: Logoff\r\n\r\n");
while (!feof($socket)) {
$wrets[] = fread($socket, 8192);
}
fclose($socket);
var_dump($wrets);
?&gt;
&lt;/pre&gt;

</PRE>
<P><FONT face=新宋体><TT>Output in debugmode at the console is correct, but I cannot read the </TT><TT>output in php. </TT><TT>If I use port 5038 I get the output, but I want to connect with multiple </TT><TT>clients, so I should't use a direct connection to manager api, right ? </TT></FONT></P><PRE style="MARGIN: 0em">Why can't I read the output from astmanproxy ?
--

Regards
</PRE>
<P>*******************************************************</P>
<DIV>I searched the archive, and didn't find the answer. </DIV>
<DIV>Anyone knows how to solve it ?</DIV>
<DIV>and Christian,&nbsp;may you not mind me borrowing&nbsp;ur mail content.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>BTW: Do u get the answer? </DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks a lot!</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><BR><BR><DIV>
<DIV><STRONG><FONT face=arial>Best Regards,</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=arial>Gary Li</FONT></STRONG></DIV></DIV><p>__________________________________________________<br>赶快注册雅虎超大容量免费邮箱?<br>http://cn.mail.yahoo.com