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
+6 -5
View File
@@ -161,11 +161,12 @@
$database->save($array);
$message = $database->message;
//get the hostname
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
$switch_cmd = "switchname";
$sip_profile_hostname = event_socket_request($fp, 'api '.$switch_cmd);
//get the hostname
if ($sip_profile_hostname == '') {
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
$sip_profile_hostname = event_socket_request($fp, 'api switchname');
}
}
//revoke temporary permissions