There was an illogical if/else statement that the "else" condition would always set a null value, so it didn't really matter. Re-wrote it to properly filter if the transport is set to dns srv and not affix the SIP Port to the server address.
Fix Config URLs for unconfigured Grandstream Phones
Fix config URL so that the phones don't get an invalid URL when $domain_name is unset. They would previously receive /app/provision with no domain/ip included, which makes the phone unable to provision again once they have been added to the Devices page without manually re-setting the config URL or factory defaulting the device.
Fix config URL so that the phones don't get an invalid URL when $domain_name is unset. They would previously receive `/app/provision` with no domain/ip included, which makes the phone unable to provision again once they have been added to the Devices page without manually re-setting the config URL or factory defaulting the device.
The alternative solution is that the PHP code could always ensure that the $domain_name variable is set even if the device doesn't exist. My suggestion is to see if it can be set to the same domain/IP as the original provision request from this unconfigured device
New variables for the DP750 to allow the following settings:
$grandstream_repeater_mode_enable
(Enables or disables repeater mode on DP750 base)
$grandstream_hanging_group_mode
(Allows users to set hanging group mode (e.g. ring handsets at the same time, sequentially, etc.)
$grandstream_handset_X_line_Y_enable
(Allows setting of handset to line assignment)
* 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
* Update Grandstream provisioning
* Add Vtech
* Create app_config.php
fix typo
* Update app_config.php
remove newline at end as it can break php
* Update app_config.php
remove newline at end as it can break php
* Create app_config.php
remove newline at end.
* Update app_config.php
remove trailing newline
* Create device_edit.php
Add both http and https
* Create app_config.php
remove newline
* Add gxp16xx and fix typos