<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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>
    Also, depending of the config various tunings may be required for
    increasing the perormances, such as value of children parameter.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 11/01/16 11:06, Grant Bagdasarian
      wrote:<br>
    </div>
    <blockquote
      cite="mid:91cafbbd3cae40e0b0dacfe339782697@CM-EX-V01.cm.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@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]-->
      <div class="WordSection1">
        <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).<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">The load is an average
            of 50 CPS.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I enabled debug 9 and I
            get the following messages.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></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)<o:p></o:p></span></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)<o:p></o:p></span></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)<o:p></o:p></span></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)<o:p></o:p></span></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)<o:p></o:p></span></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)<o:p></o:p></span></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)<o:p></o:p></span></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)<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
            [siptrace.c:1040]: trace_onreq_out(): retransmission<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
            [siptrace.c:1040]: trace_onreq_out(): retransmission<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
            [siptrace.c:1040]: trace_onreq_out(): retransmission<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
            [siptrace.c:1040]: trace_onreq_out(): retransmission<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
            [siptrace.c:1040]: trace_onreq_out(): retransmission<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
            [siptrace.c:1040]: trace_onreq_out(): retransmission<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">DEBUG: siptrace
            [siptrace.c:1040]: trace_onreq_out(): retransmission<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">In siptrace.c I see the
            following line of code:<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">               
            if(ps->flags&TMCB_RETR_F) {<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                              
            LM_DBG("retransmission\n");<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                              
            return;<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">                }<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Does this in fact
            retransmit the message to the capture server?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Has anyone else load
            tested kamailio with siptrace on?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></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.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Grant<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
  </body>
</html>