[sr-dev] git:master:fb777b0e: topos: reset context on msg received callback

Daniel-Constantin Mierla miconda at gmail.com
Fri Apr 23 12:36:45 CEST 2021


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-04-23T12:36:20+02:00

topos: reset context on msg received callback

---

Modified: src/modules/topos/topos_mod.c

---

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

---

diff --git a/src/modules/topos/topos_mod.c b/src/modules/topos/topos_mod.c
index 4975af9493..24cb77c208 100644
--- a/src/modules/topos/topos_mod.c
+++ b/src/modules/topos/topos_mod.c
@@ -432,6 +432,8 @@ int tps_msg_received(sr_event_param_t *evp)
 	int dialog;
 	int ret;
 
+	ki_tps_set_context(NULL, NULL);
+
 	obuf = (str*)evp->data;
 
 	if(tps_execute_event_route(NULL, evp, TPS_EVENTRT_INCOMING,




More information about the sr-dev mailing list