<div dir="ltr">on outbound you would use myevents.  See confluence on mod_event_socket.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 5:12 AM, jaflong jaflong <span dir="ltr">&lt;<a href="mailto:jaflong@yandex.com" target="_blank">jaflong@yandex.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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(&quot;plain&quot;, &quot;ALL&quot;); sends</div><div>&quot;event plain ALL&quot;</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(&#39;ESL.php&#39;);<br><br>$conn = new ESLconnection(&#39;127.0.0.1&#39;, &#39;8021&#39;, &#39;ClueCon&#39;);<span class=""><br><br>while ($conn-&gt;connected() == 1) {<br>    <br></span>    $conn-&gt;events(&quot;plain&quot;, &quot;ALL&quot;);<span class=""><br>    <br>    $e = $conn-&gt;recvEvent();<br>    <br>    if ($e) {<br><br></span>    } 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(&#39;ESL.php&#39;);<br><br>$conn = new ESLconnection(0);<span class=""><br><br>while ($conn-&gt;connected() == 1) {<br>    <br></span>    $conn-&gt;events(&quot;plain&quot;, &quot;ALL&quot;);<span class=""><br>    <br>    $e = $conn-&gt;recvEvent();<br>    <br>    if ($e) {<br><br></span>    } else {<br><br>    }    <br>}<br>?&gt;<br><br><br>tcpdump <br><br>event plain ALL<span class=""><br>Content-Type: command/reply<br>Reply-Text: -ERR command not found<br><br></span></div><div> </div><div> </div><div>23.07.2015, 05:06, &quot;Brian West&quot; &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;:</div><div class="HOEnZb"><div class="h5"><blockquote type="cite"><div>try &#39;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(&#39;ESL.php&#39;);<br><br>$audio_location = &quot;/usr/local/freeswitch/sounds/&quot;;<br>$music = $audio_location . &quot;demo.wav&quot;;<br><br>$conn = new ESLconnection(0);<br><br>$conn-&gt;execute(&quot;answer&quot;);<br><br>$conn-&gt;events(&quot;plain&quot;,&quot;all&quot;);<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, &quot;Brian West&quot; &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&#39;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" target="_blank">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" 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> <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" value="+19184209001" target="_blank">+19184209001</a></span> | <b>F:</b><span><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a></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" target="_blank">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" 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><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></p></blockquote></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<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 size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><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 size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>