I am using the module *app_jsdt *with *KEMI *and I am having trouble loading multiple javascript files. The interpreter only notices the last file that's loaded.
What I am trying to do is separate my logic so that everything is not inside the kamailio.conf.js (or the main file the contains the necessary functions if you will).
modparam("app_jsdt", "load", "/etc/kamailio/file1.js") modparam("app_jsdt", "load", "/etc/kamailio/file2.js") cfgengine "jsdt"
In the example above, only functions in file2 are recognized.
I am aware that I can use jsdt_run or jsdt_load but from KEMI I don't see a clear way to link this with things like events and timers or replies that don't necessarily go through the *request_route*.
(As a plus, I am wondering on performance on Javascript vs Python/Lua and if it's viable on high load, if anyone can throw 2 cents on that it would be helpful!)
Saludos,
[image: image.png]
[image: image.png]
https://www.facebook.com/bvisonl https://twitter.com/benjaminvison [image: image.png]
https://instagram.com/bvisonl/
Benjamín Visón / IT Engineer / Software Developer bvisonl@gmail.com / (829)-664-5163