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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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/cde3cade61f9bb9a262893d0ccf6491a18ba9326.diff
Patch: 
https://github.com/kamailio/kamailio/commit/cde3cade61f9bb9a262893d0ccf6491a18ba9326.patch

---

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
+};


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to