Wired up configurable firmware versions for Grandstream Devices (#3284)

* Added the ability to pick the SIP account for the first two slots on each handset

* Revert to clean base

* Configurable firmware versions for Grandstream Devices

* Cleaned up duplicate P codes in gxv3504 prov, and spacing elsewhere

Updated or added configurable firmware versions to the remaining Grandstream configs

* Documented how to use the firmware version feature

* Formatting fix in Readme
This commit is contained in:
danry25
2018-08-26 12:04:13 -07:00
committed by FusionPBX
parent 575429e3c8
commit 27ed84dfe6
40 changed files with 220 additions and 114 deletions

View File

@@ -0,0 +1,18 @@
Device Specific Firmware Versions
======================
Select Grandstream phones (particularly the GXP2140 and similar) need firmware upgrades in a certain order.
Grandstream also offers beta firmware quite often, which you may want to test on only some devices.
We've attempted to make the process of changing firmware easier, by serving a phone with the firmware specified in a field called
Firmware under Accounts => Devices then click on the MAC address of the relevant device, filling in said field.
To use configurable firmware locations, enable device_firmware for the superadmin group under Advanced => Group Manager, set the
URL for grandstream_firmware_path under Advanced => Default Variables and set Enabled to True for grandstream_firmware_path.
We would suggest creating a folder called firmware on the webserver that you host the firmware on, setting grandstream_firmware_path
to the full URL (excluding the protocol - leave off the `http://`) for example `mydomain.com/firmware` or `mydomain.com/firmware/grandstream`
if you are hosting multiple different vendors firmware images. When a device goes to hit this server, it will attempt to load
`<grandstream_firmware_path>/<device model>/<firmware version>/<firmware file>`, or `mydomain.com/firmware/gxp2140/1.0.9.69/gxp2140fw.bin`
in our case, assuming we have a Grandstream GXP2140 phone and we are feeding it firmware version 1.0.9.69. For Grandstream phones,
the firmware filename is relatively static, and the files Grandstream distributes are generally named correctly for their phones
to download.

View File

@@ -67,7 +67,13 @@
<P212>2</P212>
<!-- Firmware Server Path -->
<P192>{domain_name}/firmware/gs</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/dp715/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/dp715</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path -->
<P237>{$domain_name}{$project_path}/app/provision</P237>

View File

@@ -29,12 +29,14 @@
<P212>1</P212>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/dp715/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/dp715</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
<!-- XML Config File Password -->

View File

@@ -2571,8 +2571,10 @@
<!-- Firmware Server Path -->
<!-- String: serveraddress -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/dp750/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/dp750</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -921,8 +921,10 @@
<!-- Firmware Server Path -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp110x/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp110x</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -795,8 +795,10 @@
<!-- Firmware Server Path -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp116x/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp116x</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -1165,13 +1165,15 @@
<P212>2</P212>
<!-- Firmware Server Path -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp140x/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp140x</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path -->
<!-- String -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
@@ -1313,7 +1315,7 @@
<!-- This is a string of up to 256 characters that should contain a path to the XML file. It MUST be in the host/path format. -->
<!-- For example: directory.grandstream.com/engineering -->
<!-- String -->
{if isset($contact_grandstream)}
<P331>{$grandstream_phonebook_xml_server_path}{$mac}/</P331>
{elseif isset($grandstream_phonebook_xml_server_path)}
@@ -1321,7 +1323,7 @@
{else}
<P331></P331>
{/if}
<!-- Phonebook Download Interval (in minutes) -->
<!-- Valid value range is 5-720. Default is 0 for disabled -->
<!-- Number: 0, 5-720; -->

View File

@@ -1165,13 +1165,15 @@
<P212>2</P212>
<!-- Firmware Server Path -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp140x/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp140x</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path -->
<!-- String -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
@@ -1313,7 +1315,7 @@
<!-- This is a string of up to 256 characters that should contain a path to the XML file. It MUST be in the host/path format. -->
<!-- For example: directory.grandstream.com/engineering -->
<!-- String -->
{if isset($contact_grandstream)}
<P331>{$grandstream_phonebook_xml_server_path}{$mac}/</P331>
{elseif isset($grandstream_phonebook_xml_server_path)}
@@ -1321,7 +1323,7 @@
{else}
<P331></P331>
{/if}
<!-- Phonebook Download Interval (in minutes) -->
<!-- Valid value range is 5-720. Default is 0 for disabled -->
<!-- Number: 0, 5-720; -->

View File

@@ -1550,8 +1550,10 @@
<!-- Firmware Server Path -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp1450/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp1450</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -1357,8 +1357,10 @@
<!-- Mandatory -->
<P212>2</P212>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp1450/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp1450</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -1199,7 +1199,7 @@
<!-- Name -->
<!-- String -->
<P507>{$display_name_3}</P507>
<!-- Voice Mail UserID -->
<!-- String -->
<P526>*97</P526>
@@ -2045,8 +2045,10 @@
<P6767>2</P6767>
<!-- Firmware Server Path -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp16xx/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp16xx</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
@@ -3048,4 +3050,3 @@
<P2986></P2986>
</config>
</gs_provision>

View File

@@ -6057,9 +6057,11 @@
<!-- # Firmware Server Path -->
<!-- # String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp17xx/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp17xx</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -72,8 +72,10 @@
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp20xx/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp20xx</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -1904,13 +1904,15 @@
<P212>2</P212>
<!-- Firmware Server Path -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp2124/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp2124</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path -->
<!-- String -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
@@ -2052,7 +2054,7 @@
<!-- This is a string of up to 256 characters that should contain a path to the XML file. It MUST be in the host/path format. -->
<!-- For example: directory.grandstream.com/engineering -->
<!-- String -->
{if isset($contact_grandstream)}
<P331>{$grandstream_phonebook_xml_server_path}{$mac}/</P331>
{elseif isset($grandstream_phonebook_xml_server_path)}

View File

@@ -4870,8 +4870,10 @@
<!-- Firmware Server Path Default fm.grandstream.com/gs -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp2130/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp2130</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -4870,8 +4870,10 @@
<!-- Firmware Server Path Default fm.grandstream.com/gs -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp2135/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp2135</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -4870,8 +4870,10 @@
<!-- Firmware Server Path Default fm.grandstream.com/gs -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp2140/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp2140</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -4870,8 +4870,10 @@
<!-- Firmware Server Path Default fm.grandstream.com/gs -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp2160/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp2160</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -5514,8 +5514,10 @@
<!-- # Firmware Server Path -->
<!-- # String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp2170/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp2170</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -2695,7 +2695,13 @@
<!-- Firmware Server Path -->
<!-- String -->
<!--<P192>firmware.grandstream.com</P192>-->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp21xx/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp21xx</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path -->
<!-- String -->
<P237>{$domain_name}{$project_path}/app/provision</P237>

View File

@@ -34,9 +34,10 @@
<!-- Firmware Server Path -->
<!-- String -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp21xx/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp21xx</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -3213,9 +3213,11 @@ Account 5 Codec Settings
<P212>2</P212>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp2200/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp2200</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -3213,9 +3213,10 @@ Account 5 Codec Settings
<P212>2</P212>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxp3240/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxp3240</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -65,13 +65,14 @@
<!-- Firmware Upgrade. 0 - TFTP Upgrade, 1 - HTTP Upgrade. -->
<P212>1</P212>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxv300x/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxv300x</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
<!-- Firmware File Prefix -->

View File

@@ -1372,9 +1372,10 @@
<P1361>{$http_auth_password}</P1361>
<!-- Firmware Server Path, MaxLength 128 -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxv3140/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxv3140</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -1255,12 +1255,13 @@
<P212>2</P212>
<!-- Firmware Server Path, MaxLength 128 -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxv3175/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxv3175</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
{/if}
<!-- Config Server Path, MaxLength 128 -->
<P237>{$domain_name}{$project_path}/app/provision</P237>

View File

@@ -736,7 +736,7 @@
<P7070>1</P7070>
<!-- Lock KeyPad UPdate. 0 - No, 1 - Yes -->
<P88>0</P88>
<!-- XML Config File Password -->
<!-- String; between ascii values 33 and 126 -->
<!-- Mandatory -->
@@ -749,17 +749,19 @@
<!-- HTTP/HTTPS Password -->
<!-- String; between ascii values 33 and 126 -->
<P1361>{$http_auth_password}</P1361>
<!-- UPgrade Via: (0 - TFTP,1 - HTTP and 2 - HTTPS) -->
<!-- Upgrade Via: (0 - TFTP,1 - HTTP and 2 - HTTPS) -->
<P212>2</P212>
<!-- Firmware Server Path, MaxLength 128 -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxv3175v2/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxv3175v2</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path, MaxLength 128 -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
<!-- Firmware File Prefix, MaxLength 128 -->

View File

@@ -1541,7 +1541,7 @@
<!-- Check SIP User ID for Incoming INVITE. 0 - No, 1 - Yes. Default value is 0 -->
<!-- Number: 0, 1 -->
<P549>0</P549>
<!-- Authenticate Incoming INVITE. 0 - No, 1 - Yes. Default value is 0 -->
<!-- Number: 0, 1 -->
<P2546>0 </P2546>
@@ -4758,8 +4758,10 @@
<P6767>1</P6767>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxv3240/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxv3240</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -3218,8 +3218,10 @@ Account 5 Codec Settings
<!-- Config Server Path -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxv3275/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxv3275</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -567,19 +567,15 @@
<P212>2</P212>
<!-- Firmware Server Path -->
<P192>{domain_name}/firmware/gs</P192>
<!-- Config Server Path -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxv3504/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxv3504</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
<!-- XML Config File Password -->
@@ -1358,7 +1354,3 @@
</config>
</gs_provision>

View File

@@ -12,6 +12,14 @@
<!-- Firmware Upgrade -->
<!-- Firmware Upgrade and Privisioning. 0 - TFTP Upgrade, 1 - HTTP Upgrade, 2 - HTTPS Upgrade., Number: 0 to 2. Mandatory -->
<P212>1</P212>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxw4004/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxw4004</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path , String: serveraddress -->
<P237>{$domain_name}{$project_path}/app/provision</P237>

View File

@@ -12,6 +12,14 @@
<!-- Firmware Upgrade -->
<!-- Firmware Upgrade and Privisioning. 0 - TFTP Upgrade, 1 - HTTP Upgrade, 2 - HTTPS Upgrade., Number: 0 to 2. Mandatory -->
<P212>1</P212>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxw4008/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxw4008</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path , String: serveraddress -->
<P237>{$domain_name}{$project_path}/app/provision</P237>

View File

@@ -49,8 +49,11 @@
<!-- Number: 0 to 2 -->
<!-- Mandatory -->
<P212>2</P212>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxw40xx/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxw40xx</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -30,8 +30,11 @@
<!-- Firmware Upgrade -->
<!-- Firmware Upgrade. 0 - TFTP Upgrade, 1 - HTTP Upgrade. -->
<P212>1</P212>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxw410x/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxw410x</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -168,8 +168,11 @@
<!-- Mandatory -->
<P212>2</P212>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/gxw40xx/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/gxw40xx</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -39,11 +39,14 @@
<!-- Firmware Upgrade -->
<!-- Firmware Upgrade and Privisioning. 0 - TFTP Upgrade, 1 - HTTP Upgrade, 2 - HTTPS Upgrade. -->
<P212>2</P212>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/ht502/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/ht502</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}
<!-- Config Server Path. Server address -->
<P237>{$domain_name}{$project_path}/app/provision</P237>
<!-- XML Config File Password. Max Length: 40 characters; between ascii values 33 and 126 -->

View File

@@ -136,8 +136,11 @@
<!-- Mandatory -->
<P212>2</P212>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/ht503/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/ht503</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -61,9 +61,10 @@
<!-- Firmware Server Path -->
<!-- Server address -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/ht701/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/ht701</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -70,8 +70,12 @@
<!-- Mandatory -->
<P212>2</P212>
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
<!-- Firmware Server Path -->
<!-- Server address -->
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/ht702/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/ht702</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}

View File

@@ -68,8 +68,10 @@
<P212>2</P212>
<!-- Firmware Server Path -->
{if isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}</P192>
{if isset($grandstream_firmware_path) && isset($firmware_version)}
<P192>{$grandstream_firmware_path}/ht704/{$firmware_version}</P192>
{elseif isset($grandstream_firmware_path)}
<P192>{$grandstream_firmware_path}/ht704</P192>
{else}
<P192>{$domain_name}{$project_path}/app/provision</P192>
{/if}