diff --git a/resources/templates/provision/fanvil/x4u/{$mac}.cfg b/resources/templates/provision/fanvil/x4u/{$mac}.cfg
index 7ddae979f8..038ef38a77 100644
--- a/resources/templates/provision/fanvil/x4u/{$mac}.cfg
+++ b/resources/templates/provision/fanvil/x4u/{$mac}.cfg
@@ -2037,8 +2037,8 @@
0
0
0
- 1
- 1
+ {$fanvil_default_answer_mode}
+ {$fanvil_default_dial_mode}
0
1
1
@@ -2076,12 +2076,12 @@
-1
- Type 1
+ {if isset($fanvil_default_ringtone_ext)}{$fanvil_default_ringtone_ext}{else}Type 1{/if}
-1
- Type 1
+ {if isset($fanvil_default_ringtone_ext2)}{$fanvil_default_ringtone_ext2}{else}Type 1{/if}
@@ -2626,14 +2626,16 @@
- {foreach $keys["line"] as $row}
-
- {if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}
- {if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}
- {$row.device_key_label}
- {$row.device_key_icon}
-
- {/foreach}
+
+ {foreach $keys["line"] as $row}
+
+ {if $row.device_key_type == 3}0{elseif $row.device_key_type == 1}2{else}1{/if}
+ {if $row.device_key_type == 3}{elseif $row.device_key_type == 1}SIP{$row.device_key_line}{else}{$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}{/if}
+ {$row.device_key_label}
+ {$row.device_key_icon}
+
+ {/foreach}
+
{strip}{*-- Each Internal Index contains 6 keys --*}{/strip}
@@ -2729,12 +2731,12 @@
INFO
- stdout
+ {if $fanvil_syslog_enable == '1'},syslog{else}stdout{/if}
platform.log
512KB
platform
- 0.0.0.0
- 514
+ {if isset($fanvil_syslog_server)}{$fanvil_syslog_server}{else}0.0.0.0{/if}
+ {if isset($fanvil_syslog_server_port)}{$fanvil_syslog_server_port}{else}514{/if}
1
@@ -2750,11 +2752,11 @@
dps
dps
3600
- 0
+ 2
020
0
-
- 3478
+ {$fanvil_stun_server}
+ {$fanvil_stun_port}
30000
@@ -2843,7 +2845,7 @@
1
5
{if isset($fanvil_provision_url)}{$fanvil_provision_url}{else}https://{$domain_name}/app/provision{/if}
-
+ {$fanvil_firmware_config}
5
1
1