Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Michael Collins
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:

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Anthony Minessale
in lua you call methods with a colon : e:addBody(blah); calling with a . implies you are going to supply the obj too e.addBody(e, blah); On Tue, Feb 17, 2009 at 5:11 PM, Nik Middleton nik.middle...@noblesolutions.co.uk wrote: Hi Guys, I'm having real problems doing something trivial,

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Michael Collins
On Tue, Feb 17, 2009 at 3:25 PM, Anthony Minessale anthony.miness...@gmail.com wrote: in lua you call methods with a colon : e:addBody(blah); calling with a . implies you are going to supply the obj too e.addBody(e, blah); Also, there is an explicit example here:

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Nik Middleton
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

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Nik Middleton
: [Freeswitch-users] AddBody to events in lua On Tue, Feb 17, 2009 at 3:25 PM, Anthony Minessale anthony.miness...@gmail.com wrote: in lua you call methods with a colon : e:addBody(blah); calling with a . implies you are going to supply the obj too e.addBody(e, blah); Also, there is an explicit

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Brian West
Good... keep up the good work adding more docs. ;) /b On Feb 17, 2009, at 5:33 PM, Nik Middleton wrote: Err, that's what I just posted :) Regards, ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Nik Middleton
] AddBody to events in lua Good... keep up the good work adding more docs. ;) /b On Feb 17, 2009, at 5:33 PM, Nik Middleton wrote: Err, that's what I just posted :) Regards, ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Michael Collins
I ran 10,000 events, which completed in around 20 seconds, all received and processed flawlessly. A new one on me was arrayshift. To think that I messed around in C for ages with circular buffers, this is so simple. Excellent! You're officially deputized to add any Lua examples you create. We

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Brian West
And you ran this in lua? /b On Feb 17, 2009, at 6:07 PM, Nik Middleton wrote: I ran 10,000 events, which completed in around 20 seconds, all received and processed flawlessly. A new one on me was arrayshift. To think that I messed around in C for ages with circular buffers, this is

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Nik Middleton
] On Behalf Of Brian West Sent: 18 February 2009 00:15 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] AddBody to events in lua And you ran this in lua? /b On Feb 17, 2009, at 6:07 PM, Nik Middleton wrote: I ran 10,000 events, which completed in around 20 seconds, all

Re: [Freeswitch-users] AddBody to events in lua

2009-02-17 Thread Raymond Chandler
Nik Middleton wrote: I'll shortly post some docs on the php fs_sock. don't waste your time... There's a php .so for ESL now, and i'll probably be removing the fs_sock from tree sometime very soon... maybe replacing it with some specific api classes... i'm not sure on that part yet. -Ray