[sr-dev] git:master:b75d4ca2: dialog: increase cseq after uac auth for local acks

Daniel-Constantin Mierla miconda at gmail.com
Wed Jan 11 15:24:28 CET 2017


Module: kamailio
Branch: master
Commit: b75d4ca219d7185e0a73cc9132760fe05227faa4
URL: https://github.com/kamailio/kamailio/commit/b75d4ca219d7185e0a73cc9132760fe05227faa4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-01-11T15:22:50+01:00

dialog: increase cseq after uac auth for local acks

- related to GH #918, #919

---

Modified: src/modules/dialog/dlg_cseq.c

---

Diff:  https://github.com/kamailio/kamailio/commit/b75d4ca219d7185e0a73cc9132760fe05227faa4.diff
Patch: https://github.com/kamailio/kamailio/commit/b75d4ca219d7185e0a73cc9132760fe05227faa4.patch

---

diff --git a/src/modules/dialog/dlg_cseq.c b/src/modules/dialog/dlg_cseq.c
index 3f70bbc..41c9864 100644
--- a/src/modules/dialog/dlg_cseq.c
+++ b/src/modules/dialog/dlg_cseq.c
@@ -401,15 +401,13 @@ int dlg_cseq_msg_sent(void *data)
 	parse_headers(&msg, HDR_EOH_F, 0);
 
 	/* check if transaction is marked for a new increment */
-	if(get_cseq(&msg)->method_id!=METHOD_ACK) {
-		hfk = sr_hdr_get_z(&msg, cenv->uac_cseq_auth.s);
-		if(hfk!=NULL) {
-			LM_DBG("new cseq inc requested\n");
-			nval = hfk->body;
-			trim(&nval);
-		} else {
-			LM_DBG("new cseq inc not requested\n");
-		}
+	hfk = sr_hdr_get_z(&msg, cenv->uac_cseq_auth.s);
+	if(hfk!=NULL) {
+		LM_DBG("new cseq inc requested\n");
+		nval = hfk->body;
+		trim(&nval);
+	} else {
+		LM_DBG("new cseq inc not requested\n");
 	}
 
 	if(nval.len<=0) {
@@ -418,6 +416,8 @@ int dlg_cseq_msg_sent(void *data)
 			LM_DBG("cseq refresh requested\n");
 			nval = hfk->body;
 			trim(&nval);
+		} else {
+			LM_DBG("cseq refresh not requested\n");
 		}
 	}
 	if(nval.len<=0) {




More information about the sr-dev mailing list