<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Hi there!</div><div><br></div><div>My lua script &nbsp;has onInput function for listening of external events which I sends from other PHP script.</div><div><br></div><div><br></div><div>1) Lua&nbsp;</div><div>function onInput(s, type, obj)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if (type == "event") then</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>freeswitch.consoleLog("warning", "get_info_and_play.lua: type = " .. type .. "\n");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ----------------</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ----------------</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>end</div><div>end</div><div>-------------------</div><div><br></div><div>2) PHP</div><div>&lt;?php</div><div>&nbsp; &nbsp; &nbsp; &nbsp; require_once('ESL.php');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; $sock = new ESLconnection('MY_IP', '8021', 'Mypass');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; $e = new ESLevent("CUSTOM","");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; $e-&gt;addHeader("Result_od_sql_queue","1111111");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; $sock-&gt;sendEvent($e);</div><div>?&gt;</div><div><br></div><div>I would like to catch such events but can not.&nbsp;</div><div><br></div><div>I set '/event plain all' in fs_cli and see that event &nbsp;received. But... Lua can not catch it.</div><div><br></div><div>May be I should add channel uuid of FS session to event I sent from PHP and this way lua script will able to get event?</div><div><br></div><div>Please advice.</div>                                               </div></body>
</html>