<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8000001907349px">actually FreeSWITCH implements a fairly good filtering on its ESL interface:<br></span><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket" target="_blank" style="font-size:12.8000001907349px">https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket</a><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">You can subscribe to events of specific types and/or only for specific channels</span></blockquote><div><br></div><div>But as i can see, there is no information and possibility to filter events on FS side before sending to Event Socket Server.  On remote side (Event Socket Server) - no problem, just receive all events, filter it and process only you need.</div><div>As a result - too much events, highload and FS call processing problems as wrote earlier Kamil ...</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 11, 2015 at 5:27 PM, Stanislav Sinyagin <span dir="ltr">&lt;<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">actually FreeSWITCH implements a fairly good filtering on its ESL interface:<br>
<a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket</a><br>
<br>
You can subscribe to events of specific types and/or only for specific channels<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Jun 11, 2015 at 4:20 PM, Vlad Fabi &lt;<a href="mailto:vaad.fabi@gmail.com">vaad.fabi@gmail.com</a>&gt; wrote:<br>
&gt;&gt; probably you subscribed to all events, and that&#39;s why you get so much<br>
&gt;&gt; traffic on ESL connection? usually you need only specific events on<br>
&gt;&gt; specific channels<br>
&gt;<br>
&gt; So, this mean there is chance that Event Socket Server (if event filters<br>
&gt; activated) works properly under highload (more than 50cps\300channels).<br>
&gt; But after Kamil message, i falled in doubts...<br>
&gt; As i understand, all events fires from FS to Event Socket Server, to<br>
&gt; minimize sending events (load) we need to filter it on FS side. In this case<br>
&gt; this FS send to Event Socket Server only required events. But i am not sure<br>
&gt; FS can filter it on it&#39;s side.<br>
&gt; Second case - combine scripts handlers\curl modules with minimal events to<br>
&gt; Event Socket Server. This way is more complicated, but higload hopefull.<br>
&gt;<br>
&gt; Kamil, you brought uncertainty into my thoughts! :))<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jun 11, 2015 at 1:38 PM, Stanislav Sinyagin &lt;<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; probably you subscribed to all events, and that&#39;s why you get so much<br>
&gt;&gt; traffic on ESL connection? usually you need only specific events on<br>
&gt;&gt; specific channels<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Jun 11, 2015 at 12:33 PM, Kamil Nigmatullin<br>
&gt;&gt; &lt;<a href="mailto:kamil.nigmatullin@gmail.com">kamil.nigmatullin@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; In my view, and with my experiance it is not a good idea to be<br>
&gt;&gt; &gt;&gt; connected<br>
&gt;&gt; &gt;&gt; to FS all time.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Why? For whole call life control is good approach, because external<br>
&gt;&gt; &gt; application know all information about call state and events.  Or all<br>
&gt;&gt; &gt; events<br>
&gt;&gt; &gt; external application, that receives and fires events to FS  - this is my<br>
&gt;&gt; &gt; way.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I thought this way as well. But when I tried to make stress test for<br>
&gt;&gt; &gt; 50cps<br>
&gt;&gt; &gt; 300 concurrent, I had some unclosed calls. So then I moved almost  code<br>
&gt;&gt; &gt; to<br>
&gt;&gt; &gt; LUA. And only some commands like originate or reschedules of hangup left<br>
&gt;&gt; &gt; on<br>
&gt;&gt; &gt; ESL. And I was afraid by how traffic between FS and external program is<br>
&gt;&gt; &gt; huge.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Better to use one time connection to execute some commands.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hmm, this takes extra overhead for creation\closing connections. By the<br>
&gt;&gt; &gt; way,<br>
&gt;&gt; &gt; for outbound socket connection FS use persistent connection or per event<br>
&gt;&gt; &gt; connection ?<br>
&gt;&gt; &gt; I thing this overhead is nothing comparing to all events that FS sends<br>
&gt;&gt; &gt; to<br>
&gt;&gt; &gt; your external program.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; By the way, for outbound socket connection FS use persistent connection<br>
&gt;&gt; &gt; or<br>
&gt;&gt; &gt; per event connection ?<br>
&gt;&gt; &gt; It is not by Event. In Inbound Socket I think it is the only connection<br>
&gt;&gt; &gt; you<br>
&gt;&gt; &gt; have for all calls and events.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; --<br>
&gt;&gt; &gt; Kamil Nigmatullin<br>
&gt;&gt; &gt; Tel: 77272323748<br>
&gt;&gt; &gt; mob: 7 (707) 2517003<br>
&gt;&gt; &gt; Skype: kamil.nigmatullin<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _________________________________________________________________________<br>
&gt;&gt; &gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; &gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Official FreeSWITCH Sites<br>
&gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; FreeSWITCH-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<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><br>
</div></div></blockquote></div><br></div>