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.
Many thanks
José Seabra
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
Hello Daniel, Thanks a lot for you help. I will start testing it for Dispatcher and Dialog.
Thank you for your great job. Regards
2017-04-04 16:29 GMT+01:00 Daniel-Constantin Mierla miconda@gmail.com:
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
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
execution of event routes for kemi was added. You have to use master branch for now.
Anyhow, I expect that maybe some functions from this modules were not yet exported to kemi -- if you give the list of the functions you use in your config from this modules, I will add them.
Cheers, Daniel
On 04.04.17 20:59, José Seabra wrote:
Hello Daniel, Thanks a lot for you help. I will start testing it for Dispatcher and Dialog.
Thank you for your great job. Regards
2017-04-04 16:29 GMT+01:00 Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com>:
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 -- Daniel-Constantin Mierla www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com <http://www.asipto.com> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com <http://www.kamailioworld.com> _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
-- Cumprimentos José Seabra