Module: sems
Branch: master
Commit: 62641dd287ce557bdc1ea38ecc5f0e062b8ad8af
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=62641dd287ce557bdc1ea38ecc5f0e062b8ad8af

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Wed Aug 18 14:21:51 2010 +0200

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 c66d44c..3d25c33 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 fa1b91f..d322bb4 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;

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to