[asterisk-users] How to know how many user is connected
virendra bhati
virbhati at gmail.com
Wed Aug 24 08:16:00 CDT 2011
Hi List,
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
<?php
$socket = fsockopen("127.0.0.1","5038", $errno, $errstr, 30);
if (!$socket)
{
$done=0;
} else {
fputs($socket, "Action: Login\r\n");
fputs($socket, "UserName: root\r\n");
fputs($socket, "Secret: energy\r\n\r\n");
fputs($socket, "Action: Command\r\n");
fputs($socket, "Command: manager show connected\r\n");
$done=1;
}
?>
Now how to get information into this PHP file....
-----
Thanks and regards
Virendra Bhati
+91-9172341457
Software Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110824/59bc2a9a/attachment.htm>
More information about the asterisk-users
mailing list