[sr-dev] git:5.4:a309a0ee: dialog: skip non-INVITE initial request for cseq update processing

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 2 12:41:19 CET 2020


Module: kamailio
Branch: 5.4
Commit: a309a0ee48278923871197391a30d485f0513a4f
URL: https://github.com/kamailio/kamailio/commit/a309a0ee48278923871197391a30d485f0513a4f

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-11-02T12:38:33+01:00

dialog: skip non-INVITE initial request for cseq update processing

(cherry picked from commit a973882b064c758972ce40e9ac3a83440c613be1)

---

Modified: src/modules/dialog/dlg_cseq.c

---

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

---

diff --git a/src/modules/dialog/dlg_cseq.c b/src/modules/dialog/dlg_cseq.c
index fd993b076f..88489e31e7 100644
--- a/src/modules/dialog/dlg_cseq.c
+++ b/src/modules/dialog/dlg_cseq.c
@@ -381,6 +381,13 @@ int dlg_cseq_msg_sent(sr_event_param_t *evp)
 		goto done;
 	}
 
+	if((get_to(&msg)->tag_value.len>0)) {
+		/* intial request - handle only INVITEs */
+		if(msg.first_line.u.request.method_value!=METHOD_INVITE) {
+			goto done;
+		}
+	}
+
 	LM_DBG("traking cseq updates\n");
 	via = (struct via_body*)msg.h_via1->parsed;
 




More information about the sr-dev mailing list