Module: kamailio
Branch: 5.4
Commit: 88f43b97768676fd2b84c3e855ec5ae441b826cd
URL:
https://github.com/kamailio/kamailio/commit/88f43b97768676fd2b84c3e855ec5ae…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-19T13:23:45+01:00
dialog: skip doing cseq update processing for non-sip requests
(cherry picked from commit 960b60ede8543f38b61ad2769e81e11d5a777df8)
---
Modified: src/modules/dialog/dlg_cseq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/88f43b97768676fd2b84c3e855ec5ae…
Patch:
https://github.com/kamailio/kamailio/commit/88f43b97768676fd2b84c3e855ec5ae…
---
diff --git a/src/modules/dialog/dlg_cseq.c b/src/modules/dialog/dlg_cseq.c
index a85b726514..17c63bbb1c 100644
--- a/src/modules/dialog/dlg_cseq.c
+++ b/src/modules/dialog/dlg_cseq.c
@@ -381,7 +381,12 @@ int dlg_cseq_msg_sent(sr_event_param_t *evp)
goto done;
}
- if((get_to(&msg)->tag_value.len<=0)) {
+ if(!IS_SIP(&msg)) {
+ /* nothing to do for non-sip requests */
+ 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;