<div dir="ltr">Hi List,<br clear="all"><br>I want to know how many manager is connected into asterisk server. I have made simple file but I don't have any idea how to get information back from Asterisk CLI<br><br><?php<br>
<br> $socket = fsockopen("127.0.0.1","5038", $errno, $errstr, 30);<br> if (!$socket) <br> {<br> $done=0;<br> } else {<br> fputs($socket, "Action: Login\r\n");<br> fputs($socket, "UserName: root\r\n");<br>
fputs($socket, "Secret: energy\r\n\r\n");<br> fputs($socket, "Action: Command\r\n");<br> fputs($socket, "Command: manager show connected\r\n");<br> $done=1;<br> }<br><br>?><br><br>Now how to get information into this PHP file....<br>
<div dir="ltr"><br>-----<br>Thanks and regards<br><br> Virendra Bhati<br>+91-9172341457<br>Software Engineer<br></div><br>
</div>