diff --git a/resources/templates/provision/fanvil/x7c/{$mac}.cfg b/resources/templates/provision/fanvil/x7c/{$mac}.cfg
index 412490f736..c66421ecb3 100644
--- a/resources/templates/provision/fanvil/x7c/{$mac}.cfg
+++ b/resources/templates/provision/fanvil/x7c/{$mac}.cfg
@@ -192,7 +192,7 @@
0
0
1
- 1
+ {if isset($account.1.user_id)}1{else}{/if}
{$account.1.register_expires}
0
0
@@ -219,7 +219,7 @@
1
0
- *97
+ {if isset($account.1.user_id)}*97{else}{/if}
@@ -354,7 +354,7 @@
0
0
1
- 1
+ {if isset($account.2.user_id)}1{else}{/if}
{$account.2.register_expires}
0
0
@@ -381,7 +381,7 @@
1
0
- *97
+ {if isset($account.2.user_id)}*97{else}{/if}
@@ -516,7 +516,7 @@
0
0
1
- 1
+ {if isset($account.3.user_id)}1{else}{/if}
{$account.3.register_expires}
0
0
@@ -543,7 +543,7 @@
1
0
- *97
+ {if isset($account.3.user_id)}*97{else}{/if}
@@ -678,7 +678,7 @@
0
0
1
- 1
+ {if isset($account.4.user_id)}1{else}{/if}
{$account.4.register_expires}
0
0
@@ -705,7 +705,7 @@
1
0
- *97
+ {if isset($account.4.user_id)}*97{else}{/if}
@@ -840,7 +840,7 @@
0
0
1
- 1
+ {if isset($account.5.user_id)}1{else}{/if}
{$account.5.register_expires}
0
0
@@ -867,7 +867,7 @@
1
0
- *97
+ {if isset($account.5.user_id)}*97{else}{/if}
@@ -1002,7 +1002,7 @@
0
0
1
- 1
+ {if isset($account.6.user_id)}1{else}{/if}
{$account.6.register_expires}
0
0
@@ -1029,7 +1029,7 @@
1
0
- *97
+ {if isset($account.6.user_id)}*97{else}{/if}
@@ -1164,7 +1164,7 @@
0
0
1
- 1
+ {if isset($account.7.user_id)}1{else}{/if}
{$account.7.register_expires}
0
0
@@ -1191,7 +1191,7 @@
1
0
- *97
+ {if isset($account.7.user_id)}*97{else}{/if}
@@ -1326,7 +1326,7 @@
0
0
1
- 1
+ {if isset($account.8.user_id)}1{else}{/if}
{$account.8.register_expires}
0
0
@@ -1353,7 +1353,7 @@
1
0
- *97
+ {if isset($account.8.user_id)}*97{else}{/if}
@@ -1488,7 +1488,7 @@
0
0
1
- 1
+ {if isset($account.9.user_id)}1{else}{/if}
{$account.9.register_expires}
0
0
@@ -1515,7 +1515,7 @@
1
0
- *97
+ {if isset($account.9.user_id)}*97{else}{/if}
@@ -1650,7 +1650,7 @@
0
0
1
- 1
+ {if isset($account.10.user_id)}1{else}{/if}
{$account.10.register_expires}
0
0
@@ -1677,7 +1677,7 @@
1
0
- *97
+ {if isset($account.10.user_id)}*97{else}{/if}
@@ -1812,7 +1812,7 @@
0
0
1
- 1
+ {if isset($account.11.user_id)}1{else}{/if}
{$account.11.register_expires}
0
0
@@ -1839,7 +1839,7 @@
1
0
- *97
+ {if isset($account.11.user_id)}*97{else}{/if}
@@ -1974,7 +1974,7 @@
0
0
1
- 1
+ {if isset($account.12.user_id)}1{else}{/if}
{$account.12.register_expires}
0
0
@@ -2001,7 +2001,7 @@
1
0
- *97
+ {if isset($account.12.user_id)}*97{else}{/if}
@@ -2135,7 +2135,7 @@
0
0
1
- 1
+ {if isset($account.13.user_id)}1{else}{/if}
{$account.13.register_expires}
0
0
@@ -2162,7 +2162,7 @@
1
0
- *97
+ {if isset($account.13.user_id)}*97{else}{/if}
@@ -2297,7 +2297,7 @@
0
0
1
- 1
+ {if isset($account.14.user_id)}1{else}{/if}
{$account.14.register_expires}
0
0
@@ -2324,7 +2324,7 @@
1
0
- *97
+ {if isset($account.14.user_id)}*97{else}{/if}
@@ -2459,7 +2459,7 @@
0
0
1
- 1
+ {if isset($account.15.user_id)}1{else}{/if}
{$account.15.register_expires}
0
0
@@ -2486,7 +2486,7 @@
1
0
- *97
+ {if isset($account.15.user_id)}*97{else}{/if}
@@ -2621,7 +2621,7 @@
0
0
1
- 1
+ {if isset($account.16.user_id)}1{else}{/if}
{$account.16.register_expires}
0
0
@@ -2648,7 +2648,7 @@
1
0
- *97
+ {if isset($account.16.user_id)}*97{else}{/if}
@@ -2783,14 +2783,13 @@
0
0
1
- 1
+ {if isset($account.17.user_id)}1{else}{/if}
{$account.17.register_expires}
0
0
1
0
0
- 0
{if $account.17.sip_transport == 'dns srv'}1{/if}
{if $account.17.sip_transport == 'dns srv'}1{/if}
0
@@ -2811,7 +2810,7 @@
1
0
- *97
+ {if isset($account.17.user_id)}*97{else}{/if}
@@ -2946,14 +2945,13 @@
0
0
1
- 1
+ {if isset($account.18.user_id)}1{else}{/if}
{$account.18.register_expires}
0
0
1
0
0
- 0
{if $account.18.sip_transport == 'dns srv'}1{/if}
{if $account.18.sip_transport == 'dns srv'}1{/if}
0
@@ -2974,7 +2972,7 @@
1
0
- *97
+ {if isset($account.18.user_id)}*97{else}{/if}
@@ -3109,14 +3107,13 @@
0
0
1
- 1
+ {if isset($account.19.user_id)}1{else}{/if}
{$account.19.register_expires}
0
0
1
0
0
- 0
{if $account.19.sip_transport == 'dns srv'}1{/if}
{if $account.19.sip_transport == 'dns srv'}1{/if}
0
@@ -3137,7 +3134,7 @@
1
0
- *97
+ {if isset($account.19.user_id)}*97{else}{/if}
@@ -3272,14 +3269,13 @@
0
0
1
- 1
+ {if isset($account.20.user_id)}1{else}{/if}
{$account.20.register_expires}
0
0
1
0
0
- 0
{if $account.20.sip_transport == 'dns srv'}1{/if}
{if $account.20.sip_transport == 'dns srv'}1{/if}
0
@@ -3300,7 +3296,7 @@
1
0
- *97
+ {if isset($account.20.user_id)}*97{else}{/if}