Support sip_port value of 0

Change empty to !isset to account for sip_port that can be set to 0.
This commit is contained in:
FusionPBX 2024-09-10 13:40:44 -06:00 committed by GitHub
parent e86ec20547
commit 2032e4937e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -804,7 +804,7 @@
//set defaults
if (empty($register_expires)) { $register_expires = "120"; }
if (empty($sip_transport)) { $sip_transport = "tcp"; }
if (empty($sip_port)) {
if (!isset($sip_port)) {
if ($line_number == "" || $line_number == "1") {
$sip_port = "5060";
}