<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>ahh, just noticed you are tracing from the config at transaction
      layer, meaning that traffic is sent during config processing when
      the content is without topos changes.</p>
    <p>To get the traffic as seen on the network, set modparam
      trace_mode=1 and remove the use of sip_trace()/sip_trace_mode() in
      routing blocks. You can still filter what is sent out using
      event_route blocks, if you do not want all the traffic to be
      mirrored.<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 24.09.21 18:19, Angelo Sipper wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALWKM21BEGMe8Vqzo4YNcf+Zz_cYKKFeK_TU=dMNWZLkpzbBoA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Daniel,
        <div><br>
        </div>
        <div>I did this change but unfortunately no change.
          Anything more I could check?</div>
        <div><br>
        </div>
        <div>Kind regards,</div>
        <div>Angelo</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Στις Παρ, 24 Σεπ 2021 στις
          9:11 π.μ., ο/η Daniel-Constantin Mierla <<a
            href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
          έγραψε:<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>
            <p>Hello,</p>
            <p>try loading siptrace module before topos.</p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <div>On 23.09.21 19:57, Angelo Sipper wrote:<br>
            </div>
            <blockquote type="cite">
              <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
                    moz-do-not-send="true">sip:MY_HOMER_IP_ADDR:MY_HOMER_PORT!g</a>"<br>
                  #!substdef "!MY_LOCAL_SENDSOCK!<a
                    moz-do-not-send="true">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></fieldset>
              <pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">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 href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
            </blockquote>
            <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
Nov 08-11, 2021 (Europe Timezone) - Nov 22-25, 2021 (America Timezone)
  * <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" target="_blank" moz-do-not-send="true">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
          </div>
        </blockquote>
      </div>
    </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>