feat(sip): make rtp_timeout_hold configurable in Web UI and default to 0 (unlimited hold)
This commit is contained in:
1 parent
767fea46b7
commit
c1805c9076
5 files changed
+30
-14
No files matched your search
@@ -4152,6 +4152,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
rtp_checksums: Number(document.getElementById('sip-rtp-checksums')?.value || 1),
|
||||
rtp_keepalive: Number(document.getElementById('sip-rtp-keepalive')?.value || 15),
|
||||
rtp_timeout: Number(document.getElementById('sip-rtp-timeout')?.value || 30),
|
||||
rtp_timeout_hold: Number(document.getElementById('sip-rtp-timeout-hold')?.value || 0),
|
||||
allow_anonymous_sip: Number(document.getElementById('sip-allow-anonymous')?.value || 0),
|
||||
local_networks: localNets
|
||||
};
|
||||
@@ -4613,6 +4614,11 @@ function renderSipSettings() {
|
||||
rtpTimeoutEl.value = (s.rtp_timeout !== undefined && s.rtp_timeout !== null) ? s.rtp_timeout : 30;
|
||||
}
|
||||
|
||||
const rtpHoldTimeoutEl = document.getElementById('sip-rtp-timeout-hold');
|
||||
if (rtpHoldTimeoutEl && document.activeElement !== rtpHoldTimeoutEl) {
|
||||
rtpHoldTimeoutEl.value = (s.rtp_timeout_hold !== undefined && s.rtp_timeout_hold !== null) ? s.rtp_timeout_hold : 0;
|
||||
}
|
||||
|
||||
const allowAnonEl = document.getElementById('sip-allow-anonymous');
|
||||
if (allowAnonEl) {
|
||||
allowAnonEl.value = (s.allow_anonymous_sip !== undefined && s.allow_anonymous_sip !== null) ? String(s.allow_anonymous_sip) : '0';
|
||||
|
||||
Reference in new issue
Block a user