<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Your college Chaker pushed the same question,
      just check my reply there ;)<br>
      <br>
      Regards, </font><br>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
  <a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
    <div class="moz-cite-prefix">On 08.05.2024 17:53,
      <a class="moz-txt-link-abbreviated" href="mailto:amel.guesmi@sofrecom.com">amel.guesmi@sofrecom.com</a> wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0f95840d3e6b4b39bb4b13c142340487@sofrecom.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator"
        content="Microsoft Word 15 (filtered medium)">
      <style>@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}@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;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}@font-face
        {font-family:Aptos;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Arial",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}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"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif">Hello,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif">Any
            help please regarding my question ?<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif">Thank
             you
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif">BR,
            Amel<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
        <div>
          <div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:FR">De :</span></b><span
style="font-family:"Calibri",sans-serif;mso-ligatures:none;mso-fareast-language:FR">
                GUESMI Amel SOFRECOM
                <br>
                <b>Envoyé :</b> lundi 29 avril 2024 10:57<br>
                <b>À :</b> OpenSIPS users mailling list
                <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
                <b>Cc :</b> DL FT-FR Sbc TEAM
                <a class="moz-txt-link-rfc2396E" href="mailto:sbc.team@sofrecom.com"><sbc.team@sofrecom.com></a><br>
                <b>Objet :</b> Tracer module integration with Opensips
                3.4<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">Hello Everyone,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">I need your support to add tracer module in
            order to</span><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black;background:white"
            lang="EN-US"> store incoming/outgoing SIP messages in
            database.<br>
            I already add some configs to my opensips.cfg file:<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black;background:white"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:Consolas;color:black;background:white"
              lang="EN-US">### Tracer ###<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:Consolas;color:black;background:white"
              lang="EN-US">loadmodule "tracer.so"<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:Consolas;color:black;background:white"
              lang="EN-US">modparam("tracer", "trace_on", 1)<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:Consolas;color:black;background:white"
              lang="EN-US">modparam("tracer", "trace_local_ip",
              "opensips:5060")<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:Consolas;color:black;background:white"
              lang="EN-US">modparam("tracer",
"trace_id","[tid]uri=mysql://opensips:opensipsrw@ossdb/opensips;table=sip_trace;")<br>
            </span></b><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">….<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">if
              ( is_method("INVITE")) {<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">                                 
              record_route();<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">                                 
              do_accounting("db|log", "cdr|missed", "acc");<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">                                 
              trace($var(trace_id), "d", "sip|xlog", $var(user));<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">                                 
              <o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">                                  t_relay();<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">                                 
              exit;<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US">                             
              }<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><span
              style="font-size:10.0pt;font-family:Consolas" lang="EN-US"><o:p> </o:p></span></b></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">The error in Opensips logs is:<br>
            <br>
            ERROR:core:db_check_api: module db_mysql does not export
            db_use_table function<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            ERROR:tracer:get_db_struct:
            <b>unable to bind database module</b><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            ERROR:tracer:parse_siptrace_id: Invalid parameters
            extracted!url
            <mysql://opensips:opensipsrw@ossdb/opensips>! table
            name <sip_trace>!<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            ERROR:tracer:parse_trace_id:
            <b>failed to parse tracer uri []</b><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            CRITICAL:Traceback (last included file at the bottom):<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            CRITICAL: 0. /etc/opensips/opensips.cfg<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            CRITICAL:core:yyerror: parse error in
            /etc/opensips/opensips.cfg:53:19-20:
            <b>Parameter <trace_id> not found in module
              <tracer> - can't set<o:p></o:p></b></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            CRITICAL:modparam("tracer", "trace_on", 1)<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            CRITICAL:modparam("tracer", "trace_local_ip",
            "opensips:5060")<o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
            lang="EN-US">2024-04-25 09:29:10 Apr 25 10:29:10 [52]
            CRITICAL:modparam("tracer",
"trace_id","[tid]uri=mysql://opensips:opensipsrw@ossdb/opensips;table=sip_trace;")<br>
            <br>
            I think that the module should store the messages in
            sip_trace table but I didn’t understand how to configure
            properly the trace_id with mysql module.<br>
            Could you help me please ?<br>
            <br>
            <br>
            Thank you.<br>
            Best Regards,<br>
            Amel on behalf of my colleague Chaker</span><span
            lang="EN-US"><o:p></o:p></span></p>
        <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>