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

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 second

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

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.

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

2009-02-17 Thread Nik Middleton
reeswitch-users] 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-us

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

2009-02-17 Thread Michael Collins
On Tue, Feb 17, 2009 at 3:33 PM, Nik Middleton wrote: > Err, that's what I just posted :) > oops, hehe, that would explain why I thought my browser cache was messing with me. Nice work. Please definitely add to the Lua wiki page as you gain experience. Hopefully your pain will be other Lua users'

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 http://lists.freeswitch.

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

2009-02-17 Thread Nik Middleton
t: Re: [Freeswitch-users] AddBody to events in lua On Tue, Feb 17, 2009 at 3:25 PM, Anthony Minessale 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 a

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

2009-02-17 Thread Nik Middleton
s 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"); > >

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 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: http://wiki.freeswitch.org/wiki/Lua#event:add

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 tri

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