[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-devel
Subject:    [sr-dev] git:master:7ff8d428: topos: skip handling local DMQ messages
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2018-05-30 16:05:43
Message-ID: E1fO3bb-0003ly-DW () www ! kamailio ! org
[Download RAW message or body]

Module: kamailio
Branch: master
Commit: 7ff8d4284f20763e8e47f9b24e4604867a242e4a
URL: https://github.com/kamailio/kamailio/commit/7ff8d4284f20763e8e47f9b24e4604867a242e4a

Author: Daniel-Constantin Mierla <miconda@gmail.com>
Committer: Daniel-Constantin Mierla <miconda@gmail.com>
Date: 2018-05-30T18:04:44+02:00

topos: skip handling local DMQ messages

---

Modified: src/modules/topos/topos_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/7ff8d4284f20763e8e47f9b24e4604867a242e4a.diff
Patch: https://github.com/kamailio/kamailio/commit/7ff8d4284f20763e8e47f9b24e4604867a242e4a.patch

---

diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index 558fd9853d..408c964e62 100644
--- a/src/modules/topos/topos_mod.c
+++ b/src/modules/topos/topos_mod.c
@@ -404,6 +404,10 @@ int tps_msg_sent(sr_event_param_t *evp)
 				/* skip local out-of-dialog requests (e.g., keepalive) */
 				goto done;
 			}
+			if(get_cseq(&msg)->method.len==4
+					&& strncmp(get_cseq(&msg)->method.s, "KDMQ", 4)) {
+				goto done;
+			}
 		}
 
 		tps_request_sent(&msg, dialog, local);


_______________________________________________
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic