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:
parent
5e6bc5b3ed
commit
06480cbc3d
|
|
@ -851,7 +851,7 @@
|
|||
$template = file_get_contents('/var/www/fusionpbx/resources/templates/provision/'.$device_template.'/template.csv');
|
||||
}
|
||||
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('{$password}', str_replace(';',';;',$row['password']), $template);
|
||||
$template = str_replace('{$display_name}', ($row['display_name'] ?? $row['user_id']), $template);
|
||||
|
|
|
|||
Loading…
Reference in New Issue