Skip to content

Commit

Permalink
everexec: use kemi wrapper to execute routing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Feb 27, 2019
1 parent 3053367 commit cde3cad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/evrexec/evrexec_mod.c
Expand Up @@ -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");
}
Expand Down Expand Up @@ -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");
}
}
Expand All @@ -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}
};
};

0 comments on commit cde3cad

Please sign in to comment.