Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-31 Thread Casco, Alessio
Hello Thanks, I will have a look Alesio On Tue, Jan 31, 2017 at 11:47 AM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > someone published a npm package for etcd-based discovery service, which > sounds similar to what you want to do: > > -

Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-31 Thread Daniel-Constantin Mierla
Hello, someone published a npm package for etcd-based discovery service, which sounds similar to what you want to do: - https://www.kamailio.org/w/2015/10/kamailio-dispatcher-discovery-service-with-nodejs-and-etcd/ Alternative to dispatcher, you can also consider using rtjson module to push

Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-31 Thread Casco, Alessio
Hello Daniel! My goal is the following: I would like to use a service discovery application (consul is an example) that dynamically guides the kamailio back-ends. As soon as a new back-end registers into the discovery service, kamailio will start sending traffic to it. Since writing a module is

Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-30 Thread Daniel-Constantin Mierla
Hello, if you expect that dispatcher module will list the associated ip addresses with the hostname after a DNS SRV lookup, then this is not available. Dispatcher module will still use the single hostname to set r-uri (or dst uri) and then TM module does the lookup before sending, inside

Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-26 Thread Casco, Alessio
Thanks for your help, Unfortunately with kamailio 4.4.4, dispatcher module and your suggestions, I still don't see the SRV record picked up (at least using the kamcmd dispatcher.list command). I didn't try the LCR module yet, I want to be sure first that dispatcher is not able to handle SRV

Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-25 Thread Jeremy Gadd
Holy cow, sorry about that! Put the hostname in dispatcher (no port or _sip._udp) and enable these: use_dns_cache=on use_dns_failover=on dns_srv_lb=on That's how I got it working (using the LCR module). On Wed, Jan 25, 2017 at 1:05 PM, Jeremy Gadd wrote: > Put the

Re: [SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-25 Thread Jeremy Gadd
Put the hostname in dispatcher (no port) and enable these: On Wed, Jan 25, 2017 at 9:30 AM, Casco, Alessio wrote: > Hello Guys! > > I'd like to be able to use SRV records inside dispatcher groups, so I can > automatise the discovery of new backends on my network using

[SR-Users] Using DNS for Service Discovery with Kamailio

2017-01-25 Thread Casco, Alessio
Hello Guys! I'd like to be able to use SRV records inside dispatcher groups, so I can automatise the discovery of new backends on my network using DNS I've tried with the following formats into the dispatcher.list file: $group _sip._udp.sip-voice_backends $group sip-voice_backends and none