Update gateway_copy.php

This commit is contained in:
FusionPBX 2019-02-05 10:31:55 -07:00 committed by GitHub
parent f2135f0231
commit c70bec82f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,12 @@
//synchronize the xml config
save_gateway_xml();
//clear the cache
$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'));
$cache = new cache;
$cache->delete("configuration:sofia.conf:".$hostname);
//redirect the user
message::add($text['message-copy']);
header("Location: gateways.php");