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:
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user