From 62641dd287ce557bdc1ea38ecc5f0e062b8ad8af Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 18 Aug 2010 14:21:51 +0200 Subject: [PATCH] init last_rseq with 0 - fixes a bug causing to re-transmit a provisional reply for ever if no PRACK is used. --- core/sip/sip_trans.cpp | 3 ++- core/sip/sip_trans.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/sip/sip_trans.cpp b/core/sip/sip_trans.cpp index c66d44c5..3d25c332 100644 --- a/core/sip/sip_trans.cpp +++ b/core/sip/sip_trans.cpp @@ -54,7 +54,8 @@ inline timer** fetch_timer(unsigned int timer_type, timer** base) sip_trans::sip_trans() : msg(0), retr_buf(0), - retr_len(0) + retr_len(0), + last_rseq(0) { memset(timers,0,SIP_TRANS_TIMERS*sizeof(void*)); } diff --git a/core/sip/sip_trans.h b/core/sip/sip_trans.h index fa1b91f7..d322bb42 100644 --- a/core/sip/sip_trans.h +++ b/core/sip/sip_trans.h @@ -143,7 +143,7 @@ class sip_trans int retr_len; /** used by UAS only; keeps RSeq of last sent reliable 1xx */ - unsigned last_rseq; + unsigned int last_rseq; /** Destination for retransmissions */ sockaddr_storage retr_addr;