<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,<br>
    </p>
    <div class="moz-cite-prefix">On 11.06.20 16:15, Karsten Horsmann
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFArqsaZPo+G7aDDWtD5+s3-Why9oDaOMXZMqu9_+8JadLn4vw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Hi Daniel,
        <div dir="auto"><br>
        </div>
        <div dir="auto">in that case it works (also with topos and then
          sipcapture). With your suggestion. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">In my other case (as webrtc and tls registrar) I
          needed the function to see Kamailio self created traffic and
          so, imho. <br>
        </div>
      </div>
    </blockquote>
    <p>I do not understand exactly what you mean for your other case and
      self created traffic. All incoming/outgoing traffic should be
      captured there.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <blockquote type="cite"
cite="mid:CAFArqsaZPo+G7aDDWtD5+s3-Why9oDaOMXZMqu9_+8JadLn4vw@mail.gmail.com">
      <div dir="auto">
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thanks for the hints. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Cheers </div>
        <div dir="auto">Karsten </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Daniel-Constantin Mierla <<a
            href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
          schrieb am Do., 11. Juni 2020, 13:00:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div>
            <p>Hello,</p>
            <p>to get what is received from/sent to network, you have to
              use:</p>
            <p>modparam("siptrace", "trace_mode", 1)</p>
            <p>And no longer use siptrace flag or functions in
              configuration file. In the configuration file the sip
              message is the one after topos handled the incoming
              message and before topos handles the outgoing message.</p>
            <p>Cheers,<br>
              Daniel<br>
            </p>
            <div>On 11.06.20 11:35, Karsten Horsmann wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hello Daniel,
                <div><br>
                </div>
                <div>thanks for the fast reply.</div>
                <div><br>
                </div>
                <div>i changed the loadmodule order (siptrace.so before
                  topos.so) and its the same behavior. With 
                  sip_trace_mode("t"); </div>
                <div><br>
                </div>
                <div>For better understanding I attached the
                  loading-part of my kamailio.cfg with siptrace and
                  topos.<br>
                </div>
                <div>The howl request route is not included, but
                  didnt matter imho.<br>
                </div>
                <div><br>
                </div>
                <div>Cheers</div>
                <div>Karsten</div>
                <div><br>
                </div>
                <div>[...]<br>
                  # vim: set tabstop=4 softtabstop=4 shiftwidth=4
                  noexpandtab:<br>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">Am Do., 11. Juni 2020
                  um 10:25 Uhr schrieb Daniel-Constantin Mierla <<a
                    href="mailto:miconda@gmail.com" target="_blank"
                    rel="noreferrer" 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 to load siptrace module before the topos
                      module, iirc they use the same event hooks. If
                      doesn't work, then I will check the code.</p>
                    <p>Cheers,<br>
                      Daniel<br>
                    </p>
                    <div>On 11.06.20 10:05, Karsten Horsmann wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>Hi Mailinglist,</div>
                        <div><br>
                        </div>
                        <div>some of my kamailio-version is 5.3.4 with
                          topos.</div>
                        <div><br>
                        </div>
                        <div>During the last discussion about
                          sip_trace_mode("t") i found new behaivor. With
                          this tracingmode i see the "internal" before
                          topos writing.</div>
                        <div><br>
                        </div>
                        <div>Here my questions:</div>
                        <div><br>
                        </div>
                        <div>Can i change it to "whats on the wire"
                          (topos rewritten mode)? I didnt checked all
                          modes.</div>
                        <div>And if so, can i switch that on-the-fly
                          with $var for example? For topos debugging its
                          fine with sip_trace_mode("t") - not for "hey
                          carrier, you made some mistakes".</div>
                        <div><br>
                        </div>
                        <div><br>
                        </div>
                        <div>#!ifdef WITH_HOMER<br>
                          #Siptrace<br>
                          modparam("siptrace", "force_send_sock",
                          "MY_LOCAL_SENDSOCK")<br>
                          # local interface from where to send the
                          duplicated traffic<br>
                          modparam("siptrace", "duplicate_uri",
                          "MY_HOMER_CAPTURE")<br>
                          modparam("siptrace", "hep_mode_on", 1) #
                          enable/disable Homer encapsulate mode<br>
                          modparam("siptrace", "hep_version", 3) # HEPv3
                          the timestamp and capture agent ID will be
                          included in the HEP header<br>
                          modparam("siptrace", "trace_to_database", 0) #
                          trace to database<br>
                          modparam("siptrace", "trace_on", 1) #
                          enable/disable trace<br>
                          modparam("siptrace", "trace_mode", 0) #
                          default 0, if 1 then you dont need call
                          siptrace flag or sip_trace()<br>
                          modparam("siptrace", "hep_capture_id", 8) #
                          capture agent id Limitation: 32-bit for HEPv3.<br>
                          #!endif<br>
                          <br>
                          <br>
                          #!ifdef WITH_HOMER<br>
                          # Set the tracing mode: message, transaction
                          or dialog. Need 5.3.x<br>
                                  sip_trace_mode("t");<br>
                          #!endif<br>
                          <br>
                          *** captured on the topos kamailio:</div>
                        <div><br>
                          2020-06-11 08:35:11 +0200 : <a
                            href="http://172.24.32.28:5060"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">172.24.32.28:5060</a>
                          -> <a href="http://172.24.52.3:5060"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">172.24.52.3:5060</a><br>
                          INVITE <a
                            href="http://sip:+49XXXXXXXXXXXX@172.24.52.3:5060"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">sip:+49XXXXXXXXXXXX@172.24.52.3:5060</a>
                          SIP/2.0<br>
                          Record-Route: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:172.24.32.28;r2=on;lr=on;ftag=1ea69f36;vsf=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO3VzZXI9cGhvbmU-;vst=AAAAAAAAAAAAAAAAAAAAAAAAAABLXVQATFVCVUheUUgcXAIBHnBvcnQ9dGNwO3VzZXI9cGhvbmU-;proxy_media=yes;nat=yes></a><br>
                          Record-Route: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:100.80.0.20;transport=tcp;r2=on;lr=on;ftag=1ea69f36;vsf=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO3VzZXI9cGhvbmU-;vst=AAAAAAAAAAAAAAAAAAAAAAAAAABLXVQATFVCVUheUUgcXAIBHnBvcnQ9dGNwO3VzZXI9cGhvbmU-;proxy_media=yes;nat=yes></a><br>
                          Via: SIP/2.0/UDP
                          172.24.32.28;branch=z9hG4bK34b.1b6e5fbd9cf7af26bb168d1469096714.0;i=74<br>
                          Via: SIP/2.0/TCP
