[sr-dev] git:5.2:ccedfaba: tls: set execution context for kemi callbacks

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 10 10:52:58 CEST 2019


Module: kamailio
Branch: 5.2
Commit: ccedfabab2d5fb9888842f36f45c8505597ea74e
URL: https://github.com/kamailio/kamailio/commit/ccedfabab2d5fb9888842f36f45c8505597ea74e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-04-10T10:50:51+02:00

tls: set execution context for kemi callbacks

(cherry picked from commit 7f20200c9e0bca5c4ed16c55b9db162922a51e76)

---

Modified: src/modules/tls/tls_server.c

---

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

---

diff --git a/src/modules/tls/tls_server.c b/src/modules/tls/tls_server.c
index 812015f622..5d3bc94522 100644
--- a/src/modules/tls/tls_server.c
+++ b/src/modules/tls/tls_server.c
@@ -1477,7 +1477,7 @@ int tls_run_event_routes(struct tcp_connection *c)
 	} else {
 		keng = sr_kemi_eng_get();
 		if(keng!=NULL) {
-			if(sr_kemi_route(keng, fmsg, EVENT_ROUTE,
+			if(sr_kemi_ctx_route(keng, &ctx, fmsg, EVENT_ROUTE,
 						&sr_tls_event_callback, &evname)<0) {
 				LM_ERR("error running event route kemi callback\n");
 				return -1;




More information about the sr-dev mailing list