Update gateway_edit.php

This commit is contained in:
FusionPBX
2018-07-24 16:21:32 -05:00
committed by GitHub
parent 31c72b4cd1
commit 471572658a
+3 -7
View File
@@ -245,13 +245,9 @@
//syncrhonize configuration //syncrhonize configuration
save_gateway_xml(); save_gateway_xml();
//delete the sip profiles from memcache //clear the cache
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); $cache = new cache;
if ($fp) { $cache->delete("configuration:sofia.conf:".$_SESSION['domain_name']);
$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);
}
//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