Module: kamailio
Branch: 5.3
Commit: 5ffe28d4b83b1a75b1706bd851b76575b3d09c45
URL:
https://github.com/kamailio/kamailio/commit/5ffe28d4b83b1a75b1706bd851b7657…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-04T08:12:28+01:00
dialog: proper to-tag check for initial requests to skip cseq updates
(cherry picked from commit 81d3e7a43a249dfc9eaa075c698e1eb3237a517e)
(cherry picked from commit 5bd72f2758b2059759ce152e6d97b6a1955bc5bc)
---
Modified: src/modules/dialog/dlg_cseq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5ffe28d4b83b1a75b1706bd851b7657…
Patch:
https://github.com/kamailio/kamailio/commit/5ffe28d4b83b1a75b1706bd851b7657…
---
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;