[sr-dev] git:master:7ff8d428: topos: skip handling local DMQ messages

Daniel-Constantin Mierla miconda at gmail.com
Wed May 30 18:05:43 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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);




More information about the sr-dev mailing list