<div dir="ltr">Maybe my explanation was a little bit incorrect. I mean outbound socket usage. So FS fires events to Event Socket Server.<div><div>After your remark i checked again wiki, and found (<a href="https://wiki.freeswitch.org/wiki/Event_Socket_Outbound#Events">https://wiki.freeswitch.org/wiki/Event_Socket_Outbound#Events</a>): </div><p style="margin:0.4em 0px 0.5em;line-height:19.2000007629395px;color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px"><i>By default, the connected socket will not receive any freeswitch events. You can issues following event commands to let freeswitch send events the connected socket.</i></p><div><i><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.8000001907349px;line-height:19.2000007629395px">Receive only events from this channel.</span> <br></i></div><div><i><br></i></div><div>Similar reasoning, filtering could be done similar as for inbound socket, or it general behavior for inbound\outbound sockets.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 11, 2015 at 7:59 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">To the contrary, the link you responded to includes information on how to do that filtering on FreeSWITCH by subscribing to only the events you want <div class="HOEnZb"><div class="h5"><span></span><br><br>On Thursday, June 11, 2015, Vlad Fabi <<a href="mailto:vaad.fabi@gmail.com" target="_blank">vaad.fabi@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" style="font-size:12.8000001907349px" target="_blank">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"><<a>ssinyagin@gmail.com</a>></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><div><br>
On Thu, Jun 11, 2015 at 4:20 PM, Vlad Fabi <<a>vaad.fabi@gmail.com</a>> wrote:<br>
>> probably you subscribed to all events, and that's why you get so much<br>
>> traffic on ESL connection? usually you need only specific events on<br>
>> specific channels<br>
><br>
> So, this mean there is chance that Event Socket Server (if event filters<br>
> activated) works properly under highload (more than 50cps\300channels).<br>
> But after Kamil message, i falled in doubts...<br>
> As i understand, all events fires from FS to Event Socket Server, to<br>
> minimize sending events (load) we need to filter it on FS side. In this case<br>
> this FS send to Event Socket Server only required events. But i am not sure<br>
> FS can filter it on it's side.<br>
> Second case - combine scripts handlers\curl modules with minimal events to<br>
> Event Socket Server. This way is more complicated, but higload hopefull.<br>
><br>
> Kamil, you brought uncertainty into my thoughts! :))<br>
><br>
><br>
> On Thu, Jun 11, 2015 at 1:38 PM, Stanislav Sinyagin <<a>ssinyagin@gmail.com</a>><br>
> wrote:<br>
>><br>
>> probably you subscribed to all events, and that's why you get so much<br>
>> traffic on ESL connection? usually you need only specific events on<br>
>> specific channels<br>
>><br>
>> On Thu, Jun 11, 2015 at 12:33 PM, Kamil Nigmatullin<br>
>> <<a>kamil.nigmatullin@gmail.com</a>> wrote:<br>
>> >> In my view, and with my experiance it is not a good idea to be<br>
>> >> connected<br>
>> >> to FS all time.<br>
>> ><br>
>> > Why? For whole call life control is good approach, because external<br>
>> > application know all information about call state and events. Or all<br>
>> > events<br>
>> > external application, that receives and fires events to FS - this is my<br>
>> > way.<br>
>> ><br>
>> > I thought this way as well. But when I tried to make stress test for<br>
>> > 50cps<br>
>> > 300 concurrent, I had some unclosed calls. So then I moved almost code<br>
>> > to<br>
>> > LUA. And only some commands like originate or reschedules of hangup left<br>
>> > on<br>
>> > ESL. And I was afraid by how traffic between FS and external program is<br>
>> > huge.<br>
>> ><br>
>> >> Better to use one time connection to execute some commands.<br>
>> ><br>
>> > Hmm, this takes extra overhead for creation\closing connections. By the<br>
>> > way,<br>
>> > for outbound socket connection FS use persistent connection or per event<br>
>> > connection ?<br>
>> > I thing this overhead is nothing comparing to all events that FS sends<br>
>> > to<br>
>> > your external program.<br>
>> ><br>
>> > By the way, for outbound socket connection FS use persistent connection<br>
>> > or<br>
>> > per event connection ?<br>
>> > It is not by Event. In Inbound Socket I think it is the only connection<br>
>> > you<br>
>> > have for all calls and events.<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Kamil Nigmatullin<br>
>> > Tel: 77272323748<br>
>> > mob: 7 (707) 2517003<br>
>> > Skype: kamil.nigmatullin<br>
>> ><br>
>> ><br>
>> > _________________________________________________________________________<br>
>> > Professional FreeSWITCH Consulting Services:<br>
>> > <a>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>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>
>><br>
>> _________________________________________________________________________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a>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>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>
><br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a>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>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>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>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>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>
</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" 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></blockquote></div><br></div>