<div>š</div><div><br /><br />On a inbound connection connecting with user name and password, (the code example below - top) according to the tcpdump the command $conn-&gt;events("plain", "ALL"); sends</div><div>"event plain ALL"</div><div>and is accepted and works.</div><div><br />However using the same command on outbound (the code example below - bottom) the response is error<br /><br />Why does the same command work on esl inbound but not esl outbound?<br /><br /><br /><br />INBOUND<br /><br />&lt;?php<br /><br />require_once('ESL.php');<br /><br />$conn = new ESLconnection('127.0.0.1', '8021', 'ClueCon');<br /><br />while ($conn-&gt;connected() == 1) {<br />šš š<br />šš š$conn-&gt;events("plain", "ALL");<br />šš š<br />šš š$e = $conn-&gt;recvEvent();<br />šš š<br />šš šif ($e) {<br /><br />šš š} else {<br /><br />šš š}<br />šš š<br />}<br />?&gt;<br /><br />tcpdump <br /><br />Content-Type: auth/request<br />auth ClueCon<br />Content-Type: command/reply<br />Reply-Text: +OK accepted<br />event plain ALL<br />Content-Type: command/reply<br />Reply-Text: +OK event listener enabled plain<br /><br /><br />----------------------------------------------------------------<br /><br />OUTBOUND<br /><br />&lt;?php<br /><br />require_once('ESL.php');<br /><br />$conn = new ESLconnection(0);<br /><br />while ($conn-&gt;connected() == 1) {<br />šš š<br />šš š$conn-&gt;events("plain", "ALL");<br />šš š<br />šš š$e = $conn-&gt;recvEvent();<br />šš š<br />šš šif ($e) {<br /><br />šš š} else {<br /><br />šš š}šš š<br />}<br />?&gt;<br /><br /><br />tcpdump <br /><br />event plain ALL<br />Content-Type: command/reply<br />Reply-Text: -ERR command not found<br /><br /></div><div>š</div><div>š</div><div>23.07.2015, 05:06, "Brian West" &lt;brian@freeswitch.org&gt;:</div><blockquote type="cite"><div>try 'event<b>s</b> all plain;</div><div><br /><div>On Wed, Jul 22, 2015 at 10:17 AM, jaflong jaflong <span>&lt;<a href="mailto:jaflong@yandex.com" target="_blank">jaflong@yandex.com</a>&gt;</span> wrote:<br /><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>š</div><div>š</div><div>I am usingoutbount event socket but cannot get it to work</div><div><br />-----------------------------------</div><div><br />require_once('ESL.php');<br /><br />$audio_location = "/usr/local/freeswitch/sounds/";<br />$music = $audio_location . "demo.wav";<br /><br />$conn = new ESLconnection(0);<br /><br />$conn-&gt;execute("answer");<br /><br />$conn-&gt;events("plain","all");<br /><br /><br />while ($conn-&gt;connected() == 1) {<br /><br />šš š$e = $conn-&gt;recvEvent();<br />šš šif ($e) {<br />šš ššš š$arrEvent = eventParse($e);<br /><br />šš š} else {<br /><br /><br />šš š}<br />šš š<br />}<br /><br />-----------------------------------<br /><br />This does not work, give response<br /><br />event plain all<br /><br />Content-Type: command/reply<br />Reply-Text: -ERR command not found<br /><br /></div><div>š</div><div>22.07.2015, 18:00, "Brian West" &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;:</div><blockquote type="cite"><div>You may wish to try using outbound event socket if thats what you're wising to accomplish.</div><div><br /><div><span>On Wed, Jul 22, 2015 at 9:55 AM, jaflong jaflong <span>&lt;<a href="mailto:jaflong@yandex.com" target="_blank">jaflong@yandex.com</a>&gt;</span> wrote:<br /></span><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex;"><span>I have a php script run by ivrd, is it possible to subscribe to<br /> events on this outbound eslconnection<br /> <br /> _________________________________________________________________________<br /> Professional FreeSWITCH Consulting Services:<br /> <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br /> </span><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br /> <br /> Official FreeSWITCH Sites<br /> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br /> <a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.org</a><br /> <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><span><br /> <br /> FreeSWITCH-users mailing list<br /> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br /> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br /> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /> </span><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></blockquote></div><br /><br /><div>š</div>-- <br /><div><div><div><div><div><div><div><div><div><div><p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br /><span style="font-size:x-small;"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p><p><font face="courier new, monospace" size="1"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png" /><br /></font></p><p><font face="monospace, monospace" size="2"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br /><a href="http://www.freeswitchbook.com/" target="_blank">http://www.freeswitchbook.com</a><br /><a href="http://www.freeswitchcookbook.com/" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit:š<a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p><p><font face="monospace, monospace" size="2"><b>T:</b><span><a href="tel:%2B19184209001" target="_blank">+19184209001</a></span> | <b>F:</b><span><a href="tel:%2B19184209002" target="_blank">+19184209002</a></span> | <b>M:</b><span><span>+1918424</span></span>WEST (9378)<br /><b>iNUM:</b><span><span>+883 5100 1420 9001</span></span> |š<b>ISN:</b>410*543 |š<b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div></div>,<p><span>_________________________________________________________________________<br />Professional FreeSWITCH Consulting Services: <br /><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br /></span><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br /><br />Official FreeSWITCH Sites<br /><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br /><a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.org</a><br /><a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><span><br /><br />FreeSWITCH-users mailing list<br /><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br /><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br />UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /></span><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></p></blockquote><br />_________________________________________________________________________<br /> Professional FreeSWITCH Consulting Services:<br /> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /> <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br /> <br /> Official FreeSWITCH Sites<br /> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br /> <a href="http://confluence.freeswitch.org/" target="_blank">http://confluence.freeswitch.org</a><br /> <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br /> <br /> FreeSWITCH-users mailing list<br /> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br /> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br /> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></blockquote></div><br /><br /><div>š</div>-- <br /><div><div><div><div><div><div><div><div><div><div><p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br /><span style="font-size:x-small;"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p><p><font face="courier new, monospace" size="1"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png" /><br /></font></p><p><font face="monospace, monospace" size="2"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br /><a href="http://www.freeswitchbook.com/" target="_blank">http://www.freeswitchbook.com</a><br /><a href="http://www.freeswitchcookbook.com/" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit:š<a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p><p><font face="monospace, monospace" size="2"><b>T:</b><span>+19184209001</span> | <b>F:</b><span>+19184209002</span> | <b>M:</b><span>+1918424</span>WEST (9378)<br /><b>iNUM:</b><span>+883 5100 1420 9001</span> |š<b>ISN:</b>410*543 |š<b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div></div>,<p>_________________________________________________________________________<br />Professional FreeSWITCH Consulting Services: <br /><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /><a href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br /><br />Official FreeSWITCH Sites<br /><a href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br /><a href="http://confluence.freeswitch.org/">http://confluence.freeswitch.org</a><br /><a href="http://www.cluecon.com/">http://www.cluecon.com</a><br /><br />FreeSWITCH-users mailing list<br /><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br /><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br />UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /><a href="http://www.freeswitch.org/">http://www.freeswitch.org</a></p></blockquote>