mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add contact-params (#6545)
Adding contact params for control over this setting.
This commit is contained in:
@@ -308,13 +308,16 @@ function save_gateway_xml() {
|
||||
break;
|
||||
case "tls":
|
||||
$xml .= " <param name=\"register-transport\" value=\"tls\"/>\n";
|
||||
$xml .= " <param name=\"contact-params\" value=\"transport=tls\"/>\n";
|
||||
break;
|
||||
default:
|
||||
$xml .= " <param name=\"register-transport\" value=\"" . $row['register_transport'] . "\"/>\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (strlen($row['contact_params']) > 0) {
|
||||
$xml .= " <param name=\"contact-params\" value=\"" . $row['contact_params'] . "\"/>\n";
|
||||
}
|
||||
|
||||
if (strlen($row['retry_seconds']) > 0) {
|
||||
$xml .= " <param name=\"retry-seconds\" value=\"" . $row['retry_seconds'] . "\"/>\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user