[Freeswitch-users] firing custom event in Lua
Juan Backson
juanbackson at gmail.com
Sun Aug 24 06:51:55 PDT 2008
Hi,
I tried to fire custom event with the following example:
e = freeswitch.Event("message");
e:add_body("mymsg","abcd")
session:sendEvent(e)
But I am getting this error from freeswitch console:
2008-08-25 05:49:33 [ERR] mod_lua.cpp:176 lua_parse_and_execute()
...r/local/freeswitch/scripts/script.lua:61: attempt to call method
'add_body' (a nil value)
stack traceback:
...r/local/freeswitch/scripts/script.lua:61: in main chunk
Does anyone know what is wrong with my script?
Thanks,
JB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080824/1db8da69/attachment-0002.html
More information about the FreeSWITCH-users
mailing list