<div dir="ltr">Hi,<br><br>I tried to fire custom event with the following example:<br><br>e = freeswitch.Event("message");<br> e:add_body("mymsg","abcd")<br> session:sendEvent(e)<br>
<br>But I am getting this error from freeswitch console:<br><br>2008-08-25 05:49:33 [ERR] mod_lua.cpp:176 lua_parse_and_execute() ...r/local/freeswitch/scripts/script.lua:61: attempt to call method 'add_body' (a nil value)<br>
stack traceback:<br> ...r/local/freeswitch/scripts/script.lua:61: in main chunk<br><br><br>Does anyone know what is wrong with my script?<br><br>Thanks,<br>JB<br></div>