diff --git a/resources/templates/provision/fanvil/x4u/{$mac}.cfg b/resources/templates/provision/fanvil/x4u/{$mac}.cfg
index 9059dd5148..f9a24bd673 100644
--- a/resources/templates/provision/fanvil/x4u/{$mac}.cfg
+++ b/resources/templates/provision/fanvil/x4u/{$mac}.cfg
@@ -59,7 +59,7 @@
1
1
0
-
+ Fanvil X4U
10
@@ -187,7 +187,7 @@
0
0
1
- 0
+ {if isset($account.1.user_id)}1{else}{/if}
{$account.1.register_expires}
0
0
@@ -214,7 +214,7 @@
1
0
-
+ {if isset($account.1.user_id)}*97{else}{/if}
@@ -263,7 +263,7 @@
0
0
1
- 0
+ 2
0
@@ -349,7 +349,7 @@
0
0
1
- 0
+ {if isset($account.2.user_id)}1{else}{/if}
{$account.2.register_expires}
0
0
@@ -376,7 +376,7 @@
1
0
-
+ {if isset($account.2.user_id)}*97{else}{/if}
@@ -425,7 +425,7 @@
0
0
1
- 0
+ 2
0
@@ -511,7 +511,7 @@
0
0
1
- 0
+ {if isset($account.3.user_id)}1{else}{/if}
{$account.3.register_expires}
0
0
@@ -538,7 +538,7 @@
1
0
-
+ {if isset($account.3.user_id)}*97{else}{/if}
@@ -587,7 +587,7 @@
0
0
1
- 0
+ 2
0
@@ -673,7 +673,7 @@
0
0
1
- 0
+ {if isset($account.4.user_id)}1{else}{/if}
{$account.4.register_expires}
0
0
@@ -700,7 +700,7 @@
1
0
-
+ {if isset($account.4.user_id)}*97{else}{/if}
@@ -749,7 +749,7 @@
0
0
1
- 0
+ 2
0
@@ -835,15 +835,15 @@
0
0
1
- 0
+ {if isset($account.5.user_id)}1{else}{/if}
{$account.5.register_expires}
0
0
1
0
0
- 0
- 0
+ {if $account.5.sip_transport == 'dns srv'}1{/if}
+ {if $account.5.sip_transport == 'dns srv'}1{/if}
0
0
0
@@ -862,7 +862,7 @@
1
0
-
+ {if isset($account.5.user_id)}*97{else}{/if}
@@ -911,7 +911,7 @@
0
0
1
- 0
+ 2
0
@@ -983,7 +983,7 @@
- {if isset($fanvil_ringtone_line)}{$fanvil_ringtone_line6}{else}default{/if}
+ {if isset($fanvil_ringtone_line6)}{$fanvil_ringtone_line6}{else}default{/if}
2
30
0
@@ -997,7 +997,7 @@
0
0
1
- 0
+ {if isset($account.6.user_id)}1{else}{/if}
{$account.6.register_expires}
0
0
@@ -1020,11 +1020,11 @@
0
0
- 0
+ 1
1
0
-
+ {if isset($account.6.user_id)}*97{else}{/if}
@@ -1035,7 +1035,7 @@
5
1
- 0
+ 1
@@ -1051,7 +1051,7 @@
PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1073,7 +1073,7 @@
0
0
1
- 0
+ 2
0
@@ -1159,7 +1159,7 @@
0
0
1
- 0
+ {if isset($account.7.user_id)}1{else}{/if}
{$account.7.register_expires}
0
0
@@ -1182,11 +1182,11 @@
0
0
- 0
+ 1
1
0
-
+ {if isset($account.7.user_id)}*97{else}{/if}
@@ -1197,7 +1197,7 @@
5
1
- 0
+ 1
@@ -1213,7 +1213,7 @@
PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1235,7 +1235,7 @@
0
0
1
- 0
+ 2
0
@@ -1321,7 +1321,7 @@
0
0
1
- 0
+ {if isset($account.8.user_id)}1{else}{/if}
{$account.8.register_expires}
0
0
@@ -1344,11 +1344,11 @@
0
0
- 0
+ 1
1
0
-
+ {if isset($account.8.user_id)}*97{else}{/if}
@@ -1359,7 +1359,7 @@
5
1
- 0
+ 1
@@ -1375,7 +1375,7 @@
PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1397,7 +1397,7 @@
0
0
1
- 0
+ 2
0
@@ -1483,7 +1483,7 @@
0
0
1
- 0
+ {if isset($account.9.user_id)}1{else}{/if}
{$account.9.register_expires}
0
0
@@ -1506,11 +1506,11 @@
0
0
- 0
+ 1
1
0
-
+ {if isset($account.9.user_id)}*97{else}{/if}
@@ -1521,7 +1521,7 @@
5
1
- 0
+ 1
@@ -1537,7 +1537,7 @@
PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1559,7 +1559,7 @@
0
0
1
- 0
+ 2
0
@@ -1645,7 +1645,7 @@
0
0
1
- 0
+ {if isset($account.10.user_id)}1{else}{/if}
{$account.10.register_expires}
0
0
@@ -1668,11 +1668,11 @@
0
0
- 0
+ 1
1
0
-
+ {if isset($account.10.user_id)}*97{else}{/if}
@@ -1683,7 +1683,7 @@
5
1
- 0
+ 1
@@ -1699,7 +1699,7 @@
PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1721,7 +1721,7 @@
0
0
1
- 0
+ 2
0
@@ -1807,7 +1807,7 @@
0
0
1
- 0
+ {if isset($account.11.user_id)}1{else}{/if}
{$account.11.register_expires}
0
0
@@ -1830,11 +1830,11 @@
0
0
- 0
+ 1
1
0
-
+ {if isset($account.11.user_id)}*97{else}{/if}
@@ -1845,7 +1845,7 @@
5
1
- 0
+ 1
@@ -1861,7 +1861,7 @@
PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1883,7 +1883,7 @@
0
0
1
- 0
+ 2
0
@@ -1969,7 +1969,7 @@
0
0
1
- 0
+ {if isset($account.12.user_id)}1{else}{/if}
{$account.12.register_expires}
0
0
@@ -1992,11 +1992,11 @@
0
0
- 0
+ 1
1
0
-
+ {if isset($account.12.user_id)}*97{else}{/if}
@@ -2007,7 +2007,7 @@
5
1
- 0
+ 1
@@ -2023,7 +2023,7 @@
PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -2045,7 +2045,7 @@
0
0
1
- 0
+ 2
0
@@ -2295,15 +2295,15 @@
parked
-
-
-
-
-
-
-
-
- {if isset($fanvil_default_ringtone)}{$fanvil_default_ringtone}{else}Type 1{/if}
+ 5
+ 3
+ 5
+ 3
+ 5
+ 8
+ 3
+ 4
+ {if isset($fanvil_default_ringtone)}{$fanvil_default_ringtone}{else}Type 2{/if}
{if isset($fanvil_enable_sntp)}{$fanvil_enable_sntp}{else}1{/if}
@@ -2348,7 +2348,7 @@
send;2aB;delete;exit;
delete;xfer;send;exit;
send;2aB;delete;exit;
- history;status;none;none;none;
+ {if isset($fanvil_softkey_desktopclick)}{$fanvil_softkey_desktopclick}{else}history;status;none;none;none;{/if}
pline;nline;none;none;none;
none;none;none;none;none;
none;none;voldown;volup;none;
@@ -2755,7 +2755,6 @@
{/foreach}
-
{strip}{*-- Each Internal Index contains 6 keys --*}{/strip}
{foreach $keys["memory"] as $row}