Module: kamailio
Branch: master
Commit: 960b60ede8543f38b61ad2769e81e11d5a777df8
URL:
https://github.com/kamailio/kamailio/commit/960b60ede8543f38b61ad2769e81e11…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-04T11:15:10+01:00
dialog: skip doing cseq update processing for non-sip requests
---
Modified: src/modules/dialog/dlg_cseq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/960b60ede8543f38b61ad2769e81e11…
Patch:
https://github.com/kamailio/kamailio/commit/960b60ede8543f38b61ad2769e81e11…
---
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;