Module: kamailio
Branch: 5.4
Commit: 5bd72f2758b2059759ce152e6d97b6a1955bc5bc
URL:
https://github.com/kamailio/kamailio/commit/5bd72f2758b2059759ce152e6d97b6a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-04T08:11:34+01:00
dialog: proper to-tag check for initial requests to skip cseq updates
(cherry picked from commit 81d3e7a43a249dfc9eaa075c698e1eb3237a517e)
---
Modified: src/modules/dialog/dlg_cseq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5bd72f2758b2059759ce152e6d97b6a…
Patch:
https://github.com/kamailio/kamailio/commit/5bd72f2758b2059759ce152e6d97b6a…
---
diff --git a/src/modules/dialog/dlg_cseq.c b/src/modules/dialog/dlg_cseq.c
index 021cc101e8..a85b726514 100644
--- a/src/modules/dialog/dlg_cseq.c
+++ b/src/modules/dialog/dlg_cseq.c
@@ -381,7 +381,7 @@ int dlg_cseq_msg_sent(sr_event_param_t *evp)
goto done;
}
- if((get_to(&msg)->tag_value.len>0)) {
+ 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;