[Freeswitch-users] AddBody to events in lua

Michael Collins msc at freeswitch.org
Tue Feb 17 15:23:13 PST 2009


>                                     local e = freeswitch.Event("custom",
> "dialer::dialer-result");
>
>                                     e.addBody(custom_msg);
>
>                                     e:fire(e);
The wiki page (http://wiki.freeswitch.org/wiki/Lua#event:fire) shows
that you fire thusly:
e:fire(); --No "e" in the parens.

Can you try it and report back?
-MC



More information about the Freeswitch-users mailing list