Yes. I know it wont run outside freeswitch but i wanted it to assist me in resolving method names and variables the way it does for JAVA.
Just enabling faster coding.
After dev work i neways would copy the script to freeswitch folder n run from within it.
(the way mod_java gives u freeswitch.jar lib file which when imported in ur java project )
Regards
Mayank
---------- Forwarded message ---------- From: Michael Jerris <mike@jerris.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Cc: Date: Tue, 3 Feb 2015 11:50:13 -0600 Subject: Re: [Freeswitch-users] Help need for Lua Script development 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 :) >