Help need for Lua Script development
Hello Guys, Im starting with my Lua scripts dev. Have already had luck writing an Callback script. Now i would to go deeper integrating it with Mysql and other libraries and generating some dynamic dialplan. Till now i used to write my scripts in Text editor and would to know is it Possible in IDE like Eclipse. I installed Lua development plugin in Eclipse but was wondering Whats the correct way to import freeswitch libraries in the project so that i can see methods/functions in in freeswitch API for easier and faster coding. I tried loading "libfreeswitch" and "mod_lua" lib using "require" command but its failing with [com.naef.jnlua.LuaRuntimeException: error loading module 'libfreeswitch' from file './libfreeswitch.so': ./libfreeswitch.so: undefined symbol: apr_os_default_encoding ] Im gud in Java and can use mod_java but would like to stick with lua as i heard its more closer to freeswitch. Any help :) Regards Mayank Nakrani
It sounds like you are trying to run scripts that can only run via freeswitch with embedded lua in a seperate lua process. This is not possible. Those need to be run from within the freeswitch process.
On Jan 31, 2015, at 4:11 AM, Mayank Nakrani <mayank19882001@gmail.com> wrote:
Hello Guys,
Im starting with my Lua scripts dev. Have already had luck writing an Callback script. Now i would to go deeper integrating it with Mysql and other libraries and generating some dynamic dialplan.
Till now i used to write my scripts in Text editor and would to know is it Possible in IDE like Eclipse. I installed Lua development plugin in Eclipse but was wondering Whats the correct way to import freeswitch libraries in the project so that i can see methods/functions in in freeswitch API for easier and faster coding.
I tried loading "libfreeswitch" and "mod_lua" lib using "require" command but its failing with
[com.naef.jnlua.LuaRuntimeException: error loading module 'libfreeswitch' from file './libfreeswitch.so': ./libfreeswitch.so: undefined symbol: apr_os_default_encoding ]
Im gud in Java and can use mod_java but would like to stick with lua as i heard its more closer to freeswitch.
Any help :)
participants (2)
-
Mayank Nakrani
-
Michael Jerris