[Freeswitch-users] firing custom event in Lua
Juan Backson
juanbackson at gmail.com
Sun Aug 24 23:57:52 PDT 2008
Hi Brian,
If I try
e = freeswitch.Event("message");
e:addBody("thisisatestevent","abcd")
session:sendEvent(e)
2008-08-25 23:09:30 [ERR] mod_lua.cpp:176 lua_parse_and_execute() Error in
addBody expected 2..2 args, got 3
stack traceback:
[C]: in function 'addBody'
If I try
e = freeswitch.Event("message");
e:addBody("thisisatestevent")
session:sendEvent(e)
It went through, but I can't pick up any message with the name or type
"message"
Thanks for your help.
JB
On Mon, Aug 25, 2008 at 12:23 AM, Brian West <brian at freeswitch.org> wrote:
> Try e:addBody
> /b
>
> On Aug 24, 2008, at 8:51 AM, Juan Backson wrote:
>
> > e:add_body("mymsg","abcd")
>
> Brian West
> sip:brian at freeswitch.org <sip%3Abrian at freeswitch.org>
>
>
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080825/c5adc7cb/attachment-0002.html
More information about the FreeSWITCH-users
mailing list