mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-01 01:33:49 +00:00
Update device_edit.php (#2854)
Search all profiles when looking up the sofia contact.
This commit is contained in:
@@ -486,7 +486,7 @@
|
||||
//get the sip profile name
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
if ($fp) {
|
||||
$command = "sofia_contact ".$user_id."@".$server_address;
|
||||
$command = "sofia_contact */".$user_id."@".$server_address;
|
||||
$contact_string = event_socket_request($fp, "api ".$command);
|
||||
if (substr($contact_string, 0, 5) == "sofia") {
|
||||
$contact_array = explode("/", $contact_string);
|
||||
|
||||
Reference in New Issue
Block a user