From 9145fbcfc4b59e429a135bfb3e3f375e290a17db Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 26 Jul 2021 10:43:03 -0600 Subject: [PATCH] When assiging an extension to a device make sure to use the server_address_primary, and server_address_secondary --- app/extensions/extension_edit.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index b5707209e8..4145cec07f 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -527,6 +527,8 @@ $array["devices"][$j]["device_lines"][0]["server_address"] = $_SESSION['domain_name']; $array["devices"][$j]["device_lines"][0]["outbound_proxy_primary"] = $_SESSION['provision']['outbound_proxy_primary']['text']; $array["devices"][$j]["device_lines"][0]["outbound_proxy_secondary"] = $_SESSION['provision']['outbound_proxy_secondary']['text']; + $array["devices"][$j]["device_lines"][0]["server_address_primary"] = $_SESSION['provision']['server_address_primary']['text']; + $array["devices"][$j]["device_lines"][0]["server_address_secondary"] = $_SESSION['provision']['server_address_secondary']['text']; $array["devices"][$j]["device_lines"][0]["display_name"] = strlen($effective_caller_id_name) > 0 ? $effective_caller_id_name : $extension; $array["devices"][$j]["device_lines"][0]["user_id"] = $extension; $array["devices"][$j]["device_lines"][0]["auth_id"] = $extension;