diff --git a/resources/templates/provision/fanvil/x6u/{$mac}.cfg b/resources/templates/provision/fanvil/x6u/{$mac}.cfg
index eef3394fc3..982d9e7cc3 100644
--- a/resources/templates/provision/fanvil/x6u/{$mac}.cfg
+++ b/resources/templates/provision/fanvil/x6u/{$mac}.cfg
@@ -30,9 +30,9 @@
1
0
0
-
+ Fanvil X6U
- 0
+ {$fanvil_wifi_enable}
@@ -56,7 +56,7 @@
1
- 11
+ {if isset($fanvil_country_toneset)}{$fanvil_country_toneset}{else}11{/if}
1
0
350+440/0
@@ -77,7 +77,7 @@
PCMU,PCMA,G726-16,G726-24,G726-32,G726-40,G729,G723,iLBC
- H264
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}H264{/if}
25
2000000
4
@@ -888,26 +888,26 @@
5000
-
-
+ {$account.6.user_id}
+ {$account.6.display_name}
-
- 5060
-
-
- 3600
+ {$account.6.server_address}
+ {$account.6.sip_port}
+ {$account.6.auth_id}
+ {$account.6.password}
+ {$account.6.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.6.password)}1{else}0{/if}
+ {$account.6.outbound_proxy_primary}
+ {$account.6.sip_port}
+ {$account.6.auth_id}
+ {$account.6.password}
+ {$account.6.outbound_proxy_secondary}
+ {$account.6.sip_port}
+ {if isset($account.6.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -931,7 +931,7 @@
- default
+ {if isset($fanvil_ringtone_line6)}{$fanvil_ringtone_line6}{else}default{/if}
2
30
0
@@ -946,7 +946,7 @@
0
1
0
- 3600
+ {$account.6.register_expires}
0
0
1
@@ -962,15 +962,17 @@
1
0
5060
- 0
+ {if $account.6.sip_transport == 'udp'}0{/if}
+ {if $account.6.sip_transport == 'tcp'}1{/if}
+ {if $account.6.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -981,23 +983,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1043,26 +1045,26 @@
5000
-
-
+ {$account.7.user_id}
+ {$account.7.display_name}
-
- 5060
-
-
- 3600
+ {$account.7.server_address}
+ {$account.7.sip_port}
+ {$account.7.auth_id}
+ {$account.7.password}
+ {$account.7.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.7.password)}1{else}0{/if}
+ {$account.7.outbound_proxy_primary}
+ {$account.7.sip_port}
+ {$account.7.auth_id}
+ {$account.7.password}
+ {$account.7.outbound_proxy_secondary}
+ {$account.7.sip_port}
+ {if isset($account.7.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -1086,7 +1088,7 @@
- default
+ {if isset($fanvil_ringtone_line7)}{$fanvil_ringtone_line7}{else}default{/if}
2
30
0
@@ -1101,7 +1103,7 @@
0
1
0
- 3600
+ {$account.7.register_expires}
0
0
1
@@ -1117,15 +1119,17 @@
1
0
5060
- 0
+ {if $account.7.sip_transport == 'udp'}0{/if}
+ {if $account.7.sip_transport == 'tcp'}1{/if}
+ {if $account.7.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -1136,23 +1140,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1198,26 +1202,26 @@
5000
-
-
+ {$account.8.user_id}
+ {$account.8.display_name}
-
- 5060
-
-
- 3600
+ {$account.8.server_address}
+ {$account.8.sip_port}
+ {$account.8.auth_id}
+ {$account.8.password}
+ {$account.8.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.8.password)}1{else}0{/if}
+ {$account.8.outbound_proxy_primary}
+ {$account.8.sip_port}
+ {$account.8.auth_id}
+ {$account.8.password}
+ {$account.8.outbound_proxy_secondary}
+ {$account.8.sip_port}
+ {if isset($account.8.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -1241,7 +1245,7 @@
- default
+ {if isset($fanvil_ringtone_line8)}{$fanvil_ringtone_line8}{else}default{/if}
2
30
0
@@ -1256,7 +1260,7 @@
0
1
0
- 3600
+ {$account.8.register_expires}
0
0
1
@@ -1272,15 +1276,17 @@
1
0
5060
- 0
+ {if $account.8.sip_transport == 'udp'}0{/if}
+ {if $account.8.sip_transport == 'tcp'}1{/if}
+ {if $account.8.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -1291,23 +1297,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1353,26 +1359,26 @@
5000
-
-
+ {$account.9.user_id}
+ {$account.9.display_name}
-
- 5060
-
-
- 3600
+ {$account.9.server_address}
+ {$account.9.sip_port}
+ {$account.9.auth_id}
+ {$account.9.password}
+ {$account.9.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.9.password)}1{else}0{/if}
+ {$account.9.outbound_proxy_primary}
+ {$account.9.sip_port}
+ {$account.9.auth_id}
+ {$account.9.password}
+ {$account.9.outbound_proxy_secondary}
+ {$account.9.sip_port}
+ {if isset($account.9.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -1396,7 +1402,7 @@
- default
+ {if isset($fanvil_ringtone_line9)}{$fanvil_ringtone_line9}{else}default{/if}
2
30
0
@@ -1411,7 +1417,7 @@
0
1
0
- 3600
+ {$account.9.register_expires}
0
0
1
@@ -1427,15 +1433,17 @@
1
0
5060
- 0
+ {if $account.9.sip_transport == 'udp'}0{/if}
+ {if $account.9.sip_transport == 'tcp'}1{/if}
+ {if $account.9.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -1446,23 +1454,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1508,26 +1516,26 @@
5000
-
-
+ {$account.10.user_id}
+ {$account.10.display_name}
-
- 5060
-
-
- 3600
+ {$account.10.server_address}
+ {$account.10.sip_port}
+ {$account.10.auth_id}
+ {$account.10.password}
+ {$account.10.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.10.password)}1{else}0{/if}
+ {$account.10.outbound_proxy_primary}
+ {$account.10.sip_port}
+ {$account.10.auth_id}
+ {$account.10.password}
+ {$account.10.outbound_proxy_secondary}
+ {$account.10.sip_port}
+ {if isset($account.10.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -1551,7 +1559,7 @@
- default
+ {if isset($fanvil_ringtone_line10)}{$fanvil_ringtone_line10}{else}default{/if}
2
30
0
@@ -1566,7 +1574,7 @@
0
1
0
- 3600
+ {$account.10.register_expires}
0
0
1
@@ -1582,15 +1590,17 @@
1
0
5060
- 0
+ {if $account.10.sip_transport == 'udp'}0{/if}
+ {if $account.10.sip_transport == 'tcp'}1{/if}
+ {if $account.10.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -1601,23 +1611,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1663,26 +1673,26 @@
5000
-
-
+ {$account.11.user_id}
+ {$account.11.display_name}
-
- 5060
-
-
- 3600
+ {$account.11.server_address}
+ {$account.11.sip_port}
+ {$account.11.auth_id}
+ {$account.11.password}
+ {$account.11.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.11.password)}1{else}0{/if}
+ {$account.11.outbound_proxy_primary}
+ {$account.11.sip_port}
+ {$account.11.auth_id}
+ {$account.11.password}
+ {$account.11.outbound_proxy_secondary}
+ {$account.11.sip_port}
+ {if isset($account.11.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -1706,7 +1716,7 @@
- default
+ {if isset($fanvil_ringtone_line11)}{$fanvil_ringtone_line11}{else}default{/if}
2
30
0
@@ -1721,7 +1731,7 @@
0
1
0
- 3600
+ {$account.11.register_expires}
0
0
1
@@ -1737,15 +1747,17 @@
1
0
5060
- 0
+ {if $account.11.sip_transport == 'udp'}0{/if}
+ {if $account.11.sip_transport == 'tcp'}1{/if}
+ {if $account.11.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -1756,23 +1768,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1818,26 +1830,26 @@
5000
-
-
+ {$account.12.user_id}
+ {$account.12.display_name}
-
- 5060
-
-
- 3600
+ {$account.12.server_address}
+ {$account.12.sip_port}
+ {$account.12.auth_id}
+ {$account.12.password}
+ {$account.12.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.12.password)}1{else}0{/if}
+ {$account.12.outbound_proxy_primary}
+ {$account.12.sip_port}
+ {$account.12.auth_id}
+ {$account.12.password}
+ {$account.12.outbound_proxy_secondary}
+ {$account.12.sip_port}
+ {if isset($account.12.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -1861,7 +1873,7 @@
- default
+ {if isset($fanvil_ringtone_line12)}{$fanvil_ringtone_line12}{else}default{/if}
2
30
0
@@ -1876,7 +1888,7 @@
0
1
0
- 3600
+ {$account.12.register_expires}
0
0
1
@@ -1892,15 +1904,17 @@
1
0
5060
- 0
+ {if $account.12.sip_transport == 'udp'}0{/if}
+ {if $account.12.sip_transport == 'tcp'}1{/if}
+ {if $account.12.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -1911,23 +1925,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -1973,26 +1987,26 @@
5000
-
-
+ {$account.13.user_id}
+ {$account.13.display_name}
-
- 5060
-
-
- 3600
+ {$account.13.server_address}
+ {$account.13.sip_port}
+ {$account.13.auth_id}
+ {$account.13.password}
+ {$account.13.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.13.password)}1{else}0{/if}
+ {$account.13.outbound_proxy_primary}
+ {$account.13.sip_port}
+ {$account.13.auth_id}
+ {$account.13.password}
+ {$account.13.outbound_proxy_secondary}
+ {$account.13.sip_port}
+ {if isset($account.13.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -2016,7 +2030,7 @@
- default
+ {if isset($fanvil_ringtone_line13)}{$fanvil_ringtone_line13}{else}default{/if}
2
30
0
@@ -2031,7 +2045,7 @@
0
1
0
- 3600
+ {$account.13.register_expires}
0
0
1
@@ -2047,15 +2061,17 @@
1
0
5060
- 0
+ {if $account.13.sip_transport == 'udp'}0{/if}
+ {if $account.13.sip_transport == 'tcp'}1{/if}
+ {if $account.13.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -2066,23 +2082,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -2128,26 +2144,26 @@
5000
-
-
+ {$account.14.user_id}
+ {$account.14.display_name}
-
- 5060
-
-
- 3600
+ {$account.14.server_address}
+ {$account.14.sip_port}
+ {$account.14.auth_id}
+ {$account.14.password}
+ {$account.14.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.14.password)}1{else}0{/if}
+ {$account.14.outbound_proxy_primary}
+ {$account.14.sip_port}
+ {$account.14.auth_id}
+ {$account.14.password}
+ {$account.14.outbound_proxy_secondary}
+ {$account.14.sip_port}
+ {if isset($account.14.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -2171,7 +2187,7 @@
- default
+ {if isset($fanvil_ringtone_line14)}{$fanvil_ringtone_line14}{else}default{/if}
2
30
0
@@ -2186,7 +2202,7 @@
0
1
0
- 3600
+ {$account.14.register_expires}
0
0
1
@@ -2202,15 +2218,17 @@
1
0
5060
- 0
+ {if $account.14.sip_transport == 'udp'}0{/if}
+ {if $account.14.sip_transport == 'tcp'}1{/if}
+ {if $account.14.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -2221,23 +2239,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -2283,26 +2301,26 @@
5000
-
-
+ {$account.15.user_id}
+ {$account.15.display_name}
-
- 5060
-
-
- 3600
+ {$account.15.server_address}
+ {$account.15.sip_port}
+ {$account.15.auth_id}
+ {$account.15.password}
+ {$account.15.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.15.password)}1{else}0{/if}
+ {$account.15.outbound_proxy_primary}
+ {$account.15.sip_port}
+ {$account.15.auth_id}
+ {$account.15.password}
+ {$account.15.outbound_proxy_secondary}
+ {$account.15.sip_port}
+ {if isset($account.15.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -2326,7 +2344,7 @@
- default
+ {if isset($fanvil_ringtone_line15)}{$fanvil_ringtone_line15}{else}default{/if}
2
30
0
@@ -2341,7 +2359,7 @@
0
1
0
- 3600
+ {$account.15.register_expires}
0
0
1
@@ -2357,15 +2375,17 @@
1
0
5060
- 0
+ {if $account.15.sip_transport == 'udp'}0{/if}
+ {if $account.15.sip_transport == 'tcp'}1{/if}
+ {if $account.15.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -2376,23 +2396,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -2438,26 +2458,26 @@
5000
-
-
+ {$account.16.user_id}
+ {$account.16.display_name}
-
- 5060
-
-
- 3600
+ {$account.16.server_address}
+ {$account.16.sip_port}
+ {$account.16.auth_id}
+ {$account.16.password}
+ {$account.16.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.16.password)}1{else}0{/if}
+ {$account.16.outbound_proxy_primary}
+ {$account.16.sip_port}
+ {$account.16.auth_id}
+ {$account.16.password}
+ {$account.16.outbound_proxy_secondary}
+ {$account.16.sip_port}
+ {if isset($account.16.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -2481,7 +2501,7 @@
- default
+ {if isset($fanvil_ringtone_line16)}{$fanvil_ringtone_line16}{else}default{/if}
2
30
0
@@ -2496,7 +2516,7 @@
0
1
0
- 3600
+ {$account.16.register_expires}
0
0
1
@@ -2512,15 +2532,17 @@
1
0
5060
- 0
+ {if $account.16.sip_transport == 'udp'}0{/if}
+ {if $account.16.sip_transport == 'tcp'}1{/if}
+ {if $account.16.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -2531,23 +2553,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -2593,26 +2615,26 @@
5000
-
-
+ {$account.17.user_id}
+ {$account.17.display_name}
-
- 5060
-
-
- 3600
+ {$account.17.server_address}
+ {$account.17.sip_port}
+ {$account.17.auth_id}
+ {$account.17.password}
+ {$account.17.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.17.password)}1{else}0{/if}
+ {$account.17.outbound_proxy_primary}
+ {$account.17.sip_port}
+ {$account.17.auth_id}
+ {$account.17.password}
+ {$account.17.outbound_proxy_secondary}
+ {$account.17.sip_port}
+ {if isset($account.17.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -2636,7 +2658,7 @@
- default
+ {if isset($fanvil_ringtone_line17)}{$fanvil_ringtone_line17}{else}default{/if}
2
30
0
@@ -2651,7 +2673,7 @@
0
1
0
- 3600
+ {$account.17.register_expires}
0
0
1
@@ -2667,15 +2689,17 @@
1
0
5060
- 0
+ {if $account.17.sip_transport == 'udp'}0{/if}
+ {if $account.17.sip_transport == 'tcp'}1{/if}
+ {if $account.17.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -2686,23 +2710,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -2748,26 +2772,26 @@
5000
-
-
+ {$account.18.user_id}
+ {$account.18.display_name}
-
- 5060
-
-
- 3600
+ {$account.18.server_address}
+ {$account.18.sip_port}
+ {$account.18.auth_id}
+ {$account.18.password}
+ {$account.18.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.18.password)}1{else}0{/if}
+ {$account.18.outbound_proxy_primary}
+ {$account.18.sip_port}
+ {$account.18.auth_id}
+ {$account.18.password}
+ {$account.18.outbound_proxy_secondary}
+ {$account.18.sip_port}
+ {if isset($account.18.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -2791,7 +2815,7 @@
- default
+ {if isset($fanvil_ringtone_line18)}{$fanvil_ringtone_line18}{else}default{/if}
2
30
0
@@ -2806,7 +2830,7 @@
0
1
0
- 3600
+ {$account.18.register_expires}
0
0
1
@@ -2822,15 +2846,17 @@
1
0
5060
- 0
+ {if $account.18.sip_transport == 'udp'}0{/if}
+ {if $account.18.sip_transport == 'tcp'}1{/if}
+ {if $account.18.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -2841,23 +2867,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -2903,26 +2929,26 @@
5000
-
-
+ {$account.19.user_id}
+ {$account.19.display_name}
-
- 5060
-
-
- 3600
+ {$account.19.server_address}
+ {$account.19.sip_port}
+ {$account.19.auth_id}
+ {$account.19.password}
+ {$account.19.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.19.password)}1{else}0{/if}
+ {$account.19.outbound_proxy_primary}
+ {$account.19.sip_port}
+ {$account.19.auth_id}
+ {$account.19.password}
+ {$account.19.outbound_proxy_secondary}
+ {$account.19.sip_port}
+ {if isset($account.19.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -2946,7 +2972,7 @@
- default
+ {if isset($fanvil_ringtone_line19)}{$fanvil_ringtone_line19}{else}default{/if}
2
30
0
@@ -2961,7 +2987,7 @@
0
1
0
- 3600
+ {$account.19.register_expires}
0
0
1
@@ -2977,15 +3003,17 @@
1
0
5060
- 0
+ {if $account.19.sip_transport == 'udp'}0{/if}
+ {if $account.19.sip_transport == 'tcp'}1{/if}
+ {if $account.19.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -2996,23 +3024,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -3058,26 +3086,26 @@
5000
-
-
+ {$account.20.user_id}
+ {$account.20.display_name}
-
- 5060
-
-
- 3600
+ {$account.20.server_address}
+ {$account.20.sip_port}
+ {$account.20.auth_id}
+ {$account.20.password}
+ {$account.20.register_expires}
5060
0
3600
- 0
-
- 5060
-
-
-
- 5060
- 1
+ {if isset($account.20.password)}1{else}0{/if}
+ {$account.20.outbound_proxy_primary}
+ {$account.20.sip_port}
+ {$account.20.auth_id}
+ {$account.20.password}
+ {$account.20.outbound_proxy_secondary}
+ {$account.20.sip_port}
+ {if isset($account.20.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
@@ -3101,7 +3129,7 @@
- default
+ {if isset($fanvil_ringtone_line20)}{$fanvil_ringtone_line20}{else}default{/if}
2
30
0
@@ -3116,7 +3144,7 @@
0
1
0
- 3600
+ {$account.20.register_expires}
0
0
1
@@ -3132,15 +3160,17 @@
1
0
5060
- 0
+ {if $account.20.sip_transport == 'udp'}0{/if}
+ {if $account.20.sip_transport == 'tcp'}1{/if}
+ {if $account.20.sip_transport == 'tls'}2{/if}
0
0
- 0
+ 1
1
0
-
+ *97
@@ -3151,23 +3181,23 @@
5
1
- 0
-
-
-
-
-
-
-
-
+ 1
+ *78
+ *79
+ *72
+ *73
+ *72
+ *73
+ *72
+ *73
-
-
+ *67
+ *67
- PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
-
+ OPUS,PCMU,PCMA,G726-32,G729,G723,iLBC,AMR,G722,AMR-WB
+ {if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
@@ -3267,8 +3297,8 @@
0
0
1
- 2
- 2
+ {$fanvil_default_answer_mode}
+ {$fanvil_default_dial_mode}
0
1
1
@@ -3306,12 +3336,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 4{/if}
@@ -3355,7 +3385,7 @@
- 123
+ {if isset($fanvil_menu_password)}{$fanvil_menu_password}{else}123{/if}
123
0
@@ -3378,11 +3408,11 @@
30
- VOIP PHONE
+ {$fanvil_greeting}
5
- 4
- 12
- 45
+ {if isset($fanvil_display_brightness_inactive)}{$fanvil_display_brightness_inactive}{else}4{/if}
+ {if isset($fanvil_display_brightness_active)}{$fanvil_display_brightness_active}{else}12{/if}
+ {if isset($fanvil_display_inactivity_time)}{$fanvil_display_inactivity_time}{else}45{/if}
0
bcm911188sv
@@ -3423,19 +3453,18 @@
-
+ {if isset($fanvil_default_ringtone)}{$fanvil_default_ringtone}{else}Type 2{/if}
- 1
- 0.pool.ntp.org
- time.nist.gov
- 32
- UTC+8
+ {$ntp_server_primary}
+ {$ntp_server_secondary}
+ {$fanvil_time_zone}
+ {$fanvil_time_zone_name}
60
0
- 0
+ {if isset($fanvil_location)}{$fanvil_location}{else}4{/if}
0
- 60
+ {if isset($fanvil_dst_minute_offset)}{$fanvil_dst_minute_offset}{else}60{/if}
3
5
0
@@ -3447,16 +3476,16 @@
0
- 0
- 0
- 0
+ {if isset($fanvil_time_display)}1{else}0{/if}
+ {if isset($fanvil_date_display)}{$fanvil_date_display}{else}6{/if}
+ {if isset($fanvil_date_separator)}{$fanvil_date_separator}{else}0{/if}
0
- 2
- history;contact;dnd;menu;
- hold;xfer;conf;end;
- accept;none;forward;reject;
+ {if isset($fanvil_softkey_exit)}{$fanvil_softkey_exit}{else}2{/if}
+ {if isset($fanvil_softkey_desktopsoftkey)}{$fanvil_softkey_desktopsoftkey}{else}history;contact;dnd;menu;{/if}
+ {if isset($fanvil_softkey_talkingsoftkey)}{$fanvil_softkey_talkingsoftkey}{else}hold;xfer;conf;end;{/if}
+ {if isset($fanvil_softkey_ringingsoftkey)}{$fanvil_softkey_ringingsoftkey}{else}accept;none;forward;reject;{/if}
end;none;none;none;
end;none;none;xfer;
hold;none;split;end;
@@ -3466,7 +3495,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;voldown;volup;none;
status;none;none;none;reset;
@@ -3884,436 +3913,193 @@
Green
+ {strip}{*-- Each Internal Index contains 12 keys --*}{/strip}
+
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 3
- F_MWI
-
- Green
-
-
- 3
- F_HEADSET
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
+ {foreach $keys["line"] as $row}
+ {if $row.device_key_id <= 12}
+
+ {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}
+
+ {/if}
+ {/foreach}
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
+ {foreach $keys["line"] as $row}
+ {if $row.device_key_id > 12 && $row.device_key_id <= 24}
+
+ {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}
+
+ {/if}
+ {/foreach}
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
+ {foreach $keys["line"] as $row}
+ {if $row.device_key_id > 24 && $row.device_key_id <= 36}
+
+ {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}
+
+ {/if}
+ {/foreach}
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
+ {foreach $keys["line"] as $row}
+ {if $row.device_key_id > 36 && $row.device_key_id <= 48}
+
+ {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}
+
+ {/if}
+ {/foreach}
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
+ {foreach $keys["line"] as $row}
+ {if $row.device_key_id > 48 && $row.device_key_id <= 60}
+
+ {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}
+
+ {/if}
+ {/foreach}
+
+
+
+ {foreach $keys["memory"] as $row}
+ {if $row.device_key_id <= 12}
+
+ {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}
+
+ {/if}
+ {/foreach}
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
-
- 0
-
-
- Green
-
+
+ {foreach $keys["memory"] as $row}
+ {if $row.device_key_id > 12 && $row.device_key_id <= 24}
+
+ {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}
+
+ {/if}
+ {/foreach}
+
+
+ {foreach $keys["memory"] as $row}
+ {if $row.device_key_id > 24 && $row.device_key_id <= 36}
+
+ {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}
+
+ {/if}
+ {/foreach}
+
+
+ {foreach $keys["memory"] as $row}
+ {if $row.device_key_id > 36 && $row.device_key_id <= 48}
+
+ {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}
+
+ {/if}
+ {/foreach}
+
+
+ {foreach $keys["memory"] as $row}
+ {if $row.device_key_id > 48 && $row.device_key_id <= 60}
+
+ {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}
+
+ {/if}
+ {/foreach}
+
+ {foreach $keys["programmable"] 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}
+
+ {/foreach}
+
+ {strip}{*-- Each External Index contains 20 keys --*}{/strip}
+
+ {foreach $keys["expansion"] as $row}
+ {if $row.device_key_id < 20}
+
+ 0
+ {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}
+ {$row.device_key_label}
+
+ {/if}
+ {/foreach}
+
+
+ {foreach $keys["expansion"] as $row}
+ {if $row.device_key_id > 19 && $row.device_key_id < 40}
+
+ 0
+ {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}
+ {$row.device_key_label}
+
+ {/if}
+ {/foreach}
+
+
+ {foreach $keys["expansion"] as $row}
+ {if $row.device_key_id > 39 && $row.device_key_id < 60}
+
+ 0
+ {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}
+ {$row.device_key_label}
+
+ {/if}
+ {/foreach}
+
+
+ {foreach $keys["expansion"] as $row}
+ {if $row.device_key_id > 59 && $row.device_key_id < 80}
+
+ 0
+ {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}
+ {$row.device_key_label}
+
+ {/if}
+ {/foreach}
+
+
+ {foreach $keys["expansion"] as $row}
+ {if $row.device_key_id > 79 && $row.device_key_id < 100}
+
+ 0
+ {$row.device_key_value}@{$row.device_key_line}/{$row.device_key_type}
+ {$row.device_key_label}
+
+ {/if}
+ {/foreach}
+
0
@@ -4327,8 +4113,8 @@
15
- admin
- admin
+ {if isset($admin_name)}{$admin_name}{else}admin{/if}
+ {if isset($admin_password)}{$admin_password}{else}admin{/if}
10
@@ -4340,12 +4126,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
@@ -4364,8 +4150,8 @@
0
020
0
-
- 3478
+ {$fanvil_stun_server}
+ {$fanvil_stun_port}
30000
@@ -4477,18 +4263,18 @@
0
-
-
+ {$http_auth_username}
+ {$http_auth_password}
1
0
5
-
-
- 2
- 0
+ {if isset($fanvil_provision_url)}{$fanvil_provision_url}{else}https://{$domain_name}/app/provision{/if}
+ {$fanvil_firmware_config}
+ 5
+ 1
1
720
0
@@ -4506,27 +4292,27 @@
- 0
-
-
- 24
+ {if isset($fanvil_enable_auto_upgrade)}{$fanvil_enable_auto_upgrade}{else}0{/if}
+ {if isset($fanvil_firmware_upgrade_server_1)}{$fanvil_firmware_upgrade_server_1}{else}{/if}
+ {if isset($fanvil_firmware_upgrade_server_2)}{$fanvil_firmware_upgrade_server_2}{else}{/if}
+ {if isset($fanvil_firmware_upgrade_interval)}{$fanvil_firmware_upgrade_interval}{else}24{/if}
- 0
- 256
- 1
- 254
- 0
- 0
- 0
+ {if isset($fanvil_enable_vlan)}{$fanvil_enable_vlan}{else}0{/if}
+ {if isset($fanvil_lan_port_vlan)}{$fanvil_lan_port_vlan}{else}256{/if}
+ {if isset($fanvil_pc_port_vlan)}2{else}0{/if}
+ {if isset($fanvil_pc_port_vlan)}{$fanvil_pc_port_vlan}{else}254{/if}
+ {if isset($fanvil_qos_sip)}{$fanvil_qos_sip}{else}0{/if}
+ {if isset($fanvil_qos_rtp_voice)}{$fanvil_qos_rtp_voice}{else}0{/if}
+ {if isset($fanvil_qos_rtp_video)}{$fanvil_qos_rtp_video}{else}0{/if}
0
- 0
- 46
- 46
- 46
- 1
- 60
- 1
+ {if isset($fanvil_enable_diffserv)}{$fanvil_enable_diffserv}{else}0{/if}
+ {if isset($fanvil_dscp_sip)}{$fanvil_dscp_sip}{else}46{/if}
+ {if isset($fanvil_dscp_rtp_voice)}{$fanvil_dscp_rtp_voice}{else}46{/if}
+ {if isset($fanvil_dscp_rtp_video)}{$fanvil_dscp_rtp_video}{else}34{/if}
+ {if isset($fanvil_lldp_tx_enable)}{$fanvil_lldp_tx_enable}{else}0{/if}
+ {if isset($fanvil_lldp_refresh)}{$fanvil_lldp_refresh}{else}60{/if}
+ {if isset($fanvil_lldp_learn)}{$fanvil_lldp_learn}{else}0{/if}
0
1
60