<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Just curios how it works for you, thank you. </div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">We are using it too without any issues. Mainly for event subscribing, not controling fs and it works good. Not to mention architecture of this lib compared to <span style="font-family:arial,sans-serif;font-size:12.8px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">managed_esl.</span></div><img src="https://mltrk.io/pixel/2RBxwI4o3jSOtm8f42F9?rid=2RBxwI4o3jSOtm8f42F9" width="1" height="1" border="0"></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-19 9:22 GMT+02:00 Grant Bagdasarian <span dir="ltr"><<a href="mailto:gb@cm.nl" target="_blank">gb@cm.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_8762761767642174879WordSection1">
<p class="MsoNormal"><span lang="NL">Hi Gregor,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="NL"><u></u> <u></u></span></p>
<p class="MsoNormal">We’re very satisfied with the library and have been running it in production for more than 9 months now. I can’t remember having any major issues we couldn’t overcome.
<u></u><u></u></p>
<p class="MsoNormal">The interface is more programmer friendly compared to the managed_esl library which is packaged with freeswitch. We have mainly used it to control our freeswitch cluster and originate calls, so no real voice(ivr) application programming
with complex flows etc. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Definitely recommend it if you’re having a tough time using the managed_esl library.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p><span class="">
<p class="MsoNormal"><u></u> <u></u></p>
<table class="m_8762761767642174879MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 1.5pt 0cm">
<p class="MsoNormal"><span style="font-size:16.0pt;color:#1657ea">Grant Bagdasarian</span><span style="font-size:12.0pt;color:#1657ea"><u></u><u></u></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 15.0pt 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Senior Developer</span><span style="font-size:9.0pt;color:black"><u></u><u></u></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 15.0pt 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;color:#1657ea"><a href="https://cm.com" target="_blank">cm.com</a></span><span style="font-size:9.0pt;color:#1657ea"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="NL"><u></u> <u></u></span></p>
</span><p class="MsoNormal"><b>From:</b> FreeSWITCH-users <<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@<wbr>lists.freeswitch.org</a>>
<b>On Behalf Of </b>Gregor Nanger<br>
<b>Sent:</b> woensdag 13 juni 2018 23:03<br>
<b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.<wbr>freeswitch.org</a>><br>
<b>Subject:</b> Re: [Freeswitch-users] Pyrun limitations<u></u><u></u></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Grant, how are u satisfied with neventsocket library?<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, Jun 13, 2018, 22:51 Grant Bagdasarian <<a href="mailto:gb@cm.nl" target="_blank">gb@cm.nl</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span lang="NL">Hello,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="NL"> </span><u></u><u></u></p>
<p class="MsoNormal">We’re currently using the NEventSocket library to control our freeswitch servers for starting python scripts (using a backgroundjob and pyrun py_module_name) which internally use
the freeswitch.py library to originate a call.<u></u><u></u></p>
<p class="MsoNormal">However, we’re running into some performance limitations where we can’t seem to get more than 5 call setups per second.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">To quote the documentation (<a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_python" target="_blank">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>mod_python</a>):<u></u><u></u></p>
<p class="MsoNormal">“A single python interpreter is spawned at module startup and used for the lifetime of the freeswitch process.”<u></u><u></u></p>
<p class="MsoNormal">“Each thread swaps in its "thread state" before executing python code and then swaps it out when finished. Also during blocking calls into freeswitch, a thread will swap out its
thread state in order to not block other threads, and then swap it in after the blocking call to freeswitch has finished.”<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">How does this relate to the number of threads freeswitch is allowed to start and run python scripts? If there are hard limitations set, can these be increased? I couldn’t find hard
numbers in the source files, so this may be controlled somewhere else?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<table class="m_8762761767642174879MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0cm 0cm 1.5pt 0cm">
<p class="MsoNormal"><span style="font-size:16.0pt;color:#1657ea">Grant Bagdasarian</span><u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 15.0pt 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Senior Developer</span><u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 1.5pt 0cm">
<p class="MsoNormal"><span style="font-size:9.0pt;color:#1657ea"> </span><u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 15.0pt 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;color:#1657ea"><a href="https://cm.com" target="_blank">cm.com</a></span><u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:3.75pt 0cm 16.5pt 0cm">
<p class="MsoNormal"> <u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="NL"> </span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" target="_blank">https://freeswitch.org/<wbr>confluence</a><br>
<a href="https://cluecon.com" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="https://freeswitch.com" target="_blank">https://freeswitch.com</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<table class="m_8762761767642174879MsoNormalTable" border="1" cellpadding="0" width="537" style="width:402.75pt;border:dashed #bbbbbb 1.0pt">
<tbody>
<tr>
<td width="63" valign="top" style="width:47.25pt;border:none;border-right:solid #00a1e6 1.0pt;padding:.75pt 6.0pt .75pt .75pt">
<p class="MsoNormal" style="margin:6.0pt"><b><span style="font-size:10.0pt;font-family:"Georgia",serif;color:#00a1e6;letter-spacing:.75pt;border:none windowtext 1.0pt;padding:0cm">Gregor Nanger</span></b><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#202020;letter-spacing:.75pt"><u></u><u></u></span></b></p>
<div>
<p class="MsoNormal" style="margin:6.0pt"><b><span style="font-size:13.0pt;font-family:"Arial",sans-serif;color:#202020;letter-spacing:.75pt"> <u></u><u></u></span></b></p>
</div>
</td>
<td width="354" valign="top" style="width:265.5pt;border:none;padding:.75pt .75pt .75pt 4.5pt;outline:rgb(80,80,80) none 0px;border-spacing:2px">
<p class="MsoNormal" style="margin:6.0pt"><b><span style="font-size:7.5pt;font-family:"Georgia",serif;color:#222222">CTO</span></b><span style="font-size:7.5pt;font-family:"Georgia",serif;color:#222222"><br>
t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 <br>
• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia <br>
• <a href="http://www.infomedia.si/" target="_blank">www.infomedia.si</a></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#222222"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div></div>
</div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><table border="0" style="font-size:12px;border:1px dashed rgb(187,187,187);font-family:sans-serif;width:537px"><tbody style="border-spacing:2px;border:0px none rgb(128,128,128)"><tr valign="top" style="border-spacing:2px;border:0px none rgb(128,128,128)"><td style="color:rgb(32,32,32);margin:8px;border-width:0px 1px 0px 0px;border-style:none solid none none;border-color:rgb(32,32,32) rgb(0,161,230) rgb(32,32,32) rgb(32,32,32);font-weight:bold;letter-spacing:1px;text-transform:capitalize;vertical-align:top;padding:1px 8px 1px 1px;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px"><span style="color:rgb(0,161,230);outline:rgb(0,161,230) none 0px;border-spacing:2px;border:0px none rgb(0,161,230)"><font face="georgia, serif" size="2">Gregor Nanger</font></span><div style="font-size:17px;font-family:sans-serif;width:63px;outline:rgb(32,32,32) none 0px;border-spacing:2px;border:0px none rgb(32,32,32)"> </div></td><td style="margin:8px;border:0px none rgb(80,80,80);vertical-align:top;padding:1px 1px 1px 6px;width:354px;outline:rgb(80,80,80) none 0px;border-spacing:2px"><font face="georgia, serif" size="1"><b>CTO</b><br>t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485 <br>• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia <br>• <a href="http://www.infomedia.si" target="_blank">www.infomedia.si</a></font></td></tr></tbody></table></div></div>
</div>