<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi,<br>
      <br>
      For sure it's because of the missing db_mysql module - check *ALL*
      the opensips logs, most probably the module failed to load.<br>
      <br>
      Regards,<br>
    </font>
    <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 07.06.2024 15:54,
      <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:e1434ed4cc3c4f0692e96a3db89ec430@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:"Nunito Sans";}@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;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Nunito Sans";
        color:windowtext;}span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Courier New";}.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:"Nunito Sans"">Hello
            Bogdan,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Nunito Sans""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Nunito Sans"">Yes
            we load the module
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Nunito Sans""><o:p> </o:p></span></p>
        <div
style="mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
          <p class="MsoNormal" style="border:none;padding:0cm"><span
style="font-size:10.5pt;font-family:Consolas;color:#242424;background:white">"db_mysql.so"        /*
              This is a module which provides MySQL connectivity for
              OpenSIPS *<o:p></o:p></span></p>
          <p class="MsoNormal" style="border:none;padding:0cm"><span
style="font-size:10.5pt;font-family:Consolas;color:#242424;background:white"><o:p> </o:p></span></p>
          <p class="MsoNormal" style="border:none;padding:0cm"><span
style="font-size:10.5pt;font-family:Consolas;color:#242424;background:white">BR,
              Amel
              <o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Nunito Sans""><o:p> </o:p></span></p>
        <pre><span style="color:black">Hi,<o:p></o:p></span></pre>
        <pre><span style="color:black"><o:p> </o:p></span></pre>
        <pre><span style="color:black">Quick one: do you load the db_mysql.so module too ?<o:p></o:p></span></pre>
        <pre><span style="color:black"><o:p> </o:p></span></pre>
        <pre><span style="color:black">Regards,<o:p></o:p></span></pre>
        <pre><span style="color:black"><o:p> </o:p></span></pre>
        <pre><span style="color:black">Bogdan-Andrei Iancu<o:p></o:p></span></pre>
        <pre><span style="color:black"><o:p> </o:p></span></pre>
        <pre><span style="color:black">OpenSIPS Founder and Developer<o:p></o:p></span></pre>
        <pre><span style="color:black">   <a
        href="https://www.opensips-solutions.com/"
        moz-do-not-send="true" class="moz-txt-link-freetext">https://www.opensips-solutions.com</a><o:p></o:p></span></pre>
        <pre><span style="color:black">   <a
        href="https://www.siphub.com/" moz-do-not-send="true"
        class="moz-txt-link-freetext">https://www.siphub.com</a><o:p></o:p></span></pre>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Nunito Sans""><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:10.0pt;font-family:"Nunito Sans""><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 <a class="moz-txt-link-rfc2396E" href="mailto:amel.guesmi@sofrecom.com"><amel.guesmi@sofrecom.com></a>
                <br>
                <b>Envoyé :</b> mercredi 8 mai 2024 15:53<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> RE: 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">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
                  href="mailto:users@lists.opensips.org"
                  moz-do-not-send="true" class="moz-txt-link-freetext">users@lists.opensips.org</a>><br>
                <b>Cc :</b> DL FT-FR Sbc TEAM <<a
                  href="mailto:sbc.team@sofrecom.com"
                  moz-do-not-send="true" class="moz-txt-link-freetext">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>