<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>how do you execute that sql statement?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 05.11.18 10:40, Nicolas Breuer
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM6P192MB03895BD35A727A2F4B84BCF389CA0@AM6P192MB0389.EURP192.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
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";
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:Consolas;
color:black;
mso-fareast-language:EN-US;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#002060;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#002060;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#002060;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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="color:#002060">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#002060"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">We
see the error when this procedure is executed :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">BEGIN<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
delete FROM sip_trace where time_stamp < now() - INTERVAL
2 MONTH;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
OPTIMIZE TABLE sip_trace;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">END
$$<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US"><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="mso-fareast-language:FR-BE" lang="FR">De :</span></b><span
style="mso-fareast-language:FR-BE" lang="FR">
Daniel-Constantin Mierla <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a>
<br>
<b>Envoyé :</b> lundi 5 novembre 2018 09:45<br>
<b>À :</b> Nicolas Breuer
<a class="moz-txt-link-rfc2396E" href="mailto:Nicolas.Breuer@belcenter.biz"><Nicolas.Breuer@belcenter.biz></a>; Kamailio (SER) -
Users Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a><br>
<b>Objet :</b> Re: [SR-Users] Mysql<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>There is no column "Msg_text" there, are you sure it is about
this table?<o:p></o:p></p>
<p>Cheers,<br>
Daniel<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 05.11.18 09:37, Nicolas Breuer wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">|
sip_trace | CREATE TABLE `sip_trace` (</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`time_stamp` datetime NOT NULL DEFAULT '1900-01-01
00:00:01',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`time_us` int(10) unsigned NOT NULL DEFAULT '0',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`callid` varchar(255) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`traced_user` varchar(128) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`msg` mediumtext NOT NULL,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`method` varchar(50) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`status` varchar(128) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`fromip` varchar(50) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`toip` varchar(50) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`fromtag` varchar(64) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`totag` varchar(64) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
`direction` varchar(4) NOT NULL DEFAULT '',</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
PRIMARY KEY (`id`),</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
KEY `traced_user_idx` (`traced_user`),</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
KEY `date_idx` (`time_stamp`),</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
KEY `fromip_idx` (`fromip`),</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
KEY `callid_idx` (`callid`),</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
KEY `id` (`id`),</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">
KEY `id_2` (`id`)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060">)
ENGINE=MyISAM AUTO_INCREMENT=6810087 DEFAULT
CHARSET=latin1 ROW_FORMAT=DYNAMIC |</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060">+-----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-fareast-language:FR-BE" lang="FR">De :</span></b><span
style="mso-fareast-language:FR-BE" lang="FR">
Daniel-Constantin Mierla
<a href="mailto:miconda@gmail.com"
moz-do-not-send="true"><miconda@gmail.com></a>
<br>
<b>Envoyé :</b> lundi 5 novembre 2018 09:35<br>
<b>À :</b> Kamailio (SER) - Users Mailing List <a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">
<sr-users@lists.kamailio.org></a>; Nicolas
Breuer <a href="mailto:Nicolas.Breuer@belcenter.biz"
moz-do-not-send="true">
<Nicolas.Breuer@belcenter.biz></a><br>
<b>Objet :</b> Re: [SR-Users] Mysql</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p>Hello,<o:p></o:p></p>
<p>can you give the output of the next command run in mysql
client tool?<o:p></o:p></p>
<p>show create table sip_trace;<o:p></o:p></p>
<p>Cheers,<br>
Daniel<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">On 04.11.18 10:09, Nicolas Breuer
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#002060">Hello,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="color:#002060;mso-fareast-language:FR-BE"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="color:#002060;mso-fareast-language:FR-BE"
lang="EN-US">Working on sip_trace table produce this
error</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="color:#002060;mso-fareast-language:FR-BE"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="color:#002060;mso-fareast-language:FR-BE"
lang="EN-US">WARNING: db_mysql [km_res.c:142]:
db_mysql_get_columns(): unhandled data type column
(Msg_text) type id (250), use DB1_STRING as default</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="color:#002060;mso-fareast-language:FR-BE"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="mso-fareast-language:FR-BE"><br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Kamailio (SER) - Users Mailing List<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a><o:p></o:p></pre>
<pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:FR-BE"><br>
<br>
<br>
</span><o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla -- <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio World Conference -- <a href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:FR-BE"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla -- <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio World Conference -- <a href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<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>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
</body>
</html>