@cmrienzo - I don't think this is the case, as params should be defined by FreeSWITCH when called as a lua directory. (Currently using LUA to generate my own directory) joelewhite Are you trying to run that script from the command line to test it? If so, params will not be set, make sure you have your conf/autoload_configs/lua.xml setup. <param name="xml-handler-script" value="directory/generate.lua"/> <param name="xml-handler-bindings" value="directory"/> Maybe go into more detail about what you're currently doing/have configured. On Mon, Aug 18, 2014 at 8:53 AM, Christopher Rienzo <cmrienzo@gmail.com> wrote:
This is an error in your lua script. On line 5 you must have some code like "params.foo" or "params[foo]" where params is a nil value. Check why params is nil and fix it if it isn't supposed to be. Otherwise add a check to handle the nil case.
On Mon, Aug 18, 2014 at 9:10 AM, Joel White <joelewhite@gmail.com> wrote:
I am trying to get Lua generation of the Directory so I can also tie this in with auto provisioning.
I have created the table in the Postgres DB and have the lua script specified in the lua module config
But I keep getting this error
2014-08-18 13:07:11.869818 [ERR] mod_lua.cpp:203 /usr/local/freeswitch/scripts/gen_dir_user_xml.lua:5: attempt to index global 'params' (a nil value)
I am sure after playing with it for a while I will get everything working properly, but would anyone have some information to point me in the right direction?
Thank you in advance
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org