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