Hello,
On 01.04.17 15:43, José Seabra wrote:
Hi all,
I'm starting using kamailio 5 and was trying to convert my actual routing scripts to new KEMI interface using Lua. In my old script i'm using event routes for the evapi, dialog and dispatcher modules, so i was wondering how can i use it on KEMI. It exports some special Lua function to the KEMI framework? Can anyone give an example please.
each module needs a bit of code to be able to execute an equivalent of event_route blocks in an embedded interpreter via KEMI. I did it earlier today for dispatcher and dialog module, next will be evapi as you plan to use it -- I will let you know when it's ready so you can start testing. For now you can look at dialog/dispatcher docs, see the event_callback parameter.
Cheers, Daniel