Module: kamailio
Branch: 5.3
Commit: c99f611e08bbe4f41d291a7055a54ff12c9b0557
URL:
https://github.com/kamailio/kamailio/commit/c99f611e08bbe4f41d291a7055a54ff…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-02T12:41:32+01:00
dialog: skip non-INVITE initial request for cseq update processing
(cherry picked from commit a973882b064c758972ce40e9ac3a83440c613be1)
(cherry picked from commit a309a0ee48278923871197391a30d485f0513a4f)
---
Modified: src/modules/dialog/dlg_cseq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c99f611e08bbe4f41d291a7055a54ff…
Patch:
https://github.com/kamailio/kamailio/commit/c99f611e08bbe4f41d291a7055a54ff…
---
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;