[sr-dev] git:master:648704f2: dialog: ensure all headers are parsed to find the custom ones for cseq refresh

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 1 17:25:29 CEST 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-09-01T17:24:07+02:00

dialog: ensure all headers are parsed to find the custom ones for cseq refresh

- GH #752

---

Modified: modules/dialog/dlg_cseq.c

---

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

---

diff --git a/modules/dialog/dlg_cseq.c b/modules/dialog/dlg_cseq.c
index 7c95ce0..7aaad02 100644
--- a/modules/dialog/dlg_cseq.c
+++ b/modules/dialog/dlg_cseq.c
@@ -383,9 +383,10 @@ int dlg_cseq_msg_sent(void *data)
 		goto done;
 	}
 
+	parse_headers(&msg, HDR_EOH_F, 0);
+
 	/* check if transaction is marked for a new increment */
 	if(get_cseq(&msg)->method_id!=METHOD_ACK) {
-		parse_headers(&msg, HDR_EOH_F, 0);
 		hfk = sr_hdr_get_z(&msg, "P-K-Auth-CSeq");
 		if(hfk!=NULL) {
 			LM_DBG("new cseq inc requested\n");
@@ -405,6 +406,7 @@ int dlg_cseq_msg_sent(void *data)
 		}
 	}
 	if(nval.len<=0) {
+		LM_DBG("cseq refresh requested, but no new value found\n");
 		goto done;
 	}
 




More information about the sr-dev mailing list