<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="NL" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hello Daniel,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I’ve enabled the debug only for a moment to get a better understanding of Kamailio and what was happening under the hood.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I’ve done some testing on a newer version of Kamailio (4.3) and didn’t see this problem occur. So I’m not sure if it’s also software version related.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">What else needs to be tuned except for the children parameter?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Are there any guidelines/best practices in configuring the amount of child parameters?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thanks for your answer!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Grant<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="EN-US" style="color:windowtext;mso-fareast-language:NL">From:</span></b><span lang="EN-US" style="color:windowtext;mso-fareast-language:NL"> sr-users [mailto:sr-users-bounces@lists.sip-router.org]
<b>On Behalf Of </b>Daniel-Constantin Mierla<br>
<b>Sent:</b> Monday, January 11, 2016 5:37 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org><br>
<b>Subject:</b> Re: [SR-Users] siptrace retransmission's<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<br>
<br>
I expect that the log message from sip trace means that a retransmission was detected and it is not going to be sent to sipcature server.<br>
<br>
Printing the log messages for memory operations (malloc/free) is going to be very costly in terms of performaces, be sure that parameters memlog/memdbg are lower than debug.<br>
<br>
<span lang="EN-US">Also, depending of the config various tunings may be required for increasing the perormances, such as value of children parameter.<br>
<br>
</span>Cheers,<br>
Daniel<span style="font-size:12.0pt;mso-fareast-language:NL"><o:p></o:p></span></p>
<div>
<p class="MsoNormal">On 11/01/16 11:06, Grant Bagdasarian wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello All,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’m load testing Kamailio with siptrace (duplicate) enabled, but for some reason not all SIP messages are arriving at the sip capture server (kamailio instance with sipcapture).</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">The load is an average of 50 CPS.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I enabled debug 9 and I get the following messages.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core> [mem/q_malloc.c:369]: qm_malloc(): qm_malloc(0x7fefde4da010, 1274) called from siptrace: siptrace.c: trace_send_hep_duplicate(1615)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core> [mem/q_malloc.c:439]: qm_free(): qm_free(0x7fefde4da010, 0x7fefde618a88), called from siptrace: siptrace.c: trace_send_hep_duplicate(1659)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core> [mem/q_malloc.c:439]: qm_free(): qm_free(0x7fefde4da010, 0x7fefde61ee18), called from siptrace: siptrace.c: trace_send_hep_duplicate(1660)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core> [mem/q_malloc.c:474]: qm_free(): qm_free: freeing frag. 0x7fefde61ede8 alloc'ed from siptrace: siptrace.c: trace_send_hep_duplicate(1615)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core> [mem/q_malloc.c:369]: qm_malloc(): qm_malloc(0x7fefde4da010, 1271) called from siptrace: siptrace.c: trace_send_hep_duplicate(1615)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core> [mem/q_malloc.c:439]: qm_free(): qm_free(0x7fefde4da010, 0x7fefde61b488), called from siptrace: siptrace.c: trace_send_hep_duplicate(1659)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core> [mem/q_malloc.c:439]: qm_free(): qm_free(0x7fefde4da010, 0x7fefde61e880), called from siptrace: siptrace.c: trace_send_hep_duplicate(1660)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"><core> [mem/q_malloc.c:474]: qm_free(): qm_free: freeing frag. 0x7fefde61e850 alloc'ed from siptrace: siptrace.c: trace_send_hep_duplicate(1615)</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace [siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace [siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace [siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace [siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace [siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace [siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace [siptrace.c:1040]: trace_onreq_out(): retransmission</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">In siptrace.c I see the following line of code:</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">                if(ps->flags&TMCB_RETR_F) {</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">                               LM_DBG("retransmission\n");</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">                               return;</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">                }</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Does this in fact retransmit the message to the capture server?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Has anyone else load tested kamailio with siptrace on?</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I’m using Kamailio 4.1. I’m also using the setflag(..) function in siptrace module to duplicate all forwarded messages to the capture server.
</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Grant</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:NL"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre>
<pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:NL"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla<o:p></o:p></pre>
<pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Book: SIP Routing With Kamailio - <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre>
<pre><a href="http://miconda.eu">http://miconda.eu</a><o:p></o:p></pre>
</div>
</body>
</html>