Module: kamailio Branch: master Commit: cde3cade61f9bb9a262893d0ccf6491a18ba9326 URL: https://github.com/kamailio/kamailio/commit/cde3cade61f9bb9a262893d0ccf6491a...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-02-27T09:27:03+01:00
everexec: use kemi wrapper to execute routing functions
---
Modified: src/modules/evrexec/evrexec_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/cde3cade61f9bb9a262893d0ccf6491a... Patch: https://github.com/kamailio/kamailio/commit/cde3cade61f9bb9a262893d0ccf6491a...
---
diff --git a/src/modules/evrexec/evrexec_mod.c b/src/modules/evrexec/evrexec_mod.c index c31538ebfd..e8af781484 100644 --- a/src/modules/evrexec/evrexec_mod.c +++ b/src/modules/evrexec/evrexec_mod.c @@ -181,7 +181,7 @@ void evrexec_process(evrexec_task_t *it, int idx) } } else { sidx.s = int2str(idx, &sidx.len); - if(keng->froute(fmsg, EVENT_ROUTE, + if(sr_kemi_route(keng, fmsg, EVENT_ROUTE, &it->ename, &sidx)<0) { LM_ERR("error running event route kemi callback\n"); } @@ -381,7 +381,7 @@ void rpc_evr_run(rpc_t *rpc, void *c) evr_name.len, evr_name.s); } } else { - if(keng->froute(fmsg, EVENT_ROUTE, &evr_name, &evr_data)<0) { + if(sr_kemi_route(keng, fmsg, EVENT_ROUTE, &evr_name, &evr_data)<0) { LM_ERR("error running event route kemi callback\n"); } } @@ -395,4 +395,4 @@ void rpc_evr_run(rpc_t *rpc, void *c) static rpc_export_t evr_rpc_methods[] = { {"evrexec.run", rpc_evr_run, rpc_evr_run_doc, 0}, {0, 0, 0, 0} -}; \ No newline at end of file +};