<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 18, 2016 at 3:33 AM, ian gilmour <span dir="ltr"><<a href="mailto:ian.gilmour.x@gmail.com" target="_blank">ian.gilmour.x@gmail.com</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 style="word-wrap:break-word"><p dir="ltr">Hi,</p>
<p dir="ltr">PJSIP in the past had limitations on the max concurrent calls, etc. There were ways to overcome them by changing the source code. (e.g. <a href="http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2013-February/015721.html" target="_blank">http://lists.pjsip.org/<wbr>pipermail/pjsip_lists.pjsip.<wbr>org/2013-February/015721.html</a>)</p>
<p dir="ltr">Do any similar tweaks need to be done to the bundled pjproject to handle high volumes of concurrent calls with Asterisk?</p></div></blockquote><div>The bundled defaults are already tuned for server type loads. The MAX_CALLS and MAX_PLAYERS settings mentioned in that email don't apply to asterisk since we don't use those components. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">
<p dir="ltr">What (if any) are the current default asterisk 13 + pjproject audio + video concurrent call limits if using the bundled pjproject + asterisk patches as is?</p></div></blockquote><div><div>Here are the setting we use (third-party/pjproject/patches/config_site.h). The best optimization is the use of epoll instead of select which we automatically turn on if the OS is Linux. It's hard to say what the actual call limit would be since it's dependent on memory, CPU, etc. Technically, it would be 2500 based on MAX_HANDLES but with epoll in use, that number just controls the size of 1 array and can be easily increased with little effect on memory utilization.</div><div><br></div><div><font face="monospace, monospace">#include <sys/select.h></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">#define PJ_HAS_IPV6 1</font></div><div><font face="monospace, monospace">#define NDEBUG 1</font></div><div><font face="monospace, monospace">#define PJ_MAX_HOSTNAME (256)</font></div><div><font face="monospace, monospace">#define PJSIP_MAX_URL_SIZE (512)</font></div><div><font face="monospace, monospace">#ifdef PJ_HAS_LINUX_EPOLL</font></div><div><font face="monospace, monospace">#define PJ_IOQUEUE_MAX_HANDLES<span class="" style="white-space:pre"> </span>(5000)</font></div><div><font face="monospace, monospace">#else</font></div><div><font face="monospace, monospace">#define PJ_IOQUEUE_MAX_HANDLES<span class="" style="white-space:pre"> </span>(FD_SETSIZE)</font></div><div><font face="monospace, monospace">#endif</font></div><div><font face="monospace, monospace">#define PJ_IOQUEUE_HAS_SAFE_UNREG 1</font></div><div><font face="monospace, monospace">#define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">#define PJ_SCANNER_USE_BITWISE<span class="" style="white-space:pre"> </span>0</font></div><div><font face="monospace, monospace">#define PJ_OS_HAS_CHECK_STACK<span class="" style="white-space:pre"> </span>0</font></div><div><font face="monospace, monospace">#define PJ_LOG_MAX_LEVEL<span class="" style="white-space:pre"> </span>3</font></div><div><font face="monospace, monospace">#define PJ_ENABLE_EXTRA_CHECK<span class="" style="white-space:pre"> </span>1</font></div><div><font face="monospace, monospace">#define PJSIP_MAX_TSX_COUNT<span class="" style="white-space:pre"> </span>((64*1024)-1)</font></div><div><font face="monospace, monospace">#define PJSIP_MAX_DIALOG_COUNT<span class="" style="white-space:pre"> </span>((64*1024)-1)</font></div><div><font face="monospace, monospace">#define PJSIP_UDP_SO_SNDBUF_SIZE<span class="" style="white-space:pre"> </span>(512*1024)</font></div><div><font face="monospace, monospace">#define PJSIP_UDP_SO_RCVBUF_SIZE<span class="" style="white-space:pre"> </span>(512*1024)</font></div><div><font face="monospace, monospace">#define PJ_DEBUG<span class="" style="white-space:pre"> </span>0</font></div><div><font face="monospace, monospace">#define PJSIP_SAFE_MODULE<span class="" style="white-space:pre"> </span>0</font></div><div><font face="monospace, monospace">#define PJ_HAS_STRICMP_ALNUM<span class="" style="white-space:pre"> </span>0</font></div><div><font face="monospace, monospace">#define PJ_HASH_USE_OWN_TOLOWER<span class="" style="white-space:pre"> </span>1</font></div><div><font face="monospace, monospace">/*</font></div><div><font face="monospace, monospace"> It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined.</font></div><div><font face="monospace, monospace"> Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.</font></div><div><font face="monospace, monospace">*/</font></div><div><font face="monospace, monospace">#undef PJSIP_UNESCAPE_IN_PLACE</font></div><div><font face="monospace, monospace">#define PJSIP_MAX_PKT_LEN<span class="" style="white-space:pre"> </span>6000</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">#undef PJ_TODO</font></div><div><font face="monospace, monospace">#define PJ_TODO(x)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">/* Defaults too low for WebRTC */</font></div><div><font face="monospace, monospace">#define PJ_ICE_MAX_CAND 32</font></div><div><font face="monospace, monospace">#define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * 2)</font></div></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">
<p dir="ltr">Thanks in advance.</p><p dir="ltr">Regards,</p>
<p dir="ltr">IanG</p>
</div><br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-size:12.8px">George Joseph</span><br style="font-size:12.8px"><span style="font-size:12.8px">Digium, Inc. | Software Developer</span><span style="font-size:12.8px"><br>445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br></span><span style="font-size:12.8px">Check us out at: </span><a href="http://www.digium.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.digium.com</a><span style="font-size:12.8px"> & </span><a href="http://www.asterisk.org/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.asterisk.org</a><br><div><br></div></div></div>
</div></div>