diff --git a/app/grandstream/app_config.php b/app/grandstream/app_config.php
index e3f62e3d16..56bd68ad68 100644
--- a/app/grandstream/app_config.php
+++ b/app/grandstream/app_config.php
@@ -234,7 +234,7 @@
$apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_phonebook_xml_server_path";
$apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
- $apps[$x]['default_settings'][$y]['default_setting_value'] = "mydomain.com/app/provision/";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "mydomain.com/app/provision/pb/";
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Grandstream Phonebook Server Path - NOTE template adds MAC on the end of this if contact_grandstream is enabled. This also requires nginx rewrite rules for phonebook.xml";
$y++;
@@ -846,4 +846,68 @@
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Show Keys Label. 1 - Show, 2 - Hide, 0 - Toggle. Default is 0";
$y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "13d088f2-5d1b-47bf-a9b5-e7fdc24faeec";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_missed_call_log";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "0";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Missed Call Log. 0 - Disabled, 1 - Enabled. Default is 0";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "f6c06df3-1d62-4c1d-a10c-11ddd42e0dff";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_missed_call_notification";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "0";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Enable Missed Call Notification. 0 - No, 1 - Yes. Default is 0";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "2303515c-198c-4229-87e2-495e1121d0cf";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_missed_call_backlight";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "0";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Disable Missed Call Backlight. 0 - No, 1 - Yes, 2 - Yes, but flash MWI LED. Default is 0";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "bc8725c3-29c7-4d99-ba4d-177070e6e398";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_firmware_upgrade_protocol";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "1";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Firmware Upgrade Via. 0 - TFTP, 1 - HTTP, 2 - HTTPS, 3 - FTP, 4 - FTPS. Default is 1.";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "54222376-2427-4260-9553-c7c379fc9721";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_onhook_dial_barging";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "1";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Onhook Dial Barging. 0 - Disabled, 1 - Enabled. Default is 1";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "f21df044-9ff4-426c-b87c-422786deac44";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_transfer_mode_via_vpk";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "0";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Transfer Mode via VPK. 0 - Blind Transfer, 1 - Attended Transfer, 2 - New Call. Default is 0";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "00d3dc88-1f66-4cbb-81d1-5463e9c3dfa8";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_enable_call_features";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "1";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Enable Call Features. 0 - no, 1 - yes";
+ $y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "4828806c-efae-44a8-9317-651313be2e60";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_ptt_enable";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "numeric";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "1";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "Enable/Disable PTT. 0 - Disable, 1 - Enable. Default is 0.";
+ $y++;
?>
diff --git a/resources/templates/provision/grandstream/dp750/{$mac}.xml b/resources/templates/provision/grandstream/dp750/{$mac}.xml
index ef79c82b4d..138c0a81a6 100644
--- a/resources/templates/provision/grandstream/dp750/{$mac}.xml
+++ b/resources/templates/provision/grandstream/dp750/{$mac}.xml
@@ -2876,7 +2876,11 @@
+{if isset($grandstream_firmware_upgrade_protocol) }
+{$grandstream_firmware_upgrade_protocol}
+{else}
1
+{/if}
@@ -3087,11 +3091,11 @@
-
+{$mac|replace:'-':''|upper}
-
+{$mac|replace:'-':''|upper}
diff --git a/resources/templates/provision/grandstream/grp2612/{$mac}.xml b/resources/templates/provision/grandstream/grp2612/{$mac}.xml
index b250bca852..f68f005f24 100644
--- a/resources/templates/provision/grandstream/grp2612/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2612/{$mac}.xml
@@ -801,7 +801,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
+ {$grandstream_distinctive_ringtone_name_1}
+{else}
ring1
+{/if}
@@ -811,7 +815,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
+ {$grandstream_distinctive_ringtone_name_2}
+{else}
ring2
+{/if}
@@ -2520,8 +2528,12 @@
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
1
-
+ {/if}
+
{if isset($grandstream_firmware_path) && isset($firmware_version)}
@@ -2621,11 +2633,11 @@
- {$mac|replace:'-':''}
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -2650,7 +2662,11 @@
- {if isset($grandstream_configuration_via_keypad)}{$grandstream_configuration_via_keypad}{else}0{/if}
+ {if isset($grandstream_configuration_via_keypad)}
+ {$grandstream_configuration_via_keypad}
+ {else}
+ 0
+ {/if}
@@ -3088,7 +3104,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -3440,7 +3460,12 @@
- 1
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
+
@@ -3696,7 +3721,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -4021,7 +4050,7 @@
-
+
1440
@@ -4107,7 +4136,11 @@
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -4181,7 +4214,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -4393,7 +4430,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
@@ -4407,7 +4448,7 @@
{if isset($grandstream_show_key_labels)}
{$grandstream_show_key_labels}
{else}
- 1
+ 0
{/if}
diff --git a/resources/templates/provision/grandstream/grp2613/{$mac}.xml b/resources/templates/provision/grandstream/grp2613/{$mac}.xml
index 8f06566970..a78d29696d 100644
--- a/resources/templates/provision/grandstream/grp2613/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2613/{$mac}.xml
@@ -801,7 +801,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
+ {$grandstream_distinctive_ringtone_name_1}
+{else}
ring1
+{/if}
@@ -811,7 +815,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
+ {$grandstream_distinctive_ringtone_name_2}
+{else}
ring2
+{/if}
@@ -3358,7 +3366,11 @@
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
1
+ {/if}
@@ -3484,11 +3496,11 @@
- {$mac|replace:'-':''}
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -3971,7 +3983,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -4282,7 +4298,11 @@
- 1
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
@@ -4536,7 +4556,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -4955,7 +4979,11 @@
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -5004,7 +5032,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -5014,10 +5046,9 @@
-{if isset($grandstream2135_wallpaper_url)}
+{if isset($grandstream_wallpaper_url)}
1
- {$grandstream2135_wallpaper_url}
-
+ {$grandstream_wallpaper_url}
{/if}
@@ -5216,7 +5247,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
diff --git a/resources/templates/provision/grandstream/grp2614/{$mac}.xml b/resources/templates/provision/grandstream/grp2614/{$mac}.xml
index 7f68a809cc..2c30defc48 100644
--- a/resources/templates/provision/grandstream/grp2614/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2614/{$mac}.xml
@@ -801,7 +801,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
+ {$grandstream_distinctive_ringtone_name_1}
+{else}
ring1
+{/if}
@@ -811,7 +815,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
+ {$grandstream_distinctive_ringtone_name_2}
+{else}
ring2
+{/if}
@@ -4576,8 +4584,12 @@
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
1
-
+ {/if}
+
{if isset($grandstream_firmware_path) && isset($firmware_version)}
@@ -4702,11 +4714,11 @@
- {$mac|replace:'-':''}
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -5197,7 +5209,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -5549,7 +5565,11 @@
- 1
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
@@ -5811,7 +5831,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -6286,7 +6310,11 @@
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -6335,7 +6363,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -6567,7 +6599,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
diff --git a/resources/templates/provision/grandstream/grp2615/{$mac}.xml b/resources/templates/provision/grandstream/grp2615/{$mac}.xml
index 29c9b64b32..eaf51d3942 100644
--- a/resources/templates/provision/grandstream/grp2615/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2615/{$mac}.xml
@@ -801,7 +801,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
+ {$grandstream_distinctive_ringtone_name_1}
+{else}
ring1
+{/if}
@@ -811,7 +815,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
+ {$grandstream_distinctive_ringtone_name_2}
+{else}
ring2
+{/if}
@@ -5615,7 +5623,11 @@
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
1
+ {/if}
@@ -5741,11 +5753,11 @@
- {$mac|replace:'-':''}
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -6228,7 +6240,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -6580,7 +6596,11 @@
- 1
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
@@ -6838,7 +6858,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -7312,7 +7336,11 @@
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -7361,7 +7389,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -7579,7 +7611,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
diff --git a/resources/templates/provision/grandstream/grp2616/{$mac}.xml b/resources/templates/provision/grandstream/grp2616/{$mac}.xml
index e80c99145b..bed6c16100 100644
--- a/resources/templates/provision/grandstream/grp2616/{$mac}.xml
+++ b/resources/templates/provision/grandstream/grp2616/{$mac}.xml
@@ -801,7 +801,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
+ {$grandstream_distinctive_ringtone_name_1}
+{else}
ring1
+{/if}
@@ -811,7 +815,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
+ {$grandstream_distinctive_ringtone_name_2}
+{else}
ring2
+{/if}
@@ -6498,7 +6506,11 @@
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
1
+ {/if}
@@ -6624,11 +6636,11 @@
- {$mac|replace:'-':''}
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -7120,7 +7132,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -7472,7 +7488,11 @@
- 1
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
@@ -7734,7 +7754,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -8209,7 +8233,11 @@
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -8258,7 +8286,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -8490,7 +8522,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
index 39011361cc..ccbe7fc0fa 100644
--- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
@@ -809,7 +809,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
{$grandstream_distinctive_ringtone_name_1}
+{else}
+ ring1
+{/if}
@@ -819,7 +823,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
{$grandstream_distinctive_ringtone_name_2}
+{else}
+ ring2
+{/if}
@@ -6445,8 +6453,12 @@
- 2
-
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
+ 1
+ {/if}
+
{if isset($grandstream_firmware_path) && isset($firmware_version)}
@@ -6577,11 +6589,11 @@
-
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -7087,7 +7099,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -7439,9 +7455,11 @@
- {if isset($grandstream_onhook_dial_barging)}
- {$grandstream_onhook_dial_barging}
- {/if}
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
@@ -7708,7 +7726,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -8183,7 +8205,11 @@
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -8232,7 +8258,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -8488,7 +8518,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
index 1d33b20a1a..73eb2bbbf5 100644
--- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
@@ -739,10 +739,9 @@
0
-
+
-
- 0
+ 0
@@ -809,7 +808,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
{$grandstream_distinctive_ringtone_name_1}
+{else}
+ ring1
+{/if}
@@ -819,7 +822,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
{$grandstream_distinctive_ringtone_name_2}
+{else}
+ ring2
+{/if}
@@ -6445,8 +6452,12 @@
- 2
-
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
+ 1
+ {/if}
+
{if isset($grandstream_firmware_path) && isset($firmware_version)}
@@ -6577,11 +6588,11 @@
-
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -7087,7 +7098,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -7439,9 +7454,11 @@
- {if isset($grandstream_onhook_dial_barging)}
- {$grandstream_onhook_dial_barging}
- {/if}
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
@@ -7708,7 +7725,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -8183,7 +8204,11 @@
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -8232,7 +8257,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -8488,7 +8517,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
index 39011361cc..61b9196026 100644
--- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
@@ -809,7 +809,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
{$grandstream_distinctive_ringtone_name_1}
+{else}
+ ring1
+{/if}
@@ -819,7 +823,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
{$grandstream_distinctive_ringtone_name_2}
+{else}
+ ring2
+{/if}
@@ -6445,7 +6453,11 @@
- 2
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
+ 1
+ {/if}
@@ -6577,11 +6589,11 @@
-
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -7087,7 +7099,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -7439,9 +7455,11 @@
- {if isset($grandstream_onhook_dial_barging)}
- {$grandstream_onhook_dial_barging}
- {/if}
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
@@ -7708,7 +7726,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -8183,7 +8205,11 @@
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -8232,7 +8258,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -8488,7 +8518,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
index 4c141d0d03..8f52a4ee66 100644
--- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
@@ -809,7 +809,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
{$grandstream_distinctive_ringtone_name_1}
+{else}
+ ring1
+{/if}
@@ -819,7 +823,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
{$grandstream_distinctive_ringtone_name_2}
+{else}
+ ring2
+{/if}
@@ -6445,7 +6453,11 @@
- 2
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
+ 1
+ {/if}
@@ -6577,11 +6589,11 @@
-
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -7087,7 +7099,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -7708,7 +7724,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -8232,7 +8252,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
index b9e0bf650b..a4b0d62d2f 100644
--- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
@@ -809,7 +809,11 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
{$grandstream_distinctive_ringtone_name_1}
+{else}
+ ring1
+{/if}
@@ -819,7 +823,11 @@
+{if isset($grandstream_distinctive_ringtone_name_2)}
{$grandstream_distinctive_ringtone_name_2}
+{else}
+ ring2
+{/if}
@@ -6445,7 +6453,11 @@
- 2
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
+ 1
+ {/if}
@@ -6577,11 +6589,11 @@
-
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
@@ -7087,7 +7099,11 @@
+ {if isset($grandstream_missed_call_log) }
+ {$grandstream_missed_call_log}
+ {else}
0
+ {/if}
@@ -7439,9 +7455,11 @@
- {if isset($grandstream_onhook_dial_barging)}
- {$grandstream_onhook_dial_barging}
- {/if}
+ {if isset($grandstream_onhook_dial_barging)}
+ {$grandstream_onhook_dial_barging}
+ {else}
+ 1
+ {/if}
@@ -7708,7 +7726,11 @@
+ {if isset($grandstream_missed_call_notification) }
+ {$grandstream_missed_call_notification}
+ {else}
0
+ {/if}
@@ -8183,11 +8205,11 @@
-{if isset($grandstream_dhcp_option_2_timezone_override) }
- {$grandstream_dhcp_option_2_timezone_override}
-{else}
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
-{/if}
+ {if isset($grandstream_dhcp_time_zone)}
+ {$grandstream_dhcp_time_zone}
+ {else}
+ 1
+ {/if}
@@ -8236,7 +8258,11 @@
- 1
+ {if isset($grandstream_missed_call_backlight) }
+ {$grandstream_missed_call_backlight}
+ {else}
+ 0
+ {/if}
@@ -8492,7 +8518,11 @@
+ {if isset($grandstream_transfer_mode_via_vpk)}
+ {$grandstream_transfer_mode_via_vpk}
+ {else}
0
+ {/if}
diff --git a/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml b/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml
index 37ee60eef0..f13ce71d80 100644
--- a/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxw42xx/{$mac}.xml
@@ -151,10 +151,14 @@
{$http_auth_password}
-
+
+{if isset($grandstream_firmware_upgrade_protocol) }
+{$grandstream_firmware_upgrade_protocol}
+{else}
2
+{/if}
{if isset($grandstream_firmware_path) && isset($firmware_version)}
@@ -598,7 +602,15 @@
{if $account.1.sip_transport == 'udp'}{$tp=0}{/if}
{if $account.1.sip_transport == 'tcp'}{$tp=1}{/if}
{if $account.1.sip_transport == 'tls'}{$tp=2}{/if}
-{if $account.1.sip_transport == 'dns srv'}{$tp=1}{/if}
+{if $account.1.sip_transport == 'dns srv'}
+ {if isset($grandstream_dnssrv_transport)}
+ {if $grandstream_dnssrv_transport == 'udp'}{$tp=0}
+ {elseif $grandstream_dnssrv_transport == 'tls'}{$tp=2}
+ {else}{$tp=1}
+ {/if}
+ {else}{$tp=1}
+ {/if}
+{/if}
{$tp}
@@ -1045,7 +1057,11 @@
+{if isset($grandstream_enable_call_features) }
+{$grandstream_enable_call_features}
+{else}
1
+{/if}
diff --git a/resources/templates/provision/grandstream/ht814/{$mac}.xml b/resources/templates/provision/grandstream/ht814/{$mac}.xml
index 60951dc64b..6883ee58fd 100644
--- a/resources/templates/provision/grandstream/ht814/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht814/{$mac}.xml
@@ -1,4 +1,3 @@
-
{$mac|replace:'-':''}
@@ -73,10 +72,14 @@
0
-
+
- 2
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
+ 1
+ {/if}
@@ -234,11 +237,11 @@
-
+ {$mac|replace:'-':''|upper}
-
+ {$mac|replace:'-':''|upper}
diff --git a/resources/templates/provision/grandstream/ht818/{$mac}.xml b/resources/templates/provision/grandstream/ht818/{$mac}.xml
index 9b846e5837..f378066f7c 100644
--- a/resources/templates/provision/grandstream/ht818/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht818/{$mac}.xml
@@ -1,2282 +1,2294 @@
-
-
-
-{$mac|replace:'-':''}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {$admin_password}
-
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
- 20
-
-
-
-
- 0
-
-
-
-
- 3
-
-
-
-
- 0
-
-
-
-
-
-
-
- 0
-
-
-
-
- 2
-
-
-
- {if isset($grandstream_firmware_path) && isset($firmware_version)}
- {$grandstream_firmware_path}/gxw4004/{$firmware_version}
- {elseif isset($grandstream_firmware_path)}
- {$grandstream_firmware_path}/gxw4004
- {else}
- {$domain_name}{$project_path}/app/provision
- {/if}
-
-
-
- {if $grandstream_config_server_path=="none"}
-
- {elseif isset($grandstream_config_server_path)}
- {$grandstream_config_server_path}
- {elseif isset($domain_name)}
- {$domain_name}{$project_path}/app/provision
- {/if}
-
-
-
-
-
-
-
-
- {$http_auth_username}
-
-
-
- {$http_auth_password}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {if isset($grandstream_dhcp_option_override)}{$grandstream_dhcp_option_override}{else}1{/if}
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 10080
-
-
-
-
- 1
-
-
-
-
- 22
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
- s1pphone
-
-
-
-
-
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
- 300
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 3
-
-
-
-
- 162
-
-
-
-
-
-
-
-
-
- 162
-
-
-
-
- Version 2c
-
-
-
- 5
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- c=2000/4000;
-
-
-
-
-
-
- f1=350@-13,f2=440@-13,c=0/0;
-
-
-
- f1=440@-19,f2=480@-19,c=2000/4000;
-
-
-
- f1=480@-24,f2=620@-24,c=500/500;
-
-
-
- f1=480@-24,f2=620@-24,c=250/250;
-
-
-
- f1=350@-11,f2=440@-11,c=100/100-100/100-100/100;
-
-
-
- f1=440@-13,c=300/300-300/10000;
-
-
-
-
-
-
-
- f1=425@-15,c=600/600;
-
-
-
-
-
-
-
-
-
- 2
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
-
-
- {if isset($ntp_server_primary)}
- {$ntp_server_primary}
- {else}
- pool.ntp.org
- {/if}
-
-
-
-
-
- 1
-
-
-
-
- 3561
-
-
-
- {$grandstream_syslog_server}
-
-
-
-
-
- {if isset($grandstream_syslog_level)}
- {$grandstream_syslog_level}
- {else}
- 0
- {/if}
-
-
-
-
- {if isset($grandstream_send_sip_log)}
- {$grandstream_send_sip_log}
- {else}
- 0
- {/if}
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
-
-
-
- 1
-
-
-
- {$account.1.server_address}
-
-
-
-
- {$account.1.server_address_secondary}
-
-
-
-
- 1
-
-
-
- {$account.1.server_address_secondary}
-
-
-
- {$account.1.outbound_proxy_secondary}
-
-
-
-
- 1
-
-
-
-
- {if isset($grandstream_dhcp_option_override_sip_server)}{$grandstream_dhcp_option_override_sip_server}{else}0{/if}
-
-
-
-
- {$tp=0}
- {if $account.1.sip_transport == 'udp'}{$tp=0}{/if}
- {if $account.1.sip_transport == 'tcp'}{$tp=1}{/if}
- {if $account.1.sip_transport == 'tls'}{$tp=2}{/if}
- {if $account.1.sip_transport == 'dns srv'}{$tp=1}{/if}
- {$tp}
-
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-
- {if isset($grandstream_nat_traversal)}
- {$grandstream_nat_traversal}
- {else}
- 0
- {/if}
-
-
-
-
-
- {if isset($grandstream_dns_mode)}
- {$grandstream_dns_mode}
- {else}
- 0
- {/if}
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- {$account.1.register_expires}
-
-
-
-
-
- 0
-
-
-
-
- 20
-
-
-
-
- 1200
-
-
-
-
- 1
-
-
-
-
- 30
-
-
-
-
- 3
-
-
-
- 24
-
- 46 (Profile1)
-
-
-
-
- 5060
-
-
-
-
- 5004
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
- 50
-
-
-
-
-
- 400
-
-
-
-
- 0
-
-
-
- 101
-
-
-
-
-
-
- 101
-
-
-
-
- 102
-
-
-
-
- 100
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
- {$grandstream_call_waiting}
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 60
-
-
-
-
- 20
-
-
-
-
- 4
-
-
-
-
- 0
-
-
-
-
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
- {if isset($grandstream_dial_plan) }
- {$grandstream_dial_plan}
- {else}
- {literal}{ x+ | *x+ | *xx*x+ }{/literal}
- {/if}
-
-
-
-
- {if isset($subscribe_mwi)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
- 100
-
-
-
-
- 1
-
-
-
-
- 180
-
-
-
-
- 90
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
- {if $nway_conference == 'true'}nway{$account.1.user_id}@{$account.1.server_address}{/if}
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
- 0
-
-
-
-
- 8
-
-
-
-
- 4
-
-
-
-
- 18
-
-
-
-
- 2
-
-
-
-
- 97
-
-
-
-
- 123
-
-
-
-
- 2
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 97
-
-
-
-
- 120
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- {if isset($grandstream_fax_mode)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
-
-
-
- {if isset($grandstream_srtp)}
- {$grandstream_srtp}
- {else}
- 0
- {/if}
-
-
-
-
-
-
- 1
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 200
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
-
- 300
-
-
-
-
- 1100
-
-
-
-
- 400
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 20
-
-
-
-
- 0
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
- c=2000/4000;
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {$account.1.user_id}
-
-
- {$account.1.user_id}
-
-
-
- {$account.1.password}
-
-
- {$account.1.display_name}
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
-
- {$account.2.user_id}
-
-
- {$account.2.user_id}
-
-
- {$account.2.password}
-
-
- {$account.2.display_name}
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
- {if isset($account.2.password)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
-
-
-
-
-
-
-
- {$account.3.user_id}
-
-
- {$account.3.user_id}
-
-
-
- {$account.3.password}
-
-
- {$account.3.display_name}
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
- {if isset($account.3.password)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
-
-
-
-
-
-
-
- {$account.4.user_id}
-
-
- {$account.4.user_id}
-
-
-
- {$account.4.password}
-
-
- {$account.4.display_name}
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
- {if isset($account.4.password)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
-
-
-
-
-
-
-
- {$account.5.user_id}
-
-
- {$account.5.user_id}
-
-
- {$account.5.password}
-
-
- {$account.5.display_name}
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
- {if isset($account.5.password)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
-
-
-
-
-
-
-
- {$account.6.user_id}
-
-
- {$account.6.user_id}
-
-
- {$account.6.password}
-
-
- {$account.6.display_name}
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
- {if isset($account.6.password)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
-
-
-
-
-
-
-
- {$account.7.user_id}
-
-
- {$account.7.user_id}
-
-
- {$account.7.password}
-
-
- {$account.7.display_name}
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
- {if isset($account.7.password)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
-
-
-
-
-
-
-
- {$account.8.user_id}
-
-
- {$account.8.user_id}
-
-
- {$account.8.password}
-
-
- {$account.8.display_name}
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
- {if isset($account.8.password)}
- 1
- {else}
- 0
- {/if}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 10
-
-
-
-
- 5
-
-
-
-
- 15
-
-
-
-
- 0
-
-
-
-
- 80
-
-
-
-
- 443
-
-
-
-
- 0
-
-
-
-
- 22
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
- {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if}
-
-
-
-
- 0
-
-
-
-
- phone-{$account.1.display_name}
-
-
-
- HT802
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
- 0
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
- 192.168.100.100
-
-
-
- 255.255.255.0
-
-
-
- 192.168.100.1
-
-
-
- 0.0.0.0
-
-
-
- 0.0.0.0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {if isset($grandstream_timezone) }
- {$grandstream_timezone}
- {elseif isset($grandstream_gxp_time_zone) }
- {$grandstream_gxp_time_zone}
- {else}
- customize
- {/if}
-
-
-
- MTZ+6MDT+5,M3.2.0,M11.1.0
-
-
-
-
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
-
-
-
-
- 0
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
- 1024
-
-
-
-
-
- 3600
-
-
-
-
-
- 300
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
-
- 100
-
-
-
-
- 199
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+{$mac|replace:'-':''}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {$admin_password}
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+ 20
+
+
+
+
+ 0
+
+
+
+
+ 3
+
+
+
+
+ 0
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ {if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+ {else}
+ 1
+ {/if}
+
+
+
+ {if isset($grandstream_firmware_path) && isset($firmware_version)}
+ {$grandstream_firmware_path}/gxw4004/{$firmware_version}
+ {elseif isset($grandstream_firmware_path)}
+ {$grandstream_firmware_path}/gxw4004
+ {else}
+ {$domain_name}{$project_path}/app/provision
+ {/if}
+
+
+
+ {if $grandstream_config_server_path=="none"}
+
+ {elseif isset($grandstream_config_server_path)}
+ {$grandstream_config_server_path}
+ {elseif isset($domain_name)}
+ {$domain_name}{$project_path}/app/provision
+ {/if}
+
+
+
+
+
+
+
+
+ {$http_auth_username}
+
+
+
+ {$http_auth_password}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {if isset($grandstream_dhcp_option_override)}{$grandstream_dhcp_option_override}{else}1{/if}
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 10080
+
+
+
+
+ 1
+
+
+
+
+ 22
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+ s1pphone
+
+
+
+
+
+
+
+
+ 1
+
+
+ https://acs.gdms.cloud
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+ 300
+
+
+
+ {$mac|replace:'-':''|upper}
+
+
+
+ {$mac|replace:'-':''|upper}
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 3
+
+
+
+
+ 162
+
+
+
+
+
+
+
+
+
+ 162
+
+
+
+
+ Version 2c
+
+
+
+ 5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ c=2000/4000;
+
+
+
+
+
+
+ f1=350@-13,f2=440@-13,c=0/0;
+
+
+
+ f1=440@-19,f2=480@-19,c=2000/4000;
+
+
+
+ f1=480@-24,f2=620@-24,c=500/500;
+
+
+
+ f1=480@-24,f2=620@-24,c=250/250;
+
+
+
+ f1=350@-11,f2=440@-11,c=100/100-100/100-100/100;
+
+
+
+ f1=440@-13,c=300/300-300/10000;
+
+
+
+
+
+
+
+ f1=425@-15,c=600/600;
+
+
+
+
+
+
+
+
+
+ 2
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+
+
+ {if isset($ntp_server_primary)}
+ {$ntp_server_primary}
+ {else}
+ pool.ntp.org
+ {/if}
+
+
+
+
+
+ 1
+
+
+
+
+ 3561
+
+
+
+ {$grandstream_syslog_server}
+
+
+
+
+
+ {if isset($grandstream_syslog_level)}
+ {$grandstream_syslog_level}
+ {else}
+ 0
+ {/if}
+
+
+
+
+ {if isset($grandstream_send_sip_log)}
+ {$grandstream_send_sip_log}
+ {else}
+ 0
+ {/if}
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+
+
+ 1
+
+
+
+ {$account.1.server_address}
+
+
+
+
+ {$account.1.server_address_secondary}
+
+
+
+
+ 1
+
+
+
+ {$account.1.server_address_secondary}
+
+
+
+ {$account.1.outbound_proxy_secondary}
+
+
+
+
+ 1
+
+
+
+
+ {if isset($grandstream_dhcp_option_override_sip_server)}{$grandstream_dhcp_option_override_sip_server}{else}0{/if}
+
+
+
+
+ {$tp=0}
+ {if $account.1.sip_transport == 'udp'}{$tp=0}{/if}
+ {if $account.1.sip_transport == 'tcp'}{$tp=1}{/if}
+ {if $account.1.sip_transport == 'tls'}{$tp=2}{/if}
+ {if $account.1.sip_transport == 'dns srv'}{$tp=1}{/if}
+ {$tp}
+
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+
+ {if isset($grandstream_nat_traversal)}
+ {$grandstream_nat_traversal}
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+ {if isset($grandstream_dns_mode)}
+ {$grandstream_dns_mode}
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ {$account.1.register_expires}
+
+
+
+
+
+ 0
+
+
+
+
+ 20
+
+
+
+
+ 1200
+
+
+
+
+ 1
+
+
+
+
+ 30
+
+
+
+
+ 3
+
+
+
+ 24
+
+ 46 (Profile1)
+
+
+
+
+ 5060
+
+
+
+
+ 5004
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+ 50
+
+
+
+
+
+ 400
+
+
+
+
+ 0
+
+
+
+ 101
+
+
+
+
+
+
+ 101
+
+
+
+
+ 102
+
+
+
+
+ 100
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {$grandstream_distinctive_ringtone_1}
+
+
+
+{if isset($grandstream_distinctive_ringtone_name_1)}
+ {$grandstream_distinctive_ringtone_name_1}
+{else}
+ ring1
+{/if}
+
+
+
+
+ {$grandstream_distinctive_ringtone_2}
+
+
+
+{if isset($grandstream_distinctive_ringtone_name_2)}
+ {$grandstream_distinctive_ringtone_name_2}
+{else}
+ ring2
+{/if}
+
+
+
+
+ {$grandstream_distinctive_ringtone_3}
+
+
+
+ {$grandstream_distinctive_ringtone_name_3}
+
+
+
+
+ {$grandstream_call_waiting}
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 60
+
+
+
+
+ 20
+
+
+
+
+ 4
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+ {if isset($grandstream_dial_plan) }
+ {$grandstream_dial_plan}
+ {else}
+ {literal}{ x+ | *x+ | *xx*x+ }{/literal}
+ {/if}
+
+
+
+
+ {if isset($subscribe_mwi)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+ 100
+
+
+
+
+ 1
+
+
+
+
+ 180
+
+
+
+
+ 90
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+ {if $nway_conference == 'true'}nway{$account.1.user_id}@{$account.1.server_address}{/if}
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+ 0
+
+
+
+
+ 8
+
+
+
+
+ 4
+
+
+
+
+ 18
+
+
+
+
+ 2
+
+
+
+
+ 97
+
+
+
+
+ 123
+
+
+
+
+ 2
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 97
+
+
+
+
+ 120
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ {if isset($grandstream_fax_mode)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+
+
+ {if isset($grandstream_srtp)}
+ {$grandstream_srtp}
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 200
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+
+ 300
+
+
+
+
+ 1100
+
+
+
+
+ 400
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 20
+
+
+
+
+ 0
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+ c=2000/4000;
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {$account.1.user_id}
+
+
+ {$account.1.user_id}
+
+
+
+ {$account.1.password}
+
+
+ {$account.1.display_name}
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+ {$account.2.user_id}
+
+
+ {$account.2.user_id}
+
+
+ {$account.2.password}
+
+
+ {$account.2.display_name}
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+ {if isset($account.2.password)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+ {$account.3.user_id}
+
+
+ {$account.3.user_id}
+
+
+
+ {$account.3.password}
+
+
+ {$account.3.display_name}
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+ {if isset($account.3.password)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+ {$account.4.user_id}
+
+
+ {$account.4.user_id}
+
+
+
+ {$account.4.password}
+
+
+ {$account.4.display_name}
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+ {if isset($account.4.password)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+ {$account.5.user_id}
+
+
+ {$account.5.user_id}
+
+
+ {$account.5.password}
+
+
+ {$account.5.display_name}
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+ {if isset($account.5.password)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+ {$account.6.user_id}
+
+
+ {$account.6.user_id}
+
+
+ {$account.6.password}
+
+
+ {$account.6.display_name}
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+ {if isset($account.6.password)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+ {$account.7.user_id}
+
+
+ {$account.7.user_id}
+
+
+ {$account.7.password}
+
+
+ {$account.7.display_name}
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+ {if isset($account.7.password)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+ {$account.8.user_id}
+
+
+ {$account.8.user_id}
+
+
+ {$account.8.password}
+
+
+ {$account.8.display_name}
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+ {if isset($account.8.password)}
+ 1
+ {else}
+ 0
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 10
+
+
+
+
+ 5
+
+
+
+
+ 15
+
+
+
+
+ 0
+
+
+
+
+ 80
+
+
+
+
+ 443
+
+
+
+
+ 0
+
+
+
+
+ 22
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+ {if isset($grandstream_ipv_mode)}{$grandstream_ipv_mode}{else}0{/if}
+
+
+
+
+ 0
+
+
+
+
+ phone-{$account.1.display_name}
+
+
+
+ HT802
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+ 192.168.100.100
+
+
+
+ 255.255.255.0
+
+
+
+ 192.168.100.1
+
+
+
+ 0.0.0.0
+
+
+
+ 0.0.0.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {if isset($grandstream_timezone) }
+ {$grandstream_timezone}
+ {elseif isset($grandstream_gxp_time_zone) }
+ {$grandstream_gxp_time_zone}
+ {else}
+ customize
+ {/if}
+
+
+
+ MTZ+6MDT+5,M3.2.0,M11.1.0
+
+
+
+
+ {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1024
+
+
+
+
+
+ 3600
+
+
+
+
+
+ 300
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+
+ 100
+
+
+
+
+ 199
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/templates/provision/grandstream/wp810/{$mac}.xml b/resources/templates/provision/grandstream/wp810/{$mac}.xml
index 1620809844..33f789c80c 100644
--- a/resources/templates/provision/grandstream/wp810/{$mac}.xml
+++ b/resources/templates/provision/grandstream/wp810/{$mac}.xml
@@ -1,2338 +1,2368 @@
-
-
-
-{$mac|replace:'-':''}
-
-
-
-
-
-
-
-
- 1
-
-
-
- {$account.1.display_name}
-
-
-
-{if $account.1.sip_transport != 'dns srv'}
- {$account.1.server_address}:{$account.1.sip_port}
-{else}
- {$account.1.server_address}
-{/if}
-
-
-
-{if $account.1.sip_transport != 'dns srv' && isset($account.1.server_address_secondary)}
- {$account.1.server_address_secondary}:{$account.1.sip_port}
-{else}
- {$account.1.server_address_secondary}
-{/if}
-
-
-
-{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_primary)}
- {$account.1.outbound_proxy_primary}:{$account.1.sip_port}
-{else}
- {$account.1.outbound_proxy_primary}
-{/if}
-
-
-
-{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_secondary)}
- {$account.1.outbound_proxy_secondary}:{$account.1.sip_port}
-{else}
- {$account.1.outbound_proxy_secondary}
-{/if}
-
-
-
- {$account.1.user_id}
-
-
-
- {$account.1.auth_id}
-
-
-
- {$account.1.password}
-
-
-
- {$account.1.display_name}
-
-
-
- {$voicemail_number}
-
-
-
-
- 0
-
-
-
-
-
-{if isset($grandstream_dns_mode)}
- {$grandstream_dns_mode}
-{else}
- 0
-{/if}
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{if isset($grandstream_nat_traversal)}
- {$grandstream_nat_traversal}
-{else}
- 0
-{/if}
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-{if isset($account.1.register_expires)}
- {$account.1.register_expires}
-{else}
- 2
-{/if}
-
-
-
-
- 60
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 30
-
-
-
-
- 3
-
-
-
-
- 5060
-
-
-
-
- 20
-
-
-
-
-
- 50
-
-
-
-
-
- 400
-
-
-
-
-{$tp=0}
-{if $sip_transport_1 == 'udp'}{$tp=0}{/if}
-{if $sip_transport_1 == 'tcp'}{$tp=1}{/if}
-{if $sip_transport_1 == 'tls'}{$tp=2}{/if}
-{if $sip_transport_1 == 'dns srv'}{$tp=1}{/if}
- {$tp}
-
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-{if isset($subscribe_mwi)}
- 1
-{else}
- 0
-{/if}
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 2
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
-
- 1
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
- 100
-
-
-
-
-
- 0
-
-
-
-
- 180
-
-
-
-
- 90
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
-
- 0
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
- 0
-
-
-
-
- 8
-
-
-
-
- 18
-
-
-
-
- 9
-
-
-
-
- 98
-
-
-
-
- 2
-
-
-
-
- 123
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
- 0
-
-
-
-
-{if isset($grandstream_srtp)}
- {$grandstream_srtp}
-{else}
- 0
-{/if}
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
- 2
-
-
-
-
- 2
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 97
-
-
-
-
- 123
-
-
-
-
- 101
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-
- {$grandstream_dial_plan}
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 30
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
- {$grandstream_distinctive_ringtone_name_1}
-
-
-
-
-
- {$grandstream_distinctive_ringtone_1}
-
-
-
- {$grandstream_distinctive_ringtone_name_2}
-
-
-
-
-
- {$grandstream_distinctive_ringtone_2}
-
-
-
- {$grandstream_distinctive_ringtone_name_3}
-
-
-
-
-
- {$grandstream_distinctive_ringtone_3}
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
- 60
-
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 1
-
-
-
-
-
-
-{if isset($account.2.password)}
- 1
-{else}
- 0
-{/if}
-
-
-
- {$account.2.display_name}
-
-
-
-{if $account.2.sip_transport != 'dns srv'}
- {$account.2.server_address}:{$account.2.sip_port}
-{else}
- {$account.2.server_address}
-{/if}
-
-
-
-{if $account.2.sip_transport != 'dns srv' && isset($account.2.server_address_secondary)}
- {$account.2.server_address_secondary}:{$account.2.sip_port}
-{else}
- {$account.2.server_address_secondary}
-{/if}
-
-
-
-{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_primary)}
- {$account.2.outbound_proxy_primary}:{$account.2.sip_port}
-{else}
- {$account.2.outbound_proxy_primary}
-{/if}
-
-
-
-{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_secondary)}
- {$account.2.outbound_proxy_secondary}:{$account.2.sip_port}
-{else}
- {$account.2.outbound_proxy_secondary}
-{/if}
-
-
-
- {$account.2.user_id}
-
-
-
- {$account.2.auth_id}
-
-
-
- {$account.2.password}
-
-
-
- {$account.2.display_name}
-
-
-
- {$voicemail_number}
-
-
-
-
- 0
-
-
-
-
-
-{if isset($grandstream_dns_mode)}
- {$grandstream_dns_mode}
-{else}
- 0
-{/if}
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{if isset($grandstream_nat_traversal)}
- {$grandstream_nat_traversal}
-{else}
- 0
-{/if}
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-{if isset($account.2.register_expires)}
- {$account.2.register_expires}
-{else}
- 2
-{/if}
-
-
-
-
- 60
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 30
-
-
-
-
- 3
-
-
-
-
- 5062
-
-
-
-
- 20
-
-
-
-
-
- 50
-
-
-
-
-
- 400
-
-
-
-
-{$tp=0}
-{if $sip_transport_2 == 'udp'}{$tp=0}{/if}
-{if $sip_transport_2 == 'tcp'}{$tp=1}{/if}
-{if $sip_transport_2 == 'tls'}{$tp=2}{/if}
-{if $sip_transport_2 == 'dns srv'}{$tp=1}{/if}
- {$tp}
-
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-{if isset($subscribe_mwi)}
- 1
-{else}
- 0
-{/if}
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 2
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-
-
- 1
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
- 100
-
-
-
-
-
- 0
-
-
-
-
- 180
-
-
-
-
- 90
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
-
- 0
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
- 0
-
-
-
-
- 8
-
-
-
-
- 18
-
-
-
-
- 9
-
-
-
-
- 98
-
-
-
-
- 2
-
-
-
-
- 123
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
- 0
-
-
-
-
-
-{if isset($grandstream_srtp)}
- {$grandstream_srtp}
-{else}
- 0
-{/if}
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
- 2
-
-
-
-
- 2
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 97
-
-
-
-
- 123
-
-
-
-
- 101
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-
- {$grandstream_dial_plan}
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 30
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 60
-
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 1
-
-
-
-
-
- 5004
-
-
-
-
- 200
-
-
-
-
- 1
-
-
-
-
- 20
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{if isset($ntp_server_primary)}
- {$ntp_server_primary}
-{else}
- pool.ntp.org
-{/if}
-
-
-
-
-
-
-
-
- 1440
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{if isset($grandstream_timezone) }
- {$grandstream_timezone}
-{elseif isset($grandstream_gxp_time_zone) }
- {$grandstream_gxp_time_zone}
-{else}
- auto
-{/if}
-
-
-
- {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
-
-
-
-
- MTZ+6MDT+5,M4.1.0,M11.1.0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
- auto
-
-
-
-
-
-
-
-
-
-
- f1=350,f2=440;
-
-
-
-
- f1=350,f2=440;
-
-
-
-
- f1=350,f2=440,c=100/100-100/100-100/100--1/0;
-
-
-
-
- f1=440,f2=480,c=200/400;
-
-
-
-
- f1=440,f2=440,c=25/525;
-
-
-
-
- 0
-
-
-
-
- f1=480,f2=620,c=50/50;
-
-
-
-
- phone-{$user_id_1}
-
-
-
- Grandstream WP810
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 26
-
-
-
-
- 46
-
-
-
-
-
-
-
-
-
-
-
-
-{if isset($admin_password)}
- {$admin_password}
-{else}
- {$mac|replace:'-':''}
-{/if}
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
-{if isset($grandstream_dhcp_option_override)}
- {$grandstream_dhcp_option_override}
-{else}
- 1
-{/if}
-
-
-
-
-
- 0
-
-
-
-
-
-{if isset($grandstream_dhcp_option_override_sip_server)}
- {$grandstream_dhcp_option_override_sip_server}
-{else}
- 0
-{/if}
-
-
-
-
-
-
-
-
-
- 1
-
-
-
-
- 1440
-
-
-
-
- 0
-
-
-
- 1
-
-
-
- 0
-
-
-
- 1
-
-
-
-
- 0
-
-
-
-
-
- 2
-
-
-
-{if $grandstream_config_server_path=="none"}
-
-{elseif isset($grandstream_config_server_path)}
- {$grandstream_config_server_path}
-{elseif isset($domain_name)}
- {$domain_name}{$project_path}/app/provision
-{/if}
-
-
-
- {$http_auth_username}
-
-
-
- {$http_auth_password}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
- 1
-
-
-
-{if isset($grandstream_firmware_path)}
- {$grandstream_firmware_path}
-{else}
- {$domain_name}{$project_path}/app/provision
-{/if}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
- {$grandstream_syslog_server}
-
-
-
-
-{if isset($grandstream_syslog_level)}
- {$grandstream_syslog_level}
-{else}
- 0
-{/if}
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 30
-
-
-
-
- 1
-
-
-
-
- 1
-
-
-
-
- 3
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
-
- 1
-
-
-
- https://acs.gdms.cloud
-
-
-
-
-
-
-
-
-
-
-
-
- 1
-
-
-
- 86400
-
-
-
-
-
-
-
-
-
-
-
- 7547
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
-
-
- 1
-
-
-
-
- 80
-
-
-
-
- 443
-
-
-
- 0
-
-
-
- 10
-
-
-
- 5
-
-
-
-
- 11
-
-
-
-
- 99
-
-
-
-
-
- 0
-
-
-
-
-
-
- 0
-
-
-
-
- 0
-
-
-
- 0
-
-
-
-
-
-
- {$grandstream_phonebook_download}
-
-
-
- {$http_auth_username}
-
-
-
- {$http_auth_password}
-
-
-
-
-
-{if isset($grandstream_phonebook_xml_server_path)}
- {$grandstream_phonebook_xml_server_path}/{$mac}
-{else}
-
-{/if}
-
-
-
-
-{if isset($grandstream_phonebook_download_interval)}
- {$grandstream_phonebook_download_interval}
-{else}
- 0
-{/if}
-
-
-
-
- 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+{$mac|replace:'-':''}
+
+
+
+
+
+
+
+
+ 1
+
+
+
+ {$account.1.display_name}
+
+
+
+{if $account.1.sip_transport != 'dns srv'}
+ {$account.1.server_address}:{$account.1.sip_port}
+{else}
+ {$account.1.server_address}
+{/if}
+
+
+
+{if $account.1.sip_transport != 'dns srv' && isset($account.1.server_address_secondary)}
+ {$account.1.server_address_secondary}:{$account.1.sip_port}
+{else}
+ {$account.1.server_address_secondary}
+{/if}
+
+
+
+{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_primary)}
+ {$account.1.outbound_proxy_primary}:{$account.1.sip_port}
+{else}
+ {$account.1.outbound_proxy_primary}
+{/if}
+
+
+
+{if $account.1.sip_transport != 'dns srv' && isset($account.1.outbound_proxy_secondary)}
+ {$account.1.outbound_proxy_secondary}:{$account.1.sip_port}
+{else}
+ {$account.1.outbound_proxy_secondary}
+{/if}
+
+
+
+ {$account.1.user_id}
+
+
+
+ {$account.1.auth_id}
+
+
+
+ {$account.1.password}
+
+
+
+ {$account.1.display_name}
+
+
+
+ {$voicemail_number}
+
+
+
+
+ 0
+
+
+
+
+
+{if isset($grandstream_dns_mode)}
+ {$grandstream_dns_mode}
+{else}
+ 0
+{/if}
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{if isset($grandstream_nat_traversal)}
+ {$grandstream_nat_traversal}
+{else}
+ 0
+{/if}
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+{if isset($account.1.register_expires)}
+ {$account.1.register_expires}
+{else}
+ 2
+{/if}
+
+
+
+
+ 60
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 30
+
+
+
+
+ 3
+
+
+
+
+ 5060
+
+
+
+
+ 20
+
+
+
+
+
+ 50
+
+
+
+
+
+ 400
+
+
+
+
+{$tp=0}
+{if $sip_transport_1 == 'udp'}{$tp=0}{/if}
+{if $sip_transport_1 == 'tcp'}{$tp=1}{/if}
+{if $sip_transport_1 == 'tls'}{$tp=2}{/if}
+{if $sip_transport_1 == 'dns srv'}
+ {if isset($grandstream_dnssrv_transport)}
+ {if $grandstream_dnssrv_transport == 'udp'}{$tp=0}
+ {elseif $grandstream_dnssrv_transport == 'tls'}{$tp=2}
+ {else}{$tp=1}
+ {/if}
+ {else}{$tp=1}
+ {/if}
+{/if}
+ {$tp}
+
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+{if isset($subscribe_mwi)}
+ 1
+{else}
+ 0
+{/if}
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 2
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+
+ 1
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+ 100
+
+
+
+
+
+ 0
+
+
+
+
+ 180
+
+
+
+
+ 90
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+ 0
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 8
+
+
+
+
+ 18
+
+
+
+
+ 9
+
+
+
+
+ 98
+
+
+
+
+ 2
+
+
+
+
+ 123
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+ 0
+
+
+
+
+{if isset($grandstream_srtp)}
+ {$grandstream_srtp}
+{else}
+ 0
+{/if}
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+ 2
+
+
+
+
+ 2
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 97
+
+
+
+
+ 123
+
+
+
+
+ 101
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+
+ {$grandstream_dial_plan}
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 30
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+{if isset($grandstream_distinctive_ringtone_name_1)}
+ {$grandstream_distinctive_ringtone_name_1}
+{else}
+ ring1
+{/if}
+
+
+
+
+
+ {$grandstream_distinctive_ringtone_1}
+
+
+
+{if isset($grandstream_distinctive_ringtone_name_2)}
+ {$grandstream_distinctive_ringtone_name_2}
+{else}
+ ring2
+{/if}
+
+
+
+
+
+ {$grandstream_distinctive_ringtone_2}
+
+
+
+ {$grandstream_distinctive_ringtone_name_3}
+
+
+
+
+
+ {$grandstream_distinctive_ringtone_3}
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 60
+
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+
+{if isset($account.2.password)}
+ 1
+{else}
+ 0
+{/if}
+
+
+
+ {$account.2.display_name}
+
+
+
+{if $account.2.sip_transport != 'dns srv'}
+ {$account.2.server_address}:{$account.2.sip_port}
+{else}
+ {$account.2.server_address}
+{/if}
+
+
+
+{if $account.2.sip_transport != 'dns srv' && isset($account.2.server_address_secondary)}
+ {$account.2.server_address_secondary}:{$account.2.sip_port}
+{else}
+ {$account.2.server_address_secondary}
+{/if}
+
+
+
+{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_primary)}
+ {$account.2.outbound_proxy_primary}:{$account.2.sip_port}
+{else}
+ {$account.2.outbound_proxy_primary}
+{/if}
+
+
+
+{if $account.2.sip_transport != 'dns srv' && isset($account.2.outbound_proxy_secondary)}
+ {$account.2.outbound_proxy_secondary}:{$account.2.sip_port}
+{else}
+ {$account.2.outbound_proxy_secondary}
+{/if}
+
+
+
+ {$account.2.user_id}
+
+
+
+ {$account.2.auth_id}
+
+
+
+ {$account.2.password}
+
+
+
+ {$account.2.display_name}
+
+
+
+ {$voicemail_number}
+
+
+
+
+ 0
+
+
+
+
+
+{if isset($grandstream_dns_mode)}
+ {$grandstream_dns_mode}
+{else}
+ 0
+{/if}
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{if isset($grandstream_nat_traversal)}
+ {$grandstream_nat_traversal}
+{else}
+ 0
+{/if}
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+{if isset($account.2.register_expires)}
+ {$account.2.register_expires}
+{else}
+ 2
+{/if}
+
+
+
+
+ 60
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 30
+
+
+
+
+ 3
+
+
+
+
+ 5062
+
+
+
+
+ 20
+
+
+
+
+
+ 50
+
+
+
+
+
+ 400
+
+
+
+
+{$tp=0}
+{if $sip_transport_2 == 'udp'}{$tp=0}{/if}
+{if $sip_transport_2 == 'tcp'}{$tp=1}{/if}
+{if $sip_transport_2 == 'tls'}{$tp=2}{/if}
+{if $sip_transport_2 == 'dns srv'}
+ {if isset($grandstream_dnssrv_transport)}
+ {if $grandstream_dnssrv_transport == 'udp'}{$tp=0}
+ {elseif $grandstream_dnssrv_transport == 'tls'}{$tp=2}
+ {else}{$tp=1}
+ {/if}
+ {else}{$tp=1}
+ {/if}
+{/if}
+ {$tp}
+
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+{if isset($subscribe_mwi)}
+ 1
+{else}
+ 0
+{/if}
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 2
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+ 1
+
+
+
+
+
+ 1
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+ 100
+
+
+
+
+
+ 0
+
+
+
+
+ 180
+
+
+
+
+ 90
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+ 0
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 8
+
+
+
+
+ 18
+
+
+
+
+ 9
+
+
+
+
+ 98
+
+
+
+
+ 2
+
+
+
+
+ 123
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+ 0
+
+
+
+
+
+{if isset($grandstream_srtp)}
+ {$grandstream_srtp}
+{else}
+ 0
+{/if}
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+ 2
+
+
+
+
+ 2
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 97
+
+
+
+
+ 123
+
+
+
+
+ 101
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+
+ {$grandstream_dial_plan}
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 30
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 60
+
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+
+ 5004
+
+
+
+
+ 200
+
+
+
+
+ 1
+
+
+
+
+ 20
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{if isset($ntp_server_primary)}
+ {$ntp_server_primary}
+{else}
+ pool.ntp.org
+{/if}
+
+
+
+
+
+
+
+
+ 1440
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{if isset($grandstream_timezone) }
+ {$grandstream_timezone}
+{elseif isset($grandstream_gxp_time_zone) }
+ {$grandstream_gxp_time_zone}
+{else}
+ auto
+{/if}
+
+
+
+ {if isset($grandstream_dhcp_time_zone)}{$grandstream_dhcp_time_zone}{else}0{/if}
+
+
+
+
+ MTZ+6MDT+5,M4.1.0,M11.1.0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+ auto
+
+
+
+
+
+
+
+
+
+
+ f1=350,f2=440;
+
+
+
+
+ f1=350,f2=440;
+
+
+
+
+ f1=350,f2=440,c=100/100-100/100-100/100--1/0;
+
+
+
+
+ f1=440,f2=480,c=200/400;
+
+
+
+
+ f1=440,f2=440,c=25/525;
+
+
+
+
+ 0
+
+
+
+
+ f1=480,f2=620,c=50/50;
+
+
+
+
+ phone-{$user_id_1}
+
+
+
+ Grandstream WP810
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 26
+
+
+
+
+ 46
+
+
+
+
+
+
+
+
+
+
+
+
+{if isset($admin_password)}
+ {$admin_password}
+{else}
+ {$mac|replace:'-':''}
+{/if}
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+{if isset($grandstream_dhcp_option_override)}
+ {$grandstream_dhcp_option_override}
+{else}
+ 1
+{/if}
+
+
+
+
+
+ 0
+
+
+
+
+
+{if isset($grandstream_dhcp_option_override_sip_server)}
+ {$grandstream_dhcp_option_override_sip_server}
+{else}
+ 0
+{/if}
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
+ 1440
+
+
+
+
+ 0
+
+
+
+ 1
+
+
+
+ 0
+
+
+
+ 1
+
+
+
+
+ 0
+
+
+
+
+
+ 2
+
+
+
+{if $grandstream_config_server_path=="none"}
+
+{elseif isset($grandstream_config_server_path)}
+ {$grandstream_config_server_path}
+{elseif isset($domain_name)}
+ {$domain_name}{$project_path}/app/provision
+{/if}
+
+
+
+ {$http_auth_username}
+
+
+
+ {$http_auth_password}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+{if isset($grandstream_firmware_upgrade_protocol) }
+ {$grandstream_firmware_upgrade_protocol}
+{else}
+ 2
+{/if}
+
+
+
+{if isset($grandstream_firmware_path) && isset($firmware_version)}
+ {$grandstream_firmware_path}/{$firmware_version}
+{elseif isset($grandstream_firmware_path)}
+ {$grandstream_firmware_path}
+{else}
+ {$domain_name}{$project_path}/app/provision/resources/firmware/
+{/if}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+ {$grandstream_syslog_server}
+
+
+
+
+{if isset($grandstream_syslog_level)}
+ {$grandstream_syslog_level}
+{else}
+ 0
+{/if}
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 30
+
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+ 3
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+
+ 1
+
+
+
+ https://acs.gdms.cloud
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+ 86400
+
+
+
+ {$mac|replace:'-':''|upper}
+
+
+
+ {$mac|replace:'-':''|upper}
+
+
+
+ 7547
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0
+
+
+
+
+ 1
+
+
+
+
+ 80
+
+
+
+
+ 443
+
+
+
+ 0
+
+
+
+ 10
+
+
+
+ 5
+
+
+
+
+ 11
+
+
+
+
+ 99
+
+
+
+
+
+ 0
+
+
+
+
+
+
+ 0
+
+
+
+
+ 0
+
+
+
+ 0
+
+
+
+
+
+
+ {$grandstream_phonebook_download}
+
+
+
+ {$http_auth_username}
+
+
+
+ {$http_auth_password}
+
+
+
+
+
+{if isset($grandstream_phonebook_xml_server_path)}
+ {$grandstream_phonebook_xml_server_path}/{$mac}
+{else}
+
+{/if}
+
+
+
+
+{if isset($grandstream_phonebook_download_interval)}
+ {$grandstream_phonebook_download_interval}
+{else}
+ 0
+{/if}
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/templates/provision/grandstream/wp820/{$mac}.xml b/resources/templates/provision/grandstream/wp820/{$mac}.xml
index 283b296d9a..6b3705d877 100644
--- a/resources/templates/provision/grandstream/wp820/{$mac}.xml
+++ b/resources/templates/provision/grandstream/wp820/{$mac}.xml
@@ -199,7 +199,15 @@
{if $sip_transport_1 == 'udp'}{$tp=0}{/if}
{if $sip_transport_1 == 'tcp'}{$tp=1}{/if}
{if $sip_transport_1 == 'tls'}{$tp=2}{/if}
-{if $sip_transport_1 == 'dns srv'}{$tp=1}{/if}
+{if $sip_transport_1 == 'dns srv'}
+ {if isset($grandstream_dnssrv_transport)}
+ {if $grandstream_dnssrv_transport == 'udp'}{$tp=0}
+ {elseif $grandstream_dnssrv_transport == 'tls'}{$tp=2}
+ {else}{$tp=1}
+ {/if}
+ {else}{$tp=1}
+ {/if}
+{/if}
{$tp}
@@ -455,6 +463,10 @@
+
+
+0
+
@@ -560,13 +572,21 @@
+{if isset($grandstream_distinctive_ringtone_name_1)}
{$grandstream_distinctive_ringtone_name_1}
+{else}
+ring1
+{/if}
+{if isset($grandstream_distinctive_ringtone_name_2)}
{$grandstream_distinctive_ringtone_name_2}
+{else}
+ring2
+{/if}
@@ -832,7 +852,15 @@
{if $sip_transport_2 == 'udp'}{$tp=0}{/if}
{if $sip_transport_2 == 'tcp'}{$tp=1}{/if}
{if $sip_transport_2 == 'tls'}{$tp=2}{/if}
-{if $sip_transport_2 == 'dns srv'}{$tp=1}{/if}
+{if $sip_transport_2 == 'dns srv'}
+ {if isset($grandstream_dnssrv_transport)}
+ {if $grandstream_dnssrv_transport == 'udp'}{$tp=0}
+ {elseif $grandstream_dnssrv_transport == 'tls'}{$tp=2}
+ {else}{$tp=1}
+ {/if}
+ {else}{$tp=1}
+ {/if}
+{/if}
{$tp}
@@ -1001,17 +1029,29 @@
-0
+{if isset($grandstream_senddtmf_inaudio) }
+ {$grandstream_senddtmf_inaudio}
+{else}
+ 0
+{/if}
-1
+{if isset($grandstream_senddtmf_rtp) }
+ {$grandstream_senddtmf_rtp}
+{else}
+ 1
+{/if}
-0
+{if isset($grandstream_senddtmf_sipinfo) }
+ {$grandstream_senddtmf_sipinfo}
+{else}
+ 0
+{/if}
@@ -1344,6 +1384,14 @@
+
+
+1
+
+
+
+0
+
@@ -1477,7 +1525,11 @@
+{if isset($grandstream_ptt_enable)}
+{$grandstream_ptt_enable}
+{else}
0
+{/if}
@@ -1492,7 +1544,7 @@
-0
+1
@@ -1501,7 +1553,7 @@
-channel(*)
+{$account.1.display_name}
@@ -1738,6 +1790,18 @@
+
+
+
+
+
+
+
+{if isset($grandstream_wallpaper_url)}
+1
+{$grandstream_wallpaper_url}
+{/if}
+
@@ -2013,7 +2077,11 @@
+{if isset($grandstream_date_display_format)}
+{$grandstream_date_display_format}
+{else}
2
+{/if}
@@ -2184,11 +2252,11 @@
-0
+1
-
+https://acs.gdms.cloud
@@ -2208,11 +2276,11 @@
-
+{$mac|replace:'-':''|upper}
-
+{$mac|replace:'-':''|upper}
@@ -2236,14 +2304,20 @@
+{if isset($grandstream_firmware_upgrade_protocol) }
+{$grandstream_firmware_upgrade_protocol}
+{else}
2
+{/if}
-{if isset($grandstream_firmware_path)}
+{if isset($grandstream_firmware_path) && isset($firmware_version)}
+{$grandstream_firmware_path}/{$firmware_version}
+{elseif isset($grandstream_firmware_path)}
{$grandstream_firmware_path}
{else}
-{$domain_name}{$project_path}/app/provision
+{$domain_name}{$project_path}/app/provision/resources/firmware/
{/if}
@@ -2321,7 +2395,7 @@
-1
+0