Double the timeout period before using it. Decreased retransmission counters default values to keep the same overall timeout.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4559 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-08-22 15:16:26 +00:00
parent 354d235f3a
commit 5845857da0
3 changed files with 7 additions and 7 deletions

View File

@ -135,8 +135,8 @@
; when retransmission is required (e.g. on non reliable transports)
; This parameter is applied on reload
; Minimum allowed value is 2, maximum allowed value is 10
; Defaults to 5 if missing, invalid or out of bounds
;sip_req_trans_count=5
; Defaults to 4 if missing, invalid or out of bounds
;sip_req_trans_count=4
; sip_rsp_trans_count: integer: The number of times to transmit a final response
; to a sip request when retransmission is required
@ -144,8 +144,8 @@
; transports or 2xx responses over reliable transports
; This parameter is applied on reload
; Minimum allowed value is 2, maximum allowed value is 10
; Defaults to 6 if missing, invalid or out of bounds
;sip_rsp_trans_count=6
; Defaults to 5 if missing, invalid or out of bounds
;sip_rsp_trans_count=5
; printmsg: boolean: Print SIP messages to output
; This parameter is applied on reload

View File

@ -266,8 +266,8 @@ SIPEvent* SIPTransaction::getEvent(bool pendingOnly)
int timeout = -1;
if (m_timeout && (Time::now() >= m_timeout)) {
timeout = --m_timeouts;
m_timeout = (m_timeouts) ? Time::now() + m_delay : 0;
m_delay *= 2; // exponential back-off
m_timeout = (m_timeouts) ? Time::now() + m_delay : 0;
DDebug(getEngine(),DebugAll,"SIPTransaction fired timer #%d [%p]",timeout,this);
}

View File

@ -3437,8 +3437,8 @@ void YateSIPEngine::initialize(NamedList* params)
NamedList dummy("");
if (!params)
params = &dummy;
m_reqTransCount = checkIntValue(*params,"sip_req_trans_count",5,2,10);
m_rspTransCount = checkIntValue(*params,"sip_rsp_trans_count",6,2,10);
m_reqTransCount = checkIntValue(*params,"sip_req_trans_count",4,2,10);
m_rspTransCount = checkIntValue(*params,"sip_rsp_trans_count",5,2,10);
DDebug(this,DebugAll,"Initialized sip_req_trans_count=%d sip_rsp_trans_count=%d",
m_reqTransCount,m_rspTransCount);
}