php/ami_get.php aktualisiert
Make queue name configurable
This commit is contained in:
parent
43b3297934
commit
a3f3d82e09
|
@ -50,7 +50,7 @@ while(($data = fgets($socket, 8096)) != "Event: PeerlistComplete\r\n") {
|
|||
$queuemembers = [];
|
||||
|
||||
fputs($socket, "Action: QueueStatus\r\n");
|
||||
fputs($socket, "Queue: warteschlange\r\n\r\n");
|
||||
fputs($socket, "Queue: " . $queue_name . "\r\n\r\n");
|
||||
while(($data = fgets($socket, 8096)) != "Event: QueueStatusComplete\r\n") {
|
||||
$pattern_name = '/^Name.*$/';
|
||||
if(preg_match($pattern_name, $data)) {
|
||||
|
|
Loading…
Reference in New Issue