<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>You need to install libmysqlclient (-dev) -- see the readme of
db_mysql module for dependencies.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 19.10.18 09:19, Nicolas Breuer
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:E4E3190A-1BD3-450A-8EAD-B3826703E436@belcenter.biz">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">I install mysql server from sources </div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
Le 19 oct. 2018 à 09:15, Daniel-Constantin Mierla <<a
href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@gmail.com</a>>
a écrit :<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 19.10.18 09:02, Nicolas Breuer
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM6P192MB0389F35C48DA2DE85861EF9989F90@AM6P192MB0389.EURP192.PROD.OUTLOOK.COM">
<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:"Segoe UI Emoji";}
@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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Texte brut Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
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.TextebrutCar
{mso-style-name:"Texte brut Car";
mso-style-priority:99;
mso-style-link:"Texte brut";
font-family:"Calibri",sans-serif;
mso-fareast-language:FR-BE;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri",sans-serif;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Calibri",sans-serif;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Calibri",sans-serif;}
span.EmailStyle26
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#002060;}
span.EmailStyle27
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#002060;}
span.EmailStyle28
{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"><o:p> </o:p></p>
<p><span lang="EN-US">Did you install libmysqlclient from
sources?<o:p></o:p></span></p>
<p><span style="color:#002060" lang="EN-US">NO<o:p></o:p></span></p>
</div>
</blockquote>
<br>
How the file /usr/local/mysql/include/mysql.h was deployed?
What is your operating system?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<blockquote type="cite"
cite="mid:AM6P192MB0389F35C48DA2DE85861EF9989F90@AM6P192MB0389.EURP192.PROD.OUTLOOK.COM">
<div class="WordSection1">
<p><span style="color:#002060" lang="EN-US"><o:p> </o:p></span></p>
<p><span lang="EN-US">Is pkg-config installed?<o:p></o:p></span></p>
<p><span style="color:#002060"><o:p> </o:p></span></p>
<p><span style="color:#002060">YES<o:p></o:p></span></p>
<p><span style="color:#002060"><o:p> </o:p></span></p>
<p><span style="color:#002060"><o:p> </o:p></span></p>
<p>Cheers,<br>
Daniel<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 19.10.18 08:44, 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"> </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">
Nicolas Breuer
<br>
<b>Envoyé :</b> jeudi 18 octobre 2018 13:20<br>
<b>À :</b> <a href="mailto:miconda@gmail.com"
moz-do-not-send="true">miconda@gmail.com</a>;
Kamailio (SER) - Users Mailing List
<a href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true"><sr-users@lists.kamailio.org></a><br>
<b>Objet :</b> RE: [SR-Users] Script @Startup</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060">Hi
Daniel,</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"
lang="EN-US">Tried to compile from master on a test
machine.</span><o:p></o:p></p>
<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">But failed on mysql.h -> mysql.h is
well present on the server.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">Any ideas?</span><o:p></o:p></p>
<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"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">[root@proxy1 src]# make install</span><o:p></o:p></p>
<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">touch
/usr/local/sbin//kamailio</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">install -m 755 kamailio
/usr/local/sbin/</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">CC (gcc) [M db_mysql.so]
db_mysql.o</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">In file included from db_mysql.c:30:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">my_con.h:30:19: warning: mysql.h: No
such file or directory</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">In file included from db_mysql.c:30:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">my_con.h:40: error: expected
specifier-qualifier-list before âMYSQLâ</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">In file included from db_mysql.c:31:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">my_cmd.h:40: error: expected
specifier-qualifier-list before âMYSQL_STMTâ</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">In file included from db_mysql.c:32:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">my_fld.h:45: error: expected
specifier-qualifier-list before âmy_boolâ</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">db_mysql.c: In function
âmysql_mod_initâ:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">db_mysql.c:149: error:
âMYSQL_VERSION_IDâ undeclared (first use in this
function)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">db_mysql.c:149: error: (Each undeclared
identifier is reported only once</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">db_mysql.c:149: error: for each
function it appears in.)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">make[1]: *** [db_mysql.o] Error 1</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US">make: *** [install-modules] Error 1</span><o:p></o:p></p>
<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">[root@proxy1 src]# locate mysql.h</span><o:p></o:p></p>
<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">/usr/local/mysql/include/mysql.h</span><o:p></o:p></p>
<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"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"
lang="EN-US"> </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> jeudi 18 octobre 2018 09:21<br>
<b>À :</b> Nicolas Breuer <<a
href="mailto:Nicolas.Breuer@belcenter.biz"
moz-do-not-send="true">Nicolas.Breuer@belcenter.biz</a>>;
Kamailio (SER) - Users Mailing List <<a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">sr-users@lists.kamailio.org</a>><br>
<b>Objet :</b> Re: [SR-Users] Script @Startup</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p>Well, I guess you can test somewhere else or rebuild
the binaries ...<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 18.10.18 09:06, Nicolas Breuer
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello Daniel,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Sorry but i
don’t have the source on this server, this is the
production VM </span><span
style="font-family:"Segoe UI
Emoji",sans-serif">😊</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </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> jeudi 18 octobre 2018 09:01<br>
<b>À :</b> Nicolas Breuer <a
href="mailto:nicolas.breuer@belcenter.biz"
moz-do-not-send="true">
<nicolas.breuer@belcenter.biz></a>;
Kamailio (SER) - Users Mailing List <a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">
<sr-users@lists.kamailio.org></a><br>
<b>Objet :</b> Re: [SR-Users] Script @Startup</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p>Can you try with master branch or the patch from
the commit linked next?<o:p></o:p></p>
<p> - <a
href="https://github.com/kamailio/kamailio/commit/a4b6a5cb1dda7576b265a23c91321b7f2a034658"
moz-do-not-send="true">
https://github.com/kamailio/kamailio/commit/a4b6a5cb1dda7576b265a23c91321b7f2a034658</a><o:p></o:p></p>
<p>If all ok, I will backport to 5.1 branch.<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 17.10.18 19:45, Nicolas
Breuer wrote:<o:p></o:p></p>
</div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">version:
kamailio 5.1.5 (x86_64/linux) d06080</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">flags:
STATS: Off, USE_TCP, USE_TLS, USE_SCTP,
TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC,
DBG_SR_MEMORY, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024,
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">poll method
support: poll, epoll_lt, epoll_et, sigio_rt,
select.</span><o:p></o:p></p>
<p class="MsoNormal">id: d06080 <o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">compiled on
10:02:52 Aug 22 2018 with gcc 4.4.7</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </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> mercredi 17 octobre 2018
19:44<br>
<b>À :</b> Nicolas Breuer <a
href="mailto:nicolas.breuer@belcenter.biz"
moz-do-not-send="true">
<nicolas.breuer@belcenter.biz></a>;
Kamailio (SER) - Users Mailing List <a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">
<sr-users@lists.kamailio.org></a><br>
<b>Objet :</b> Re: [SR-Users] Script
@Startup</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p>Hello,<o:p></o:p></p>
<p>what is exact version you are running?<o:p></o:p></p>
<p>Output for: kamailio -v<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 17.10.18 19:36, Nicolas
Breuer wrote:<o:p></o:p></p>
</div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span lang="EN-US">Hello,</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">I found
the core file.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Loaded
symbols for
/usr/lib64/kamailio/modules/alias_db.so</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Reading
symbols from
/usr/lib64/kamailio/modules/nathelper.so...Reading
symbols from
/usr/lib/debug/usr/lib64/kamailio/modules/nathelper.so.debug...done.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">done.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Loaded
symbols for
/usr/lib64/kamailio/modules/nathelper.so</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Reading
symbols from
/usr/lib64/kamailio/modules/debugger.so...Reading
symbols from
/usr/lib/debug/usr/lib64/kamailio/modules/debugger.so.debug...done.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">done.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Loaded
symbols for
/usr/lib64/kamailio/modules/debugger.so</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Core was
generated by `/usr/sbin/kamailio -f
/etc/kamailio/kamailio.cfg -P
/var/run/kamailio/kamailio.'.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Program
terminated with signal 11, Segmentation fault.</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#0
0x00000033b7a89780 in memcpy () from
/lib64/libc.so.6</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">Missing
separate debuginfos, use: debuginfo-install
glibc-2.12-1.212.el6.x86_64
keyutils-libs-1.4-5.el6.x86_64
krb5-libs-1.10.3-65.el6.x86_64
libcom_err-1.41.12-24.el6.x86_64
libselinux-2.0.94-7.el6.x86_64
mysql-libs-5.1.73-8.el6_8.x86_64
nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64
openssl-1.0.1e-57.el6.x86_64
zlib-1.2.3-29.el6.x86_64</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">(gdb) bt</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#0
0x00000033b7a89780 in memcpy () from
/lib64/libc.so.6</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#1
0x000000000071e803 in select_cfg_var
(res=0x7fff67b56690, s=0x7f90d37f34f8,
msg=0xa50460) at core/cfg/cfg_select.c:223</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#2
0x000000000059d429 in run_select
(res=0x7fff67b56690, s=0x7f90d37f34f8,
msg=0xa50460) at core/select.c:425</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#3
0x00007f90d178740d in pv_get_select
(msg=0xa50460, param=0x7f90d37f3428,
res=0x7fff67b567b0) at pv_select.c:61</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#4
0x0000000000523e09 in pv_get_spec_value
(msg=0xa50460, sp=0x7f90d37f3410,
value=0x7fff67b567b0) at core/pvapi.c:1380</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#5
0x00000000005242be in pv_printf (msg=0xa50460,
list=0x7f90d3924998, buf=0x7f90d2e58260
"select Status FROM x_providers_SIP where
Provider like 'PROXY%' and (Proxy_ID='",
len=0x7fff67b5687c) at core/pvapi.c:1439</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#6
0x00007f90d2c2f9f0 in ops_dbquery_avps
(msg=0xa50460, query=0x7f90d3924998,
dest=0x7f90d3924aa8) at avpops_impl.c:744</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#7
0x00007f90d2c218f5 in w_dbquery2_avps
(msg=0xa50460, query=0x7f90d3924998 "pa[Ó177",
dest=0x7f90d3924aa8 "\004") at avpops.c:1022</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#8
0x0000000000434041 in do_action
(h=0x7fff67b57300, a=0x7f90d35b5cb0,
msg=0xa50460) at core/action.c:1079</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#9
0x0000000000440bd5 in run_actions
(h=0x7fff67b57300, a=0x7f90d35b4480,
msg=0xa50460) at core/action.c:1565</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#10
0x0000000000441361 in run_top_route
(a=0x7f90d35b4480, msg=0xa50460,
c=0x7fff67b57300) at core/action.c:1654</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#11
0x0000000000441910 in run_child_one_init_route
() at core/action.c:1680</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#12
0x000000000042424b in main_loop () at
main.c:1616</span><o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-US">#13
0x000000000042b5ee in main (argc=13,
argv=0x7fff67b578e8) at main.c:2638</span><o:p></o:p></p>
<p class="MsoNormal"><span 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 lang="EN-US"> </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> mercredi 17 octobre 2018
19:16<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] Script
@Startup</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p>Hello,<o:p></o:p></p>
<p>the log message says that core file was
generated, get the backtrace from it with gdb
and post it here in order to see where the crash
was.<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 17.10.18 18:59, Nicolas
Breuer wrote:<o:p></o:p></p>
</div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US">Hello,</span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US"
lang="EN-US">Doing an avp_db_query works but
we have a crash just after
</span><span style="font-family:"Segoe UI
Emoji",sans-serif" lang="EN-US">😊</span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US"
lang="EN-US">Oct 17 18:58:11 proxy1 kernel:
kamailio[8987]: segfault at 0 ip
00000033b7a89780 sp 00007fff8e7765a8 error 4
in libc-2.12.so[33b7a00000+18b000]</span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US"
lang="EN-US">Oct 17 18:58:12 proxy1
/usr/sbin/kamailio[8986]: ALERT:
<core> [main.c:739]: handle_sigs():
child process 8987 exited by a signal 11</span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US"
lang="EN-US">Oct 17 18:58:12 proxy1
/usr/sbin/kamailio[8986]: ALERT:
<core> [main.c:742]: handle_sigs():
core was generated</span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="FR">-----Message
d'origine-----<br>
De : sr-users <a
href="mailto:sr-users-bounces@lists.kamailio.org"
moz-do-not-send="true">
<sr-users-bounces@lists.kamailio.org></a> De la part de Mikko
Lehto<br>
Envoyé : mercredi 17 octobre 2018 09:28<br>
À : Kamailio (SER) - Users Mailing List <a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">
<sr-users@lists.kamailio.org></a><br>
Objet : Re: [SR-Users] Script @Startup<br>
Importance : Haute</span><o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">Nicolas Breuer <<a
href="mailto:nicolas.breuer@belcenter.biz"
moz-do-not-send="true"><span
style="text-decoration:none">nicolas.breuer@belcenter.biz</span></a>>:<o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">> Is there a way to
execute some codes/scripts at the launch of
the Kamailio Server ?<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> So only once when
we launch the server.<o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">Hi, maybe event route
core:worker-one-init is helpful to you.<o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">See: <a
href="http://kamailio.org/wiki/cookbooks/5.1.x/core#event_route"
moz-do-not-send="true">
<span style="text-decoration:none">http://kamailio.org/wiki/cookbooks/5.1.x/core#event_route</span></a><o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">-- <o:p></o:p></p>
<p class="MsoPlainText">Mikko<o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">_______________________________________________<o:p></o:p></p>
<p class="MsoPlainText">Kamailio (SER) - Users
Mailing List<o:p></o:p></p>
<p class="MsoPlainText"><a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true"><span
style="text-decoration:none">sr-users@lists.kamailio.org</span></a><o:p></o:p></p>
<p class="MsoPlainText"><a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
moz-do-not-send="true"><span
style="text-decoration:none">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</span></a><o:p></o:p></p>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><span
style="mso-fareast-language:FR-BE"><br>
<br>
<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" style="margin-bottom:12.0pt"><span
style="mso-fareast-language:FR-BE"><br>
<br>
<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" style="margin-bottom:12.0pt"><span
style="mso-fareast-language:FR-BE"><br>
<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" style="margin-bottom:12.0pt"><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" style="margin-bottom:12.0pt"><span
style="mso-fareast-language:FR-BE"> </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" moz-do-not-send="true">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a></pre>
</div>
</blockquote>
</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>