[Freeswitch-users] LUA Event generation

Nick Lemberger Nick.Lemberger at lkfd.net
Wed Jul 8 11:24:41 PDT 2009


When I create an even with mod_lua, I need to add the even variable name as the 1st argument too all of the event statements - this is not how it's listed in the examples in the Wiki, is this new and should I update the WIKI or am I doing something wrong?

The way I needed to write it to get it to work looks like this:
ie: http://pastebin.freeswitch.org/9654 

The examples in the wiki are just missing the first argument for addHeader(), addBody() and fire().
ie: http://wiki.freeswitch.org/wiki/Mod_lua#Events

-Nick





More information about the FreeSWITCH-users mailing list