<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 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 </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> ----------------</div><div> ----------------</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><?php</div><div> require_once('ESL.php');</div><div> $sock = new ESLconnection('MY_IP', '8021', 'Mypass');</div><div> $e = new ESLevent("CUSTOM","");</div><div> $e->addHeader("Result_od_sql_queue","1111111");</div><div> $sock->sendEvent($e);</div><div>?></div><div><br></div><div>I would like to catch such events but can not. </div><div><br></div><div>I set '/event plain all' in fs_cli and see that event 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>