diff --git a/resources/templates/provision/fanvil/x3g/{$mac}.cfg b/resources/templates/provision/fanvil/x3g/{$mac}.cfg
index 3dc2245881..043dc37566 100644
--- a/resources/templates/provision/fanvil/x3g/{$mac}.cfg
+++ b/resources/templates/provision/fanvil/x3g/{$mac}.cfg
@@ -6,8 +6,8 @@
255.255.255.0
-
-
+{$dns_server_primary}
+{$dns_server_secondary}
1
0
Fanvil X3S
@@ -15,15 +15,15 @@
0
1
0
-10000
-200
-time.nist.gov
-pool.ntp.org
+16384
+16384
+{$ntp_server_primary}
+{$ntp_server_secondary}
1
-32
-1
-UTC+8
-1
+{$fanvil_time_zone}
+{$fanvil_location}
+{$fanvil_time_zone_name}
+{$fanvil_enable_dst}
2
60
60
@@ -130,9 +130,7 @@
1
1
-0
1
-0
0
@@ -267,22 +265,24 @@
SIP1
-
-
-
-
-5060
-
-
-3600
-0
-
-5060
-
-
-
-5060
-0
+{$user_id_1}
+{$display_name_1}
+{$fanvil_server_name}
+{$server_address_1}
+{$sip_port_1}
+{$auth_id_1}
+{$user_password_1}
+{$register_expires_1}
+
+{if isset($user_password_1)}1{else}0{/if}
+
+{$outbound_proxy_primary_1}
+{$sip_port_1}
+{$auth_id_1}
+{$user_password_1}
+{$outbound_proxy_secondary_1}
+{$sip_port_1}
+1
0
0
@@ -395,22 +395,24 @@
SIP2
-
-
-
-
-5060
-
-
-3600
-0
-
-5060
-
-
-
-5060
-0
+{$user_id_2}
+{$display_name_2}
+{$fanvil_server_name}
+{$server_address_2}
+{$sip_port_2}
+{$auth_id_2}
+{$user_password_2}
+{$register_expires_2}
+
+{if isset($user_password_2)}1{else}0{/if}
+
+{$outbound_proxy_primary_2}
+{$sip_port_2}
+{$auth_id_2}
+{$user_password_2}
+{$outbound_proxy_secondary_2}
+{$sip_port_2}
+1
0
0
@@ -631,6 +633,7 @@
0
0
1
+0
1
254
@@ -657,7 +660,7 @@
0
0
110
-VOIP PHONE
+{$fanvil_greeting}
5
1
30
@@ -670,9 +673,10 @@
0
0
0
-0
+
+{if isset($fanvil_time_display)}1{else}0{/if}
+
X3S
-
1
1
0
@@ -680,7 +684,7 @@
0
0
1
-0
+{$fanvil_date_display}
0
1
0
@@ -1098,6 +1102,7 @@
+0
history;contact;dnd;menu;
@@ -1146,16 +1151,16 @@
0
-
-
+{$http_auth_username}
+{$http_auth_password}
0
1
-
-0
-0
+https://{$domain_name}/app/provision
+5
+1
1
66
0