Re: [SR-Users] Kamailio in cloud environments

2019-11-11 Thread Alejandro Recarey
Guys, blown away by the support what an awesome community! Thanks for all the replies, they are all great! On Mon, Nov 11, 2019 at 8:34 AM Karsten Horsmann wrote: > > Nice idea Alex. > > I use import_file and include_file and fill this with my settings from Puppet. > > Many ways to get your

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Karsten Horsmann
Nice idea Alex. I use import_file and include_file and fill this with my settings from Puppet. Many ways to get your config strings. There is also some ENV stuff for Kamailio to feature config strings into startup for container environments AFAIK. Cheers Karsten Alex Balashov schrieb am Mo.,

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Alex Balashov
I prefer more flexibility, and so use a slightly more ornate approach involving the Jinja2 template engine (inspired by Jango)[1] and Python 3. I'll spread it in the network in the hope that it helps someone. --- kamailio-settings.yaml --- listeners: - proto: udp addr: 127.0.0.1 port:

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Sergey Safarov
How about to create set of systemd drop-in for cloud providers and then package them? User will simple install package like "kamailio-cfg-google" or "kamailio-cfg-amazon" and get part of kamailio runtime config. Please comment here https://github.com/kamailio/kamailio/issues/2125 On Mon, Nov 11,

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Sergey Safarov
You can also update kamailio.cfg to include listeners.cfg Example. Need add to kamailio.cfg ### Listeners ## include_file "/var/run/kamailio/listeners-eth0.cfg" Before kamailio started you will generate listeners.cfg file. This may by done by drop-in file. Need create

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread David Villasmil
That's the one, thanks @Karsten! More info, i changed my systemd unit to execute a script when starting up, like so: # cat /etc/systemd/system/multi-user.target.wants/kamailio.service [Unit] Description=Kamailio (OpenSER) - the Open Source SIP Server After=network.target [Service] Type=forking

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Alex Balashov
-A ... oh wow. That's savvy! Cheers. On Sun, Nov 10, 2019 at 08:51:59PM +0100, Karsten Horsmann wrote: > Hi David, > > You mean this thread from may 2019. > https://lists.kamailio.org/pipermail/sr-users/2019-May/105599.html > > Pro Tipp, search on lists.kamailio.org/pipermail/ to get your

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Karsten Horsmann
Hi David, You mean this thread from may 2019. https://lists.kamailio.org/pipermail/sr-users/2019-May/105599.html Pro Tipp, search on lists.kamailio.org/pipermail/ to get your link. Great help the mailing list archive btw. Cheers Karsten David Villasmil schrieb am So., 10. Nov. 2019, 19:03: >

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread David Villasmil
I needed to discover the user/pass for the dB when kamailio starts so as not to store it locally. I get the data via an AWS script, then start kamailio passing the parameters, then use of those in the script. You can do exactly this to get and set the current ip address. I don’t know how to share

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Alex Balashov
On Sun, Nov 10, 2019 at 06:16:44PM +0100, Alejandro Recarey wrote: > Hi, I am trying to get kamailio working cloud provider, autoscaling > them behind a TCP load balancer. > > Is there a way for kamailio to discover its Public IP at startup? Or > do people generally program their own startup

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Alejandro Recarey
I see, since all the connections are TCP, there is no issue with kamailio knowing its public IP? Normally that IP is embedded in VIA headers etc. I’ve been reading your thread about TCP connection reuse with interest ;) Will let you know if I find some way around it. > On 10 Nov 2019, at

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Joel Serrano
I’m working on something similar, what cloud are you using? In my case, using GCP, I have a script that queries the metadata API and uses information from there, but for the setup I’m trying out, I use the LB public IP not the VM one. I’m curious as to how you plan to get it to work, why would

Re: [SR-Users] Kamailio in cloud environments

2019-11-10 Thread Mack Hendricks
Each cloud provider acts a little different when it comes to Nat’ing Sent from my iPhone > On Nov 10, 2019, at 9:16 AM, Alejandro Recarey wrote: > > Hi, I am trying to get kamailio working cloud provider, autoscaling > them behind a TCP load balancer. > > Is there a way for kamailio to