Update device_edit.php (#2854)
Search all profiles when looking up the sofia contact.
This commit is contained in:
parent
1e4aeace11
commit
4dbd6ca2c2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue