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:
parent
e86ec20547
commit
2032e4937e
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue