Update gateway_edit.php

This commit is contained in:
FusionPBX 2018-07-24 16:36:45 -05:00 committed by GitHub
parent 471572658a
commit a5f658f75b
1 changed files with 5 additions and 1 deletions

View File

@ -246,8 +246,12 @@
save_gateway_xml();
//clear the cache
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
$hostname = trim(event_socket_request($fp, 'api switchname')); }
}
$cache = new cache;
$cache->delete("configuration:sofia.conf:".$_SESSION['domain_name']);
$cache->delete("configuration:sofia.conf:".$hostname);
//rescan the external profile to look for new or stopped gateways
//create the event socket connection