<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Probably the best is to send here the diff from your current
kamailio.cfg and the default one from kamailio v5.2.0.</p>
<p>The default one can be downloaded from github with:</p>
<p>cd /tmp<br>
</p>
<p>wget
<a class="moz-txt-link-freetext" href="https://raw.githubusercontent.com/kamailio/kamailio/5.2/etc/kamailio.cfg">https://raw.githubusercontent.com/kamailio/kamailio/5.2/etc/kamailio.cfg</a></p>
<p>Then do:</p>
<p>diff -u /tmp/kamailio.cfg /etc/kamailio/kamailio.cfg</p>
<p>And send the output here. If you set a different mysql password,
then edit the output of the diff to change it to a random value
before sending it.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 12.12.18 20:09, John Tuxies wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACoLBwXMwNsuJ3hGAFW3kv_TZwMymtrjDOm8H5ykS+8sxx=2ew@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Could u tell me which ones please? All i did was to install
kamailio 5.2 from kamailio's repo for debian. Kamailio worked
fine. Then i started the installation of Asterisk and starting to
edit the cong file of kamailio kai boom it failed. I have no idea
how to fix it.
<div>
<div><br>
On Wednesday, December 12, 2018, Serge S. Yuriev <<a
href="mailto:me@nevian.org" moz-do-not-send="true">me@nevian.org</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
<div><br>
</div>
<div>And you had failed with IF defines - perhaps deleted
some of them by mistake or added and not closed properly<br>
<br>
-- <br>
Wbr, Serge via mobile<br>
<br>
11.12.2018, 16:09, "John Tuxies" <<a
href="mailto:atuxnull@gmail.com" target="_blank"
moz-do-not-send="true">atuxnull@gmail.com</a>>:<br>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>I have gone a bit further and installed
Asterisk 13 LTS from source in Debian 9 64 bit.
It works fine with ODBC and asterisk listens on
port 5080. I have installed Kamailio 5.2 from
repository (deb.kamailio) and it started OK for
the default config.</div>
<div>When i try to insert in the Kamailio config,
the Asterisk handle, it fails to start. Could
someone give me a hand over here to see the code
attached please(my kamailio.cfg)?</div>
<div><br>
</div>
<div>here is the error:</div>
<div><b><i>root@deb9:~# -- Unit kamailio.service
has begun starting up.<br>
Dec 11 15:07:32 deb9 kamailio[696]: ERROR:
<core> [core/pvapi.c:903]:
pv_parse_spec2(): error searching pvar
"uac_req"<br>
Dec 11 15:07:32 deb9 kamailio[696]: ERROR:
<core> [core/pvapi.c:1106]:
pv_parse_spec2(): wrong char [m/109] in
[$uac_req(method)] at [9 (5)]<br>
Dec 11 15:07:32 deb9 kamailio[696]:
CRITICAL: <core> [core/cfg.y:3507]:
yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 1058,
column 2-17: Ca<br>
n't get from cache: $uac_req(method)<br>
Dec 11 15:07:32 deb9 kamailio[696]: ERROR:
bad config file (1 errors)<br>
Dec 11 15:07:32 deb9 kamailio[696]: WARNING:
<core> [core/ppcfg.c:220]:
pp_ifdef_level_check(): different number of
preprocessor directives: N(#!IF[N]DEF) -
N(#!ENDIF)<br>
= 1<br>
Dec 11 15:07:32 deb9 kamailio[696]: INFO:
<core> [core/sctp_core.c:53]:
sctp_core_destroy(): SCTP API not
initialized<br>
Dec 11 15:07:32 deb9 systemd[1]:
kamailio.service: Control process exited,
code=exited status=255<br>
Dec 11 15:07:32 deb9 systemd[1]: Failed to
start Kamailio (OpenSER) - the Open Source
SIP Server.<br>
-- Subject: Unit kamailio.service has failed<br>
-- Defined-By: systemd<br>
-- Support: <a
href="https://www.debian.org/support"
target="_blank" moz-do-not-send="true">https://www.debian.org/support</a><br>
--<br>
-- Unit kamailio.service has failed.<br>
--<br>
-- The result is failed.<br>
Dec 11 15:07:32 deb9 systemd[1]:
kamailio.service: Unit entered failed state.<br>
Dec 11 15:07:32 deb9 systemd[1]:
kamailio.service: Failed with result
'exit-code'.<br>
Dec 11 15:07:32 deb9 systemd[1]:
kamailio.service: Service hold-off time
over, scheduling restart.<br>
Dec 11 15:07:32 deb9 systemd[1]: Stopped
Kamailio (OpenSER) - the Open Source SIP
Server.<br>
-- Subject: Unit kamailio.service has
finished shutting down<br>
-- Defined-By: systemd<br>
<br>
root@deb9:~#<br>
</i></b><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br>
<div dir="ltr">On Fri, Nov 30, 2018 at 2:45 PM John
Tuxies <<a href="mailto:atuxnull@gmail.com"
target="_blank" moz-do-not-send="true">atuxnull@gmail.com</a>>
wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Dear all, <br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>First of all i would like to thank you for
your interest in this topic.</div>
<div>I did scratch a little bit further and
corrected the script. Currently i stick to
bash and once finished with that i will invest
in different techniques.</div>
<div>I came to a state where the script finishes
succesfully. Asterisk installed and runs OK,
but i got an issue with Kamailio's service. <br>
</div>
<div>i have attached the scripts and logs, so if
someone could have a look and see if i am
missing something. I do not expect someone to
install it for me, but have a look on the code
and logs. <br>
</div>
<div>-File named asteriskkamailio0.sh.txt needs
the .txt extension removed in order to be
executed<br>
</div>
<div>-File named asterisk.sql.txt needs the .txt
extension removed in order to be able to
imported to mysql. <br>
</div>
<div>-File Installation.txt is the SSH log file
of the installation part.</div>
<div>-File Debug.txt is the SSH log file for the
debug after executing systemctl status
kamailio.service and journalctl -xe</div>
<div><br>
</div>
<div><br>
</div>
<div>Thanks in advance for your help.</div>
<div><br>
</div>
<div>Friendly,</div>
<div>John<br>
</div>
</div>
</div>
<br>
<div>
<div dir="ltr">On Fri, Nov 30, 2018 at 10:16 AM
Samuel F. <<a
href="mailto:samuel_is_kewl@hotmail.com"
target="_blank" moz-do-not-send="true">samuel_is_kewl@hotmail.com</a>>
wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div
style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">We
run Ansible with great success. We use
Ansible to provision the server and keep all
Kamailio related code in a git-repo. Ansible
has two tasks, (1) to provision the server
according to business security standards and
all sub-deps, and (2) to update the server
when new code is commited to the repo.</div>
<div
style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div
style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">On
new code, it would then setup all dirs,
restart Kamailio etc as needed.</div>
<div
style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div
style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">We
use the same logic and setup for Asterisk
and have been doing that in production for a
few years without any issues whatsoever.</div>
<div
style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
</div>
<div
style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Cheers,</div>
<div
style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Samuel</div>
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b>
sr-users <<a
href="mailto:sr-users-bounces@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users-bounces@lists.<wbr>kamailio.org</a>>
on behalf of Daniel-Constantin Mierla <<a
href="mailto:miconda@gmail.com"
target="_blank" moz-do-not-send="true">miconda@gmail.com</a>><br>
<b>Sent:</b> Friday, November 30, 2018
08:26<br>
<b>To:</b> Kamailio (SER) - Users Mailing
List; Alex Balashov<br>
<b>Subject:</b> Re: [SR-Users] Automating
installation</font>
<div> </div>
</div>
<div><font size="2"><span
style="font-size:11pt">
<div><br>
On 29.11.18 22:53, Alex Balashov
wrote:<br>
> On Thu, Nov 29, 2018 at
01:50:55PM -0800, Joel Serrano wrote:<br>
><br>
>> If it was me, I would handle
everything with ansible, but that is
just<br>
>> my tool of preference.<br>
> I'll add a vote for SaltStack, my
preferred tool of choice.<br>
<br>
Did you start with it and stayed with,
or you compared and found some<br>
benefits vs. others like ansible,
puppet, ...?<br>
<br>
I started with ansible and happy with
it, when I looked around the<br>
reasons were that python was installed
anyhow by default in debian, then<br>
the target system didn't need to have
any server/agent app deployed before.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
-- <br>
Daniel-Constantin Mierla -- <a
href="https://nam03.safelinks.protection.outlook.com/?url=www.asipto.com&data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&sdata=i%2BrWG9MKhzZ1FQgaVaj7dbyEdTeGd3xWy3Lkb2%2FcYzE%3D&reserved=0"
target="_blank"
moz-do-not-send="true">
https://nam03.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.asipto.com&data=02%<wbr>7C01%7C%<wbr>7Cbddcc5fbd0df470749ef08d65695<wbr>4101%<wbr>7C84df9e7fe9f640afb435aaaaaaaa<wbr>aaaa%7C1%7C0%<wbr>7C636791596364449003&<wbr>sdata=i%<wbr>2BrWG9MKhzZ1FQgaVaj7dbyEdTeGd3<wbr>xWy3Lkb2%2FcYzE%3D&<wbr>reserved=0</a><br>
<a
href="https://nam03.safelinks.protection.outlook.com/?url=www.twitter.com%2Fmiconda&data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&sdata=fODOG0JM6gwXIneoxel2QVy5PGAmbTYFgGk68ctOPdU%3D&reserved=0"
target="_blank"
moz-do-not-send="true">https://nam03.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.twitter.com%2Fmiconda&<wbr>data=02%7C01%7C%<wbr>7Cbddcc5fbd0df470749ef08d65695<wbr>4101%<wbr>7C84df9e7fe9f640afb435aaaaaaaa<wbr>aaaa%7C1%7C0%<wbr>7C636791596364449003&<wbr>sdata=<wbr>fODOG0JM6gwXIneoxel2QVy5PGAmbT<wbr>YFgGk68ctOPdU%3D&reserved=<wbr>0</a>
-- <a
href="https://nam03.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2Fmiconda&data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&sdata=CHA9TnvLV5CKkWJNDwntmo7w6bn%2BsB%2F6RbjpxT1%2BN4w%3D&reserved=0"
target="_blank"
moz-do-not-send="true">
https://nam03.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.linkedin.com%2Fin%<wbr>2Fmiconda&data=02%7C01%7C%<wbr>7Cbddcc5fbd0df470749ef08d65695<wbr>4101%<wbr>7C84df9e7fe9f640afb435aaaaaaaa<wbr>aaaa%7C1%7C0%<wbr>7C636791596364449003&<wbr>sdata=<wbr>CHA9TnvLV5CKkWJNDwntmo7w6bn%<wbr>2BsB%2F6RbjpxT1%2BN4w%3D&<wbr>reserved=0</a><br>
Kamailio World Conference -- <a
href="https://nam03.safelinks.protection.outlook.com/?url=www.kamailioworld.com&data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&sdata=ac0qNl3hlv2MMSMd7t82UCLLDpPzvRD2iFmxMoxdC5M%3D&reserved=0"
target="_blank"
moz-do-not-send="true">
https://nam03.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.kamailioworld.com&<wbr>data=02%7C01%7C%<wbr>7Cbddcc5fbd0df470749ef08d65695<wbr>4101%<wbr>7C84df9e7fe9f640afb435aaaaaaaa<wbr>aaaa%7C1%7C0%<wbr>7C636791596364449003&<wbr>sdata=<wbr>ac0qNl3hlv2MMSMd7t82UCLLDpPzvR<wbr>D2iFmxMoxdC5M%3D&reserved=<wbr>0</a><br>
Kamailio Advanced Training, Nov 12-14,
2018, in Berlin -- <a
href="https://nam03.safelinks.protection.outlook.com/?url=www.asipto.com&data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&sdata=i%2BrWG9MKhzZ1FQgaVaj7dbyEdTeGd3xWy3Lkb2%2FcYzE%3D&reserved=0"
target="_blank"
moz-do-not-send="true">
https://nam03.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.asipto.com&data=02%<wbr>7C01%7C%<wbr>7Cbddcc5fbd0df470749ef08d65695<wbr>4101%<wbr>7C84df9e7fe9f640afb435aaaaaaaa<wbr>aaaa%7C1%7C0%<wbr>7C636791596364449003&<wbr>sdata=i%<wbr>2BrWG9MKhzZ1FQgaVaj7dbyEdTeGd3<wbr>xWy3Lkb2%2FcYzE%3D&<wbr>reserved=0</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a
href="mailto:sr-users@lists.kamailio.org"
target="_blank"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users&data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&sdata=hcYbPWDj2JTtRPI6pBXUQkdlOBgDGadM1sUVkErqLds%3D&reserved=0"
target="_blank"
moz-do-not-send="true">https://nam03.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Flists.kamailio.<wbr>org%2Fcgi-bin%2Fmailman%<wbr>2Flistinfo%2Fsr-users&<wbr>data=02%7C01%7C%<wbr>7Cbddcc5fbd0df470749ef08d65695<wbr>4101%<wbr>7C84df9e7fe9f640afb435aaaaaaaa<wbr>aaaa%7C1%7C0%<wbr>7C636791596364449003&<wbr>sdata=<wbr>hcYbPWDj2JTtRPI6pBXUQkdlOBgDGa<wbr>dM1sUVkErqLds%3D&reserved=<wbr>0</a><br>
</div>
</span></font></div>
</div>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote>
</div>
</div>
</blockquote>
</blockquote>
</div>
<br>
<p>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank" moz-do-not-send="true">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</p>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<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 - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
</body>
</html>