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