Added Redirect Mode account setting that tells if call redirect requests

(3xx responses) can be followed automatically or if confirmation
  needs to be asked
This commit is contained in:
Juha Heinanen
2023-07-02 15:20:06 +03:00
parent 29708ea58f
commit 2394f3fba1
9 changed files with 125 additions and 3 deletions
@@ -27,6 +27,7 @@ class Account(val accp: Long) {
var rtcpMux = Api.account_rtcp_mux(accp)
var dtmfMode = Api.account_dtmfmode(accp)
var answerMode = Api.account_answermode(accp)
var autoRedirect = Api.account_sip_autoredirect(accp)
var vmUri = Api.account_vm_uri(accp)
var vmNew = 0
var vmOld = 0
@@ -132,6 +133,9 @@ class Account(val accp: Long) {
if (answerMode == Api.ANSWERMODE_AUTO)
res += ";answermode=auto"
if (autoRedirect)
res += ";sip_autoredirect=yes"
res += ";ptime=20;regint=${regint};regq=0.5;pubint=0;call_transfer=yes;100rel=no"
var extra = ""