mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update gateway_edit.php
This commit is contained in:
@@ -241,16 +241,16 @@
|
|||||||
unlink($gateway_xml_file);
|
unlink($gateway_xml_file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//syncrhonize configuration
|
//syncrhonize configuration
|
||||||
save_gateway_xml();
|
save_gateway_xml();
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||||
$hostname = trim(event_socket_request($fp, 'api switchname'));
|
$hostname = trim(event_socket_request($fp, 'api switchname'));
|
||||||
$cache = new cache;
|
$cache = new cache;
|
||||||
$cache->delete("configuration:sofia.conf:".$hostname);
|
$cache->delete("configuration:sofia.conf:".$hostname);
|
||||||
|
|
||||||
//rescan the external profile to look for new or stopped gateways
|
//rescan the external profile to look for new or stopped gateways
|
||||||
//create the event socket connection
|
//create the event socket connection
|
||||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
$_SESSION["reload_xml"] = false;
|
$_SESSION["reload_xml"] = false;
|
||||||
|
|
||||||
} //if ($_POST["persistformvar"] != "true")
|
} //if ($_POST["persistformvar"] != "true")
|
||||||
|
|
||||||
//redirect the user
|
//redirect the user
|
||||||
if (isset($action)) {
|
if (isset($action)) {
|
||||||
if ($action == "add") {
|
if ($action == "add") {
|
||||||
|
|||||||
Reference in New Issue
Block a user