mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix the gateway cache add the hostname and increase the security.
This commit is contained in:
@@ -251,12 +251,13 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
save_gateway_xml();
|
||||
|
||||
//synchronize the xml config
|
||||
save_dialplan_xml();
|
||||
//save_dialplan_xml();
|
||||
|
||||
//delete the sip profiles from memcache
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
if ($fp) {
|
||||
$switch_cmd = "memcache delete configuration:sofia.conf";
|
||||
$hostname = trim(event_socket_request($fp, 'api switchname'));
|
||||
$switch_cmd = "memcache delete configuration:sofia.conf:".$hostname;
|
||||
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user