<div dir="ltr">Thanks for the response, I handle each call individually in this initial phase, where each call starts a ESL connection and handle the event subscription:<div>to monitor different events based on the "<span style="color:rgb(0,128,0);font-weight:bold;font-family:menlo;font-size:9pt">Channel-Call-UUID"</span>:</div><pre style="color:rgb(0,0,0);font-family:menlo;font-size:9pt">events = <span style="color:rgb(0,128,0);font-weight:bold">"BACKGROUND_JOB " </span>\<br> <span style="color:rgb(0,128,0);font-weight:bold">"DETECTED_TONE " </span>\<br> <span style="color:rgb(0,128,0);font-weight:bold">"CHANNEL_OUTGOING " </span>\<br> <span style="color:rgb(0,128,0);font-weight:bold">"CHANNEL_CREATE " </span>\<br> <span style="color:rgb(0,128,0);font-weight:bold">"CHANNEL_ANSWER " </span>\<br> <span style="color:rgb(0,128,0);font-weight:bold">"CHANNEL_PROGRESS_MEDIA " </span>\<br> <span style="color:rgb(0,128,0);font-weight:bold">"RECORD_START " </span>\<br> <span style="color:rgb(0,128,0);font-weight:bold">"CHANNEL_HANGUP " </span>\</pre><pre style="color:rgb(0,0,0);font-family:menlo;font-size:9pt"> "CHAN_NOT_IMPLEMENTED "</pre><div><br></div><div><span style="font-family:menlo;font-size:9pt;color:rgb(0,128,0);font-weight:bold"></span>I will probably change the way I handle ESL connections for all my calls (~200 simultaneous calls @5CPS)</div><div><br><div>I had HAproxy doing TCP loadbalancer for ESL to couple of FS and what you mention makes sense, many TCP connections end up killing HAproxy.</div><div><br></div></div><div>Thanks</div><div><br></div><div>-Gonzalo</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 7, 2016 at 6:32 AM, Ken Rice <span dir="ltr"><<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_-4573607329089817059m_-5092383226438189726WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif">As Michael commented, TCP connections going up and down can be expensive from a processing stand point, its almost always much more efficient to leave the connections up and re-use them vs tearing them down and restarting them for each new use<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:calibri,sans-serif"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:11pt;font-family:calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:calibri,sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists<wbr>.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounc<wbr>es@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael Jerris<br><b>Sent:</b> Friday, October 7, 2016 8:09 AM<br><b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freesw<wbr>itch.org</a>><br><b>Subject:</b> Re: [Freeswitch-users] ESL terminate calls<u></u><u></u></span></p><div><div class="gmail-m_-4573607329089817059h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">why would you hang up a call that just hung up? if you keep disconnecting the esl connection don't you just have to keep connecting a new one? why do you do that?<br><br>On Friday, October 7, 2016, Gonzalo Gasca Meza <<a href="mailto:gascagonzalo@gmail.com" target="_blank">gascagonzalo@gmail.com</a>> wrote:<u></u><u></u></p><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><div><p class="MsoNormal">I'm launching API Calls using ESL in FS 1.6 (via python)<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">For each new call, after call is hangup, <u></u><u></u></p></div><div><p class="MsoNormal">I send a <b>uuid_kill</b> and then ESL.<span style="font-size:9pt;font-family:menlo,serif;color:black">client.disconnect()</span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:menlo,serif;color:black">Are both necessary, or I can skip <b>uuid_kill</b>?</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:menlo,serif;color:black">I'm trying to improve performance in my ESL and avoid unnecessary TCP connections to Freeswitch.</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:menlo,serif;color:black">Thanks</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><span style="font-size:9pt;font-family:menlo,serif;color:black">-G</span><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></blockquote></div></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>