php/ami_set.php aktualisiert

Make queue name configurable
This commit is contained in:
Stefan Ritter 2023-08-23 23:05:49 +02:00
parent a3f3d82e09
commit 90c8e4ca83
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ fputs($socket, 'Secret: ' . $ami_pass . "\r\n\r\n");
if($section == 'sippeers') {
fputs($socket, "Action: QueueAdd\r\n");
fputs($socket, 'Interface: SIP/' . $value . "\r\n");
fputs($socket, "Queue: warteschlange\r\n\r\n");
fputs($socket, "Queue: " . $queue_name . "\r\n\r\n");
}
//
@ -34,7 +34,7 @@ if($section == 'sippeers') {
if($section == 'queuemembers') {
fputs($socket, "Action: QueueRemove\r\n");
fputs($socket, 'Interface: SIP/' . $value . "\r\n");
fputs($socket, "Queue: warteschlange\r\n\r\n");
fputs($socket, "Queue: " . $queue_name . "\r\n\r\n");
}
// It seems that it needs some time to execute