hi: please refer this: http://www.voip-info.org/wiki/view/Asterisk+manager+Example:+PHP and check the manager.conf, make sure the accounts in managers.conf matchs the managers displayed.
Best regards, James.zhu Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards, gateway(fxs/fxo/pri<->SIP). website: www.voipviews.com From: gohar.ah...@vopium.com To: asterisk-users@lists.digium.com Date: Thu, 25 Aug 2011 11:26:53 +0500 Subject: Re: [asterisk-users] How to know how many user is connected I’m not a php expert, but seems your php script is incomplete/ you are sending to socket (fputs) but note receiving anything(fgets) :See this page will help you. From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of virendra bhati Sent: Wednesday, August 24, 2011 6:16 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] How to know how many user is connected 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 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users