[sr-dev] git:master:6d2312b8: topos: skip local generated request not part of a dialog

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 2 08:46:52 CEST 2018


Module: kamailio
Branch: master
Commit: 6d2312b8b0913f2f48e0f951c9578924e1d14f1d
URL: https://github.com/kamailio/kamailio/commit/6d2312b8b0913f2f48e0f951c9578924e1d14f1d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-04-02T08:46:09+02:00

topos: skip local generated request not part of a dialog

---

Modified: src/modules/topos/topos_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/6d2312b8b0913f2f48e0f951c9578924e1d14f1d.diff
Patch: https://github.com/kamailio/kamailio/commit/6d2312b8b0913f2f48e0f951c9578924e1d14f1d.patch

---

diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index ec960d0a44..558fd9853d 100644
--- a/src/modules/topos/topos_mod.c
+++ b/src/modules/topos/topos_mod.c
@@ -399,6 +399,13 @@ int tps_msg_sent(sr_event_param_t *evp)
 			local = 1;
 		}
 
+		if(local==1 && dialog==0) {
+			if((get_cseq(&msg)->method_id) & (METHOD_OPTIONS|METHOD_NOTIFY)) {
+				/* skip local out-of-dialog requests (e.g., keepalive) */
+				goto done;
+			}
+		}
+
 		tps_request_sent(&msg, dialog, local);
 	} else {
 		/* reply */




More information about the sr-dev mailing list