AA.AAA.AAA.AAA:5060;rport=5060;branch=z9hG4bKeca7a7f789c9f647560353e3cf1cd592.ba7930dc<br>
                          Max-Forwards: 52<br>
                          To: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:+49XXXXXXXXXXXX@some.provider.example></a><br>
                          From: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:+49YYYYYYYYYYY@some.provider.example></a>;tag=1ea69f36<br>
                          Call-ID: <a
                            href="mailto:3af87db089119841@AA.AAA.AAA.AAA"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">3af87db089119841@AA.AAA.AAA.AAA</a><br>
                          Contact: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:TFFRA002@AA.AAA.AAA.AAA:5060;transport=tcp></a><br>
                          Supported: histinfo,replaces<br>
                          CSeq: 647169 INVITE<br>
                          Allow: ACK, BYE, CANCEL, INVITE, OPTIONS,
                          REFER, REGISTER, UPDATE<br>
                          P-Asserted-Identity: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:+49BBBBBBBBBB@some.provider.example;user=phone></a><br>
                          Content-Type: application/sdp<br>
                          Content-Disposition: session<br>
                          Content-Length: 298<br>
                          X-Group-SBC: 2006<br>
                          X-Routing-SBC: un2tr-cgn-trunk<br>
                          <br>
                          ---------------------------------------</div>
                        <div>*** captured on the kamailio behind
                          172.24.52.3</div>
                        <div><br>
                          2020-06-11 08:35:11 +0200 : <a
                            href="http://172.24.32.28:5060"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">172.24.32.28:5060</a>
                          -> <a href="http://172.24.52.3:5060"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">172.24.52.3:5060</a><br>
                          INVITE <a
                            href="http://sip:+49XXXXXXXXXXXX@172.24.52.3:5060"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">sip:+49XXXXXXXXXXXX@172.24.52.3:5060</a>
                          SIP/2.0<br>
                          Via: SIP/2.0/UDP
                          172.24.32.28;branch=z9hG4bK34b.1b6e5fbd9cf7af26bb168d1469096714.0;i=74<br>
                          Max-Forwards: 52<br>
                          To: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:+49XXXXXXXXXXXX@some.provider.example></a><br>
                          From: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:+49YYYYYYYYYYY@some.provider.example></a>;tag=1ea69f36<br>
                          Call-ID: <a
                            href="mailto:3af87db089119841@AA.AAA.AAA.AAA"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">3af87db089119841@AA.AAA.AAA.AAA</a><br>
                          Supported: histinfo,replaces<br>
                          CSeq: 647169 INVITE<br>
                          Allow: ACK, BYE, CANCEL, INVITE, OPTIONS,
                          REFER, REGISTER, UPDATE<br>
                          P-Asserted-Identity: <a rel="noreferrer"
                            moz-do-not-send="true"><sip:+49BBBBBBBBBB@some.provider.example;user=phone></a><br>
                          Content-Type: application/sdp<br>
                          Content-Disposition: session<br>
                          Content-Length: 298<br>
                          X-Group-SBC: 2006<br>
                          X-Routing-SBC: un2tr-cgn-trunk<br>
                          Contact: <<a
                            href="mailto:sip%3Abtpsh-5ee1105a-1903c-1@172.24.32.28"
                            target="_blank" rel="noreferrer"
                            moz-do-not-send="true">sip:btpsh-5ee1105a-1903c-1@172.24.32.28</a>><br>
                        </div>
                        <div><br>
                        </div>
                        <br clear="all">
                        <div><br>
                        </div>
                        -- <br>
                        <div dir="ltr">Cheers<br>
                          *Karsten Horsmann*<br>
                        </div>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <pre>_______________________________________________
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" rel="noreferrer" 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" rel="noreferrer" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" rel="noreferrer" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" rel="noreferrer" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" rel="noreferrer" moz-do-not-send="true">https://www.paypal.me/dcmierla</a></pre>
                  </div>
                </blockquote>
              </div>
              <br clear="all">
              <div><br>
              </div>
              -- <br>
              <div dir="ltr">Mit freundlichen Grüßen<br>
                *Karsten Horsmann*<br>
              </div>
            </blockquote>
            <pre cols="72">-- 
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" rel="noreferrer" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" rel="noreferrer" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" rel="noreferrer" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Funding: <a href="https://www.paypal.me/dcmierla" target="_blank" rel="noreferrer" moz-do-not-send="true">https://www.paypal.me/dcmierla</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>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
  </body>
</html>