mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
SIP Profiles: List view updates.
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user