I am trying to write a small app to list my conference rooms. My test app is as follows.
[code]<?php
$timeout=15;
$socket = fsockopen(“127.0.0.1”,“5038”, $errno, $errstr, $timeout);
fputs($socket, “Action: Login\r\n”);
fputs($socket, “UserName: admin\r\n”);
fputs($socket, “Secret: password\r\n\r\n”);
fputs($socket, “Action: ConfbridgeListRooms\r\n\r\n”);
$wrets = fgets($socket);
echo $wrets;
fclose($socket);
?>[/code]
All I get back is
Asterisk Call Manager/1.3
I would Expect to see something like:
Asterisk Call Manager/1.3
Response: Success
EventList: start
Message: Confbridge conferences will follow
Event: ConfbridgeListRooms
Conference: 6300
Parties: 1
Marked: 0
Locked: No
Event: ConfbridgeListRoomsComplete
EventList: Complete
ListItems: 1