<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Nabeel,<br>
      <br>
      Put the setflag() before the siptrace() .<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 06.01.2016 16:26, Nabeel wrote:<br>
    </div>
    <blockquote
cite="mid:CA+vx6KLm6Zmdef-5eS_FD_BYWcrajZpciw3KfRKER2H4iFSUkg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Bogdan,
        <div><br>
        </div>
        <div>I'm trying to use the siptrace module to capture SIP
          traffic, as I am using TLS.</div>
        <div><br>
        </div>
        <div>In my config file I have the following:</div>
        <div><br>
        </div>
        <div>
          <div>...</div>
          <div><br>
          </div>
          <div>loadmodule "siptrace.so"</div>
          <div>modparam("siptrace", "db_url", "mysql<span
              style="color:rgb(0,0,0);background-color:rgb(254,254,238)">://user:passwd@host/dbname</span>")<br>
          </div>
          <div>modparam("siptrace", "trace_flag", "TRACE_FLAG")</div>
        </div>
        <div><br>
        </div>
        <div>...</div>
        <div><br>
        </div>
        <div>
          <div>route{</div>
          <div>sip_trace();</div>
          <div>setflag(TRACE_FLAG);</div>
        </div>
        <div><br>
        </div>
        <div>...</div>
        <div><br>
        </div>
        <div>I also did '<span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">opensipsctl
            fifo sip_trace on', but </span>nothing is captured in the
          sip_trace table of the database.  </div>
        <div><br>
        </div>
        <div>I want to capture all traffic.  What am I missing?</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>