php/ami_set.php aktualisiert
Make queue name configurable
This commit is contained in:
parent
a3f3d82e09
commit
90c8e4ca83
|
@ -24,7 +24,7 @@ fputs($socket, 'Secret: ' . $ami_pass . "\r\n\r\n");
|
||||||
if($section == 'sippeers') {
|
if($section == 'sippeers') {
|
||||||
fputs($socket, "Action: QueueAdd\r\n");
|
fputs($socket, "Action: QueueAdd\r\n");
|
||||||
fputs($socket, 'Interface: SIP/' . $value . "\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') {
|
if($section == 'queuemembers') {
|
||||||
fputs($socket, "Action: QueueRemove\r\n");
|
fputs($socket, "Action: QueueRemove\r\n");
|
||||||
fputs($socket, 'Interface: SIP/' . $value . "\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
|
// It seems that it needs some time to execute
|
||||||
|
|
Loading…
Reference in New Issue