Fix bug with sipnetic use server_address

The registration domain should use server_address not the outbound_proxy_primary address.
This commit is contained in:
FusionPBX 2024-02-19 14:56:46 -07:00 committed by GitHub
parent 5e6bc5b3ed
commit 06480cbc3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@
$template = file_get_contents('/var/www/fusionpbx/resources/templates/provision/'.$device_template.'/template.csv'); $template = file_get_contents('/var/www/fusionpbx/resources/templates/provision/'.$device_template.'/template.csv');
} }
if (!empty($template)) { if (!empty($template)) {
$template = str_replace('{$server_address}', $outbound_proxy_primary, $template); $template = str_replace('{$server_address}', $row['server_address'], $template);
$template = str_replace('{$user_id}', $row['user_id'], $template); $template = str_replace('{$user_id}', $row['user_id'], $template);
$template = str_replace('{$password}', str_replace(';',';;',$row['password']), $template); $template = str_replace('{$password}', str_replace(';',';;',$row['password']), $template);
$template = str_replace('{$display_name}', ($row['display_name'] ?? $row['user_id']), $template); $template = str_replace('{$display_name}', ($row['display_name'] ?? $row['user_id']), $template);