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