<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>try loading siptrace module before topos.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 23.09.21 19:57, Angelo Sipper wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALWKM23TR9vYfo4pexR_7RR7pYTH3fQFRo7jEF0+W4t78r5anA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>We are using kamailio 5.3 latest version with the topos
          module. We have added Homer 7 latest version to consolidate
          traces from all kamailios and we have enabled siptrace module
          on kamailio to send data to homer. What we have seen up
          today is that traces on homer have sip headers before topos
          changes. So if I look at the same call on sngrep on the
          kamailio machine, I see the correct topos changed headers. If
          I check the same call on Homer I see headers without topos
          changes. Also we get duplicate headers on ACKs on homer.</div>
        <div><br>
        </div>
        <div>I was wondering what we have done wrong in the config and
          we have these results on homer. Any help will be much
          appreciated!</div>
        <div><br>
        </div>
        <div>Our config has:</div>
        <div>===========-</div>
        <div>#!substdef
          "!MY_HOMER_CAPTURE!<a class="moz-txt-link-freetext" href="sip:MY_HOMER_IP_ADDR:MY_HOMER_PORT!g">sip:MY_HOMER_IP_ADDR:MY_HOMER_PORT!g</a>"<br>
          #!substdef
          "!MY_LOCAL_SENDSOCK!<a class="moz-txt-link-freetext" href="sip:MY_KAMAILIO_IP:MY_LOCAL_SEND_PORT!g">sip:MY_KAMAILIO_IP:MY_LOCAL_SEND_PORT!g</a>"<br>
          <br>
        </div>
        <div>loadmodule "topos.so"<br>
        </div>
        <div>loadmodule "siptrace.so"</div>
        <div><br>
          modparam("siptrace", "force_send_sock", "MY_LOCAL_SENDSOCK")<br>
          modparam("siptrace", "duplicate_uri", "MY_HOMER_CAPTURE")<br>
          modparam("siptrace", "hep_mode_on", 1)<br>
          modparam("siptrace", "hep_version", 3)<br>
          modparam("siptrace", "trace_to_database", 0)<br>
          modparam("siptrace", "trace_on", 1)<br>
          modparam("siptrace", "trace_mode", 0)<br>
          modparam("siptrace", "hep_capture_id", NODE_ID)<br>
          <br>
        </div>
        <div>modparam("topos", "db_url", DBURL)<br>
        </div>
        <div>modparam("topos", "mask_callid", 0)<br>
          modparam("topos", "sanity_checks", 0)<br>
          modparam("topos", "branch_expire", 130) # 3 Min<br>
          modparam("topos", "dialog_expire", 10800) # 3 Hours<br>
          modparam("topos", "clean_interval", 60)<br>
          modparam("topos", "event_mode", 3)<br>
        </div>
        <div><br>
        </div>
        <div>request_route {<br>
          sip_trace_mode("t");<br>
          ........<br>
        </div>
        <div>}</div>
        <div><br>
        </div>
        <div>onsend_route {<br>
              if (is_method("ACK")) {<br>
          sip_trace();<br>
              }<br>
          }<br>
        </div>
        <div>==============</div>
        <div><br>
        </div>
        <div>Thank you!</div>
        <div><br>
        </div>
        <div>Kind regards,</div>
        <div>Angelo</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
Nov 08-11, 2021 (Europe Timezone) - Nov 22-25, 2021 (America Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>