Added settings for the SIP T1 and T4 timers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5533 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
55f287abd5
commit
a5bac6672b
|
@ -124,6 +124,7 @@
|
||||||
;info=enable
|
;info=enable
|
||||||
|
|
||||||
; fork: bool: Follow first forked 2xx answer on early dialogs
|
; fork: bool: Follow first forked 2xx answer on early dialogs
|
||||||
|
; This parameter is applied on reload
|
||||||
;fork=enable
|
;fork=enable
|
||||||
|
|
||||||
; progress: bool: Send an "183 Session Progress" just after successfull routing
|
; progress: bool: Send an "183 Session Progress" just after successfull routing
|
||||||
|
@ -141,8 +142,22 @@
|
||||||
|
|
||||||
; lazy100: bool: Do not generate an initial "100 Trying" for non-INVITE
|
; lazy100: bool: Do not generate an initial "100 Trying" for non-INVITE
|
||||||
; transactions unless a retransmission arrives before having a final answer
|
; transactions unless a retransmission arrives before having a final answer
|
||||||
|
; This parameter is applied on reload
|
||||||
;lazy100=no
|
;lazy100=no
|
||||||
|
|
||||||
|
; t1: int: Value of SIP T1 timer in milliseconds
|
||||||
|
; This is the RTT Estimate and several other SIP timers are derived from it
|
||||||
|
; Valid values are between 100 and 5000, outside range uses the default of 500
|
||||||
|
; This parameter is applied on reload
|
||||||
|
;t1=500
|
||||||
|
|
||||||
|
; t4: int: Value of SIP T4 timer in milliseconds
|
||||||
|
; This is the maximum message lifetime, several other SIP timers are derived from it
|
||||||
|
; It is enforced to be at least 3 * T1
|
||||||
|
; Valid values are between 1000 and 25000, outside range uses the default of 5000
|
||||||
|
; This parameter is applied on reload
|
||||||
|
;t4=5000
|
||||||
|
|
||||||
; check_allow_info: bool: Check 'Allow' header in INVITE and OK for INFO support
|
; check_allow_info: bool: Check 'Allow' header in INVITE and OK for INFO support
|
||||||
; If enabled and INFO is not supported the 'info' dtmf method will be disabled
|
; If enabled and INFO is not supported the 'info' dtmf method will be disabled
|
||||||
; This parameter can be overridden from routing by 'ocheck_allow_info' for outgoing call leg
|
; This parameter can be overridden from routing by 'ocheck_allow_info' for outgoing call leg
|
||||||
|
@ -217,6 +232,7 @@
|
||||||
;preventive_bye=enable
|
;preventive_bye=enable
|
||||||
|
|
||||||
; auth_foreign: bool: Attempt to authenticate nonces not generated locally
|
; auth_foreign: bool: Attempt to authenticate nonces not generated locally
|
||||||
|
; This parameter is applied on reload
|
||||||
;auth_foreign=disable
|
;auth_foreign=disable
|
||||||
|
|
||||||
; body_encoding: keyword: Encoding used for received generic binary bodies
|
; body_encoding: keyword: Encoding used for received generic binary bodies
|
||||||
|
|
|
@ -3983,6 +3983,12 @@ void YateSIPEngine::initialize(NamedList* params)
|
||||||
m_reqTransCount = params->getIntValue("sip_req_trans_count",4,2,10,false);
|
m_reqTransCount = params->getIntValue("sip_req_trans_count",4,2,10,false);
|
||||||
m_rspTransCount = params->getIntValue("sip_rsp_trans_count",5,2,10,false);
|
m_rspTransCount = params->getIntValue("sip_rsp_trans_count",5,2,10,false);
|
||||||
m_autoChangeParty = params->getBoolValue("autochangeparty");
|
m_autoChangeParty = params->getBoolValue("autochangeparty");
|
||||||
|
int64_t t1 = params->getIntValue("t1",500,100,5000,false);
|
||||||
|
int64_t t2 = params->getIntValue("t4",5000,1000,25000,false);
|
||||||
|
if (t2 < 3 * t1)
|
||||||
|
t2 = 3 * t1;
|
||||||
|
m_t1 = 1000 * t1;
|
||||||
|
m_t4 = 1000 * t2;
|
||||||
DDebug(this,DebugAll,"Initialized sip_req_trans_count=%d sip_rsp_trans_count=%d",
|
DDebug(this,DebugAll,"Initialized sip_req_trans_count=%d sip_rsp_trans_count=%d",
|
||||||
m_reqTransCount,m_rspTransCount);
|
m_reqTransCount,m_rspTransCount);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue