Hello,

I have an Lua script that reads from a mysql DB. The script when ran alone works correctly, but when running inside freeswitch it says that the mysql module is not found. see error below.

2013-12-09 12:43:14.873414 [ERR] mod_lua.cpp:199 /usr/local/freeswitch/scripts/callerID.lua:6: module 'luasql.mysql' not found:
no field package.preload['luasql.mysql']
no file './luasql/mysql.lua'
no file '/usr/local/share/lua/5.1/luasql/mysql.lua'
no file '/usr/local/share/lua/5.1/luasql/mysql/init.lua'
no file '/usr/local/lib/lua/5.1/luasql/mysql.lua'
no file '/usr/local/lib/lua/5.1/luasql/mysql/init.lua'
no file './luasql/mysql.so'
no file './libluasql/mysql51.so'
no file '/usr/local/lib/lua/5.1/luasql/mysql.so'
no file '/usr/local/lib/lua/5.1/libluasql/mysql51.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './luasql.so'
no file './libluasql51.so'
no file '/usr/local/lib/lua/5.1/luasql.so'
no file '/usr/local/lib/lua/5.1/libluasql51.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/local/freeswitch/scripts/callerID.lua:6: in main chunk