From 90c8e4ca831acf5251a27780e0e8a9fcdaa6f264 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Wed, 23 Aug 2023 23:05:49 +0200 Subject: [PATCH] php/ami_set.php aktualisiert Make queue name configurable --- php/ami_set.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/ami_set.php b/php/ami_set.php index 806d244..9df8b25 100644 --- a/php/ami_set.php +++ b/php/ami_set.php @@ -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