lua - Freeswitch, fileaccess with javascript? -
i have freeswtich solution running on linux quite lot of configuration scripts written in javascript.
the problem need write , read files; javascript doesn't support. tried spidermonkey file object doesn't work , has been marked obsolete..
the setup bit special; there 1 dial plan 1 javascript handling call initially. depending on number of parameters call 'handed over' 1 of 20 or javascripts dynamically included. data base lookup returns name of script run.
so looking other options if there any? rewriting entire thing in lua option of course keep current structure mean rewriting lot of javascripts. unless can think of magic way call lua script javascript?
there's bunch of various programming languages supported freeswitch: perl, python, lua, ruby. take whatever suits better :)
Comments
Post a Comment