From 33c3cebdcdc50451669ecee189769b93f8570c42 Mon Sep 17 00:00:00 2001
From: chansizzle <14916599+chansizzle@users.noreply.github.com>
Date: Wed, 10 Feb 2021 14:04:40 -0700
Subject: [PATCH 1/2] Update {$mac}.cfg
---
.../templates/provision/fanvil/x3u/{$mac}.cfg | 234 +++++++++++++-----
1 file changed, 170 insertions(+), 64 deletions(-)
diff --git a/resources/templates/provision/fanvil/x3u/{$mac}.cfg b/resources/templates/provision/fanvil/x3u/{$mac}.cfg
index 0689edb733..489cf26b6f 100644
--- a/resources/templates/provision/fanvil/x3u/{$mac}.cfg
+++ b/resources/templates/provision/fanvil/x3u/{$mac}.cfg
@@ -1,17 +1,18 @@
+
2.0000000000
0
-
-
-
+ 192.168.1.179
+ 255.255.255.0
+ 192.168.1.1
{if isset($dns_server_primary)}{$dns_server_primary}{else}9.9.9.9{/if}
{if isset($dns_server_secondary)}{$dns_server_secondary}{else}208.67.222.222{/if}
1
1
- 1
+
1
0
Fanvil X3U
@@ -43,11 +44,11 @@
-
+
{if isset($fanvil_country_toneset)}{$fanvil_country_toneset}{else}11{/if}
@@ -98,22 +99,25 @@
{$account.1.auth_id}
{$account.1.password}
{$account.1.register_expires}
+ 0
5060
0
3600
+ 0
{if isset($account.1.password)}1{else}0{/if}
{$account.1.outbound_proxy_primary}
{$account.1.sip_port}
{$account.1.auth_id}
{$account.1.password}
+ 0
{$account.1.outbound_proxy_secondary}
{$account.1.sip_port}
+ 0
{if isset($account.1.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
- 0
0
@@ -147,7 +151,7 @@
0
0
1
- 0
+ {if isset($account.1.user_id)}1{else}{/if}
{$account.1.register_expires}
0
0
@@ -166,7 +170,7 @@
5060
{if $account.1.sip_transport == 'udp'}0{/if}
{if $account.1.sip_transport == 'tcp'}1{/if}
- {if $account.1.sip_transport == 'tls'}2{/if}
+ {if $account.1.sip_transport == 'tls'}3{/if}
0
0
@@ -174,10 +178,11 @@
1
0
-
+ {if isset($account.1.user_id)}*97{else}{/if}
+ 0
0
@@ -200,13 +205,14 @@
- OPUS,PCMU,PCMA,G726-32,G729,iLBC,G722
+ PCMU,PCMA,G726-32,G729,iLBC,G722
{if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
0
4
+ 0
0
1
@@ -223,7 +229,7 @@
0
0
1
- 0
+ 2
0
@@ -245,6 +251,8 @@
500
4000
5000
+ 0
+ 0
{$account.2.user_id}
@@ -255,22 +263,25 @@
{$account.2.auth_id}
{$account.2.password}
{$account.2.register_expires}
+ 0
5060
0
3600
+ 0
{if isset($account.2.password)}1{else}0{/if}
{$account.2.outbound_proxy_primary}
{$account.2.sip_port}
{$account.2.auth_id}
{$account.2.password}
+ 0
{$account.2.outbound_proxy_secondary}
{$account.2.sip_port}
+ 0
{if isset($account.2.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
- 0
0
@@ -304,7 +315,7 @@
0
0
1
- 0
+ {if isset($account.2.user_id)}1{else}{/if}
{$account.2.register_expires}
0
0
@@ -323,7 +334,7 @@
5060
{if $account.2.sip_transport == 'udp'}0{/if}
{if $account.2.sip_transport == 'tcp'}1{/if}
- {if $account.2.sip_transport == 'tls'}2{/if}
+ {if $account.2.sip_transport == 'tls'}3{/if}
0
0
@@ -331,10 +342,11 @@
1
0
-
+ {if isset($account.2.user_id)}*97{else}{/if}
+ 0
0
@@ -357,13 +369,14 @@
- OPUS,PCMU,PCMA,G726-32,G729,iLBC,G722
+ PCMU,PCMA,G726-32,G729,iLBC,G722
{if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
0
4
+ 0
0
1
@@ -380,7 +393,7 @@
0
0
1
- 0
+ 2
0
@@ -402,6 +415,8 @@
500
4000
5000
+ 0
+ 0
{$account.3.user_id}
@@ -412,22 +427,25 @@
{$account.3.auth_id}
{$account.3.password}
{$account.3.register_expires}
+ 0
5060
0
3600
+ 0
{if isset($account.3.password)}1{else}0{/if}
{$account.3.outbound_proxy_primary}
{$account.3.sip_port}
{$account.3.auth_id}
{$account.3.password}
+ 0
{$account.3.outbound_proxy_secondary}
{$account.3.sip_port}
+ 0
{if isset($account.3.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
- 0
0
@@ -461,7 +479,7 @@
0
0
1
- 0
+ {if isset($account.3.user_id)}1{else}{/if}
{$account.3.register_expires}
0
0
@@ -480,7 +498,7 @@
5060
{if $account.3.sip_transport == 'udp'}0{/if}
{if $account.3.sip_transport == 'tcp'}1{/if}
- {if $account.3.sip_transport == 'tls'}2{/if}
+ {if $account.3.sip_transport == 'tls'}3{/if}
0
0
@@ -488,10 +506,11 @@
1
0
-
+ {if isset($account.3.user_id)}*97{else}{/if}
+ 0
0
@@ -514,13 +533,14 @@
- OPUS,PCMU,PCMA,G726-32,G729,iLBC,G722
+ PCMU,PCMA,G726-32,G729,iLBC,G722
{if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
0
4
+ 0
0
1
@@ -537,7 +557,7 @@
0
0
1
- 0
+ 2
0
@@ -559,6 +579,8 @@
500
4000
5000
+ 0
+ 0
{$account.4.user_id}
@@ -569,22 +591,25 @@
{$account.4.auth_id}
{$account.4.password}
{$account.4.register_expires}
+ 0
5060
0
3600
+ 0
{if isset($account.4.password)}1{else}0{/if}
{$account.4.outbound_proxy_primary}
{$account.4.sip_port}
{$account.4.auth_id}
{$account.4.password}
+ 0
{$account.4.outbound_proxy_secondary}
{$account.4.sip_port}
+ 0
{if isset($account.4.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
- 0
0
@@ -618,7 +643,7 @@
0
0
1
- 0
+ {if isset($account.4.user_id)}1{else}{/if}
{$account.4.register_expires}
0
0
@@ -637,7 +662,7 @@
5060
{if $account.4.sip_transport == 'udp'}0{/if}
{if $account.4.sip_transport == 'tcp'}1{/if}
- {if $account.4.sip_transport == 'tls'}2{/if}
+ {if $account.4.sip_transport == 'tls'}3{/if}
0
0
@@ -645,10 +670,11 @@
1
0
-
+ {if isset($account.4.user_id)}*97{else}{/if}
+ 0
0
@@ -671,13 +697,14 @@
- OPUS,PCMU,PCMA,G726-32,G729,iLBC,G722
+ PCMU,PCMA,G726-32,G729,iLBC,G722
{if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
0
4
+ 0
0
1
@@ -694,7 +721,7 @@
0
0
1
- 0
+ 2
0
@@ -716,6 +743,8 @@
500
4000
5000
+ 0
+ 0
{$account.5.user_id}
@@ -726,22 +755,25 @@
{$account.5.auth_id}
{$account.5.password}
{$account.5.register_expires}
+ 0
5060
0
3600
+ 0
{if isset($account.5.password)}1{else}0{/if}
{$account.5.outbound_proxy_primary}
{$account.5.sip_port}
{$account.5.auth_id}
{$account.5.password}
+ 0
{$account.5.outbound_proxy_secondary}
{$account.5.sip_port}
+ 0
{if isset($account.5.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
- 0
0
@@ -775,15 +807,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
@@ -794,7 +826,7 @@
5060
{if $account.5.sip_transport == 'udp'}0{/if}
{if $account.5.sip_transport == 'tcp'}1{/if}
- {if $account.5.sip_transport == 'tls'}2{/if}
+ {if $account.5.sip_transport == 'tls'}3{/if}
0
0
@@ -802,10 +834,11 @@
1
0
-
+ {if isset($account.5.user_id)}*97{else}{/if}
+ 0
0
@@ -828,13 +861,14 @@
- OPUS,PCMU,PCMA,G726-32,G729,iLBC,G722
+ PCMU,PCMA,G726-32,G729,iLBC,G722
{if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
0
4
+ 0
0
1
@@ -851,7 +885,7 @@
0
0
1
- 0
+ 2
0
@@ -873,6 +907,8 @@
500
4000
5000
+ 0
+ 0
{$account.6.user_id}
@@ -883,22 +919,25 @@
{$account.6.auth_id}
{$account.6.password}
{$account.6.register_expires}
+ 0
5060
0
3600
+ 0
{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}
+ 0
{$account.6.outbound_proxy_secondary}
{$account.6.sip_port}
+ 0
{if isset($account.6.outbound_proxy_secondary)}1{else}0{/if}
1800
0
3
- 0
0
@@ -932,15 +971,15 @@
0
0
1
- 0
+ {if isset($account.6.user_id)}1{else}{/if}
{$account.6.register_expires}
0
0
1
0
0
- 0
- 0
+ {if $account.6.sip_transport == 'dns srv'}1{/if}
+ {if $account.6.sip_transport == 'dns srv'}1{/if}
0
0
0
@@ -951,7 +990,7 @@
5060
{if $account.6.sip_transport == 'udp'}0{/if}
{if $account.6.sip_transport == 'tcp'}1{/if}
- {if $account.6.sip_transport == 'tls'}2{/if}
+ {if $account.6.sip_transport == 'tls'}3{/if}
0
0
@@ -959,10 +998,11 @@
1
0
-
+ {if isset($account.6.user_id)}*97{else}{/if}
+ 0
0
@@ -985,13 +1025,14 @@
- OPUS,PCMU,PCMA,G726-32,G729,iLBC,G722
+ PCMU,PCMA,G726-32,G729,iLBC,G722
{if isset($fanvil_video_codec)}{$fanvil_video_codec}{else}{/if}
0
0
4
+ 0
0
1
@@ -1008,7 +1049,7 @@
0
0
1
- 0
+ 2
0
@@ -1030,17 +1071,22 @@
500
4000
5000
+ 0
+ 0
0
30
1
0
+ 0
+ 0
+ 1
-
+ 1
0
0
.
@@ -1085,7 +1131,7 @@
1
0
0
- 0
+ 1
{$fanvil_default_answer_mode}
{$fanvil_default_dial_mode}
0
@@ -1109,6 +1155,10 @@
0
+ 0
+ 120
+ 120
+ 0
1
@@ -1189,13 +1239,17 @@
0
1
1
- $name@$protocol$instance
+ $name
0
0
1
1
30
+ 0
+ 0
+ 0
+
{$fanvil_greeting}
5
@@ -1216,6 +1270,7 @@
0
0
3
+ 1
0
@@ -1224,25 +1279,36 @@
0
1
+ terminated
1
2
- 1
- 1
+ early
+ 1
+ 0
+
+ 1
+ 1
+ confirmed
+ 1
+ 0
+
0
0
+ failed
0
3
+ 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}
@@ -1274,7 +1340,7 @@
0
- {if isset($fanvil_softkey_exit)}{$fanvil_softkey_exit}{else}2{/if}
+ {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}
@@ -1289,6 +1355,7 @@
send;2aB;delete;exit;
{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;none;none;none;
status;none;none;none;reset;
contact;clogs;redial;video;cancel;
@@ -1529,6 +1596,8 @@
120
0
+ 2
+ 6
1
@@ -1544,6 +1613,7 @@
1
1
+ 0
@@ -1554,6 +1624,8 @@
+
+
@@ -1578,6 +1650,7 @@
+
@@ -1649,6 +1722,9 @@
0
0
+
+ 60
+
0
@@ -1656,10 +1732,12 @@
1
1
0
+ 0
0
16
360
1080
+ 1
0
0
0
@@ -1725,7 +1803,7 @@
1
- 00100400FV02001000000c383e3aaf78
+
1
0
0.0.0.0
@@ -1737,12 +1815,14 @@
dps
dps
3600
- 2
+ 0
020
0
{$fanvil_stun_server}
{$fanvil_stun_port}
30000
+ 30
+ 30
0
@@ -1751,23 +1831,32 @@
224.0.2.0
16360
SIP Hotspot
+ 0
+ 0
+ 0
1
+
1
+
1
+
1
+
1
+
1
+
@@ -1794,7 +1883,7 @@
1
- 0
+ 1
5
{if isset($fanvil_provision_url)}{$fanvil_provision_url}{else}https://{$domain_name}/app/provision{/if}
{$fanvil_firmware_config}
@@ -1814,6 +1903,8 @@
66
0
0
+ 0
+ 1
@@ -1839,7 +1930,7 @@
{if isset($fanvil_lldp_refresh)}{$fanvil_lldp_refresh}{else}60{/if}
{if isset($fanvil_lldp_learn)}{$fanvil_lldp_learn}{else}0{/if}
0
- 0
+ 1
60
132
@@ -1867,6 +1958,7 @@
0.0.0.0
10000
+
0
0
@@ -1878,5 +1970,19 @@
1
1
0
+ 0
+ 1,1,1,1
+ 0
+ 0x262626
+ 0xffffff
+ 0xffffff
+ 0x262626
+ 0x5a9dba
+ 0xc4012f
+ 0x007bb0
+ 0xffffff
+ 0x262626
+ 1
+
From b77025b9babe864c6c85b44cde8183f883855dc3 Mon Sep 17 00:00:00 2001
From: chansizzle <14916599+chansizzle@users.noreply.github.com>
Date: Wed, 10 Feb 2021 14:51:34 -0700
Subject: [PATCH 2/2] Update {$mac}.cfg
---
resources/templates/provision/fanvil/x3u/{$mac}.cfg | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/resources/templates/provision/fanvil/x3u/{$mac}.cfg b/resources/templates/provision/fanvil/x3u/{$mac}.cfg
index 489cf26b6f..814c34ed11 100644
--- a/resources/templates/provision/fanvil/x3u/{$mac}.cfg
+++ b/resources/templates/provision/fanvil/x3u/{$mac}.cfg
@@ -4,9 +4,9 @@
2.0000000000
0
- 192.168.1.179
- 255.255.255.0
- 192.168.1.1
+
+
+
{if isset($dns_server_primary)}{$dns_server_primary}{else}9.9.9.9{/if}
{if isset($dns_server_secondary)}{$dns_server_secondary}{else}208.67.222.222{/if}