Update switch.php

This commit is contained in:
FusionPBX 2018-12-13 17:32:30 -07:00 committed by GitHub
parent 577216166c
commit b61f5d0ab9
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,4 @@
<?php
/*
FusionPBX
Version: MPL 1.1
@ -174,7 +173,9 @@ function save_setting_xml() {
$xml .= " <param name=\"listen-ip\" value=\"" . $event_socket_ip_address . "\"/>\n";
$xml .= " <param name=\"listen-port\" value=\"" . $row['event_socket_port'] . "\"/>\n";
$xml .= " <param name=\"password\" value=\"" . $row['event_socket_password'] . "\"/>\n";
$xml .= " <param name=\"apply-inbound-acl\" value=\"" . $row['event_socket_acl'] . "\"/>\n";
if (strlen($row['event_socket_acl']) > 0) {
$xml .= " <param name=\"apply-inbound-acl\" value=\"" . $row['event_socket_acl'] . "\"/>\n";
}
$xml .= " </settings>\n";
$xml .= "</configuration>";
fwrite($fout, $xml);