<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></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 30, 2018 at 10:16 AM Samuel F. <<a href="mailto:samuel_is_kewl@hotmail.com">samuel_is_kewl@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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 id="m_-2674443886534364203divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> on behalf of Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">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 class="m_-2674443886534364203BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="m_-2674443886534364203PlainText"><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&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=i%2BrWG9MKhzZ1FQgaVaj7dbyEdTeGd3xWy3Lkb2%2FcYzE%3D&amp;reserved=0" target="_blank">
https://nam03.safelinks.protection.outlook.com/?url=www.asipto.com&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=i%2BrWG9MKhzZ1FQgaVaj7dbyEdTeGd3xWy3Lkb2%2FcYzE%3D&amp;reserved=0</a><br>
<a href="https://nam03.safelinks.protection.outlook.com/?url=www.twitter.com%2Fmiconda&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=fODOG0JM6gwXIneoxel2QVy5PGAmbTYFgGk68ctOPdU%3D&amp;reserved=0" target="_blank">https://nam03.safelinks.protection.outlook.com/?url=www.twitter.com%2Fmiconda&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=fODOG0JM6gwXIneoxel2QVy5PGAmbTYFgGk68ctOPdU%3D&amp;reserved=0</a>
 -- <a href="https://nam03.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2Fmiconda&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=CHA9TnvLV5CKkWJNDwntmo7w6bn%2BsB%2F6RbjpxT1%2BN4w%3D&amp;reserved=0" target="_blank">
https://nam03.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2Fmiconda&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=CHA9TnvLV5CKkWJNDwntmo7w6bn%2BsB%2F6RbjpxT1%2BN4w%3D&amp;reserved=0</a><br>
Kamailio World Conference -- <a href="https://nam03.safelinks.protection.outlook.com/?url=www.kamailioworld.com&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=ac0qNl3hlv2MMSMd7t82UCLLDpPzvRD2iFmxMoxdC5M%3D&amp;reserved=0" target="_blank">
https://nam03.safelinks.protection.outlook.com/?url=www.kamailioworld.com&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=ac0qNl3hlv2MMSMd7t82UCLLDpPzvRD2iFmxMoxdC5M%3D&amp;reserved=0</a><br>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a href="https://nam03.safelinks.protection.outlook.com/?url=www.asipto.com&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=i%2BrWG9MKhzZ1FQgaVaj7dbyEdTeGd3xWy3Lkb2%2FcYzE%3D&amp;reserved=0" target="_blank">
https://nam03.safelinks.protection.outlook.com/?url=www.asipto.com&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=i%2BrWG9MKhzZ1FQgaVaj7dbyEdTeGd3xWy3Lkb2%2FcYzE%3D&amp;reserved=0</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">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&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=hcYbPWDj2JTtRPI6pBXUQkdlOBgDGadM1sUVkErqLds%3D&amp;reserved=0" target="_blank">https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users&amp;data=02%7C01%7C%7Cbddcc5fbd0df470749ef08d656954101%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791596364449003&amp;sdata=hcYbPWDj2JTtRPI6pBXUQkdlOBgDGadM1sUVkErqLds%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>