I've got it working now thanks I've also added a working example to the Wiki (lua/addBody) which was empty Regards, -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: 17 February 2009 23:23 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] AddBody to events in lua
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 _______________________________________________ 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