SIP Profiles: List view updates.

This commit is contained in:
Nate
2019-12-03 16:55:15 -07:00
parent e22c032d92
commit da7f8d0189
4 changed files with 421 additions and 90 deletions

View File

@@ -88,17 +88,17 @@
$_SESSION["reload_xml"] = true;
//get the hostname
if ($sip_profile_name == nul) {
if ($sip_profile_hostname == '') {
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
$switch_cmd = "hostname";
$sip_profile_name = event_socket_request($fp, 'api '.$switch_cmd);
$switch_cmd = "switchname";
$sip_profile_hostname = event_socket_request($fp, 'api '.$switch_cmd);
}
}
//clear the cache
$cache = new cache;
$cache->delete("configuration:sofia.conf:".$sip_profile_name);
$cache->delete("configuration:sofia.conf:".$sip_profile_hostname);
//set message
message::add($text['message-delete']);