mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix. Show registrations to sip profile with force-XXX-domain.
When on profile set `force-register-db-domain` realm on xmlstatus is just IP but user is like 101@domain.name.
This commit is contained in:
@@ -110,8 +110,14 @@ require_once "resources/check_auth.php";
|
||||
//remove unrelated domains
|
||||
if (count($_SESSION["domains"]) > 1) {
|
||||
if (!(permission_exists('registration_all') && $show == "all")) {
|
||||
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
||||
unset($registrations[$x]);
|
||||
if ($registrations[$x]['sip-auth-realm'] == $_SESSION['domain_name']) {}
|
||||
else {
|
||||
$tmp = explode('@', $registrations[$x]['user'], 2);
|
||||
if($tmp[1] == $_SESSION['domain_name']){}
|
||||
else {
|
||||
unset($registrations[$x]);
|
||||
}
|
||||
unset($tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user