<div dir="ltr">Hi,<br><br>I tried to fire custom event with the following example:<br><br>e = freeswitch.Event(&quot;message&quot;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; e:add_body(&quot;mymsg&quot;,&quot;abcd&quot;)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 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 &#39;add_body&#39; (a nil value)<br>
stack traceback:<br>&nbsp;&nbsp;&nbsp; ...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>