Module: kamailio
Branch: master
Commit: 6d2312b8b0913f2f48e0f951c9578924e1d14f1d
URL:
https://github.com/kamailio/kamailio/commit/6d2312b8b0913f2f48e0f951c957892…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/6d2312b8b0913f2f48e0f951c957892…
Patch:
https://github.com/kamailio/kamailio/commit/6d2312b8b0913f2f48e0f951c957892…
---
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 */