mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update sip_profile_edit.php
This commit is contained in:
@@ -148,12 +148,10 @@
|
|||||||
//exit;
|
//exit;
|
||||||
|
|
||||||
//get the hostname
|
//get the hostname
|
||||||
if ($sip_profile_name == nul) {
|
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
if ($fp) {
|
||||||
if ($fp) {
|
$switch_cmd = "switchname";
|
||||||
$switch_cmd = "hostname";
|
$sip_profile_hostname = event_socket_request($fp, 'api '.$switch_cmd);
|
||||||
$sip_profile_hostname = event_socket_request($fp, 'api '.$switch_cmd);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
|
|||||||
Reference in New Issue
Block a user