get events data on freeswitch console
hi, i want to get the events data without ESL in lua and with the following: freeswitch.consoleLog("info",params:serialize()) but unable to any output but* ERROR* 2012-09-27 01:21:47.024894 [ERR] mod_lua.cpp:198 /usr/local/freeswitch/scripts/ESLInLua.lua:5: attempt to index global 'params' (a nil value) stack traceback: /usr/local/freeswitch/scripts/ESLInLua.lua:5: in main chunk reply me how i can get that. Regards Shahzad Bhatti
In this case "params" doesn't seem to have anything. Where does params get populated in your script? -MC On Wed, Sep 26, 2012 at 9:36 AM, Shahzad Bhatti <shahzad.bhatti@g-r-v.com>wrote:
hi,
i want to get the events data without ESL in lua and with the following:
freeswitch.consoleLog("info",params:serialize())
but unable to any output but* ERROR*
2012-09-27 01:21:47.024894 [ERR] mod_lua.cpp:198 /usr/local/freeswitch/scripts/ESLInLua.lua:5: attempt to index global 'params' (a nil value) stack traceback: /usr/local/freeswitch/scripts/ESLInLua.lua:5: in main chunk
reply me how i can get that.
Regards
Shahzad Bhatti
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
participants (2)
-
Michael Collins
-
Shahzad Bhatti