<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
Quick one: do you load the db_mysql.so module too ?<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 25.04.2024 11:31,
<a class="moz-txt-link-abbreviated" href="mailto:chaker.barkaoui@sofrecom.com">chaker.barkaoui@sofrecom.com</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:36e45252719644c2981f64eb6b7d2fbe@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:Aptos;}@font-face
{font-family:"Helvetica 75 Bold";}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}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.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;
mso-fareast-language:EN-US;}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"
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>
Chaker BARKAOUI.</span><span lang="EN-US"><o:p></o:p></span></p>
<div
style="margin-left:5.0pt;margin-top:5.0pt;margin-right:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal" style="text-align:center" align="center"><span
style="font-size:8.0pt;font-family:"Helvetica 75 Bold";color:#ED7D31"
lang="EN-US">Orange Restricted<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif"
lang="EN-US"><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>