Module: kamailio
Branch: master
Commit: 395cae83da4d83920dd038d299c30ffa97b6c272
URL:
https://github.com/kamailio/kamailio/commit/395cae83da4d83920dd038d299c30ff…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-04-09T13:03:38+02:00
core: kemi - wrapper function to run callbacks with context
---
Modified: src/core/kemi.c
Modified: src/core/kemi.h
---
Diff:
https://github.com/kamailio/kamailio/commit/395cae83da4d83920dd038d299c30ff…
Patch:
https://github.com/kamailio/kamailio/commit/395cae83da4d83920dd038d299c30ff…
---
diff --git a/src/core/kemi.c b/src/core/kemi.c
index 2469e067c6..deb9285b9d 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -2422,3 +2422,13 @@ int sr_kemi_route(sr_kemi_eng_t *keng, sip_msg_t *msg, int rtype,
setsflagsval(sfbk);
return ret;
}
+
+/**
+ *
+ */
+int sr_kemi_ctx_route(sr_kemi_eng_t *keng, run_act_ctx_t *ctx, sip_msg_t *msg,
+ int rtype, str *ename, str *edata)
+{
+ sr_kemi_act_ctx_set(ctx);
+ return sr_kemi_route(keng, msg, rtype, ename, edata);
+}
diff --git a/src/core/kemi.h b/src/core/kemi.h
index 3321dd8b4e..5d3c84ebb7 100644
--- a/src/core/kemi.h
+++ b/src/core/kemi.h
@@ -147,5 +147,7 @@ int sr_kemi_core_set_drop(sip_msg_t *msg);
int sr_kemi_route(sr_kemi_eng_t *keng, sip_msg_t *msg, int rtype,
str *ename, str *edata);
+int sr_kemi_ctx_route(sr_kemi_eng_t *keng, run_act_ctx_t *ctx, sip_msg_t *msg,
+ int rtype, str *ename, str *edata);
#endif