Module: sems
Branch: rco/forking
Commit: 2855ad92d8577ecf8324ce570d6c47997970d1c5
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=2855ad92d8577ecf8324ce570d6c47997970d1c5

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Wed Oct  6 15:57:38 2010 +0200

added: comments concerning 2xx-ACK and non-2xx-ACK

---

 core/sip/trans_layer.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/core/sip/trans_layer.cpp b/core/sip/trans_layer.cpp
index 07fcc80..fbb2602 100644
--- a/core/sip/trans_layer.cpp
+++ b/core/sip/trans_layer.cpp
@@ -1271,7 +1271,7 @@ int _trans_layer::update_uac_reply(trans_bucket* bucket, 
sip_trans* t, sip_msg*
            switch(t->state){
                
            case TS_CALLING:
-           case TS_PROCEEDING:
+           case TS_PROCEEDING: // first 2xx reply
 
                // TODO:
                //  we should take care of 200 ACK re-transmissions
@@ -1299,7 +1299,7 @@ int _trans_layer::update_uac_reply(trans_bucket* bucket, 
sip_trans* t, sip_msg*
                
                goto pass_reply;
                
-           case TS_TERMINATED_200:
+           case TS_TERMINATED_200: // subsequent 2xx reply (no ACK sent)
                
                if( (to_tag.len != t->to_tag.len) ||
                    (memcmp(to_tag.s,t->to_tag.s,to_tag.len) != 0) ){
@@ -1499,7 +1499,7 @@ int _trans_layer::update_uas_request(trans_bucket* 
bucket, sip_trans* t, sip_msg
        t->clear_timer(STIMER_H);
         return t->state;
            
-    case TS_COMPLETED:
+    case TS_COMPLETED: // non-2xx-ACK
        t->state = TS_CONFIRMED;
 
        t->clear_timer(STIMER_G);
@@ -1508,10 +1508,10 @@ int _trans_layer::update_uas_request(trans_bucket* 
bucket, sip_trans* t, sip_msg
        t->reset_timer(STIMER_I,I_TIMER,bucket->get_id());
        
        // drop through
-    case TS_CONFIRMED:
+    case TS_CONFIRMED: // non-2xx-ACK re-transmission
        return t->state;
            
-    case TS_TERMINATED_200:
+    case TS_TERMINATED_200: // 2xx-ACK
        // remove transaction
        bucket->remove(t);
        return TS_REMOVED;

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

Reply via email to