[SR-Users] [EXTERNAL] Re: Kamailio/dispatcher routing with SRV record

Jesse Strahn jesse.strahn at waterfield.com
Thu Jan 31 15:14:59 CET 2019


Thank you for the information. Are you referring to: "16 (bit at index 4 - 1 <<4) - skip DNS A/AAAA resolve at startup, useful when the hostname of the destination address is a NAPTR or SRV record only. Such addresses cannot be matched anymore with ds_is_from_list(...)."

I looked at that but I'm using Siremis to configure Kamailio and when I go into Siremis dispatcher list, for flags, it only has 0, 1, 4, 8, and 9 as options. Is it possible that the version of Siremis I'm running is prior to them implementing these flags?


From: Daniel-Constantin Mierla <miconda at gmail.com>
Sent: Thursday, January 31, 2019 2:59 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; Jesse Strahn <jesse.strahn at waterfield.com>
Subject: [EXTERNAL] Re: [SR-Users] Kamailio/dispatcher routing with SRV record


in the past, the only limitation was for sending option keepalives for destinations that had SRV only. That can be controlled now via a flag, see the description for 16 at:

  - https://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.ds_probing_mode<https://url.emailprotection.link/?aCFTcbKVooHCRJNH0yHK4vSswi6k9tiBaZVGd6tfwfJ226KS34r0EbRkLVQ4c_UWlckkQ8ffgyV0RG2ccqBhCy3xSap-uA67acLkztv2GYP5MD20sbLGiVBiyzS_wOz_-Nmq_N1oHko9D7qUbZi8VQjER67UHs-N2zhaSIrNdPzI~>

Otherwise, for routing, it should just work, but the dispatcher is not fetching the addresses behind the SRV record, that is done by tm+core at the time of sending out, dispatcher will still maintain a single record with the domain name.

On 30.01.19 23:39, Jesse Strahn wrote:
Is it possible to route to the back-end SIP servers via DNS SRV record rather than specifying multiple IP addresses in the dispatcher list on the Kamailio server?

Running in AWS and looking to be able to dynamically update my list of available sip servers if a server goes offline or if a server comes online. Have Cloudwatch/Lambda setup to manipulate the SRV record with the IP address additions or subtractions but when I try to put the SRV record as the destination in dispatcher, it fails.


Kamailio (SER) - Users Mailing List

sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>



Daniel-Constantin Mierla -- www.asipto.com<https://url.emailprotection.link/?aG5fyzT2PxPE2a2OKJ5pR5YW2kkUeEgYxvqn2GrwNE5A~>

www.twitter.com/miconda<https://url.emailprotection.link/?aiQPwHc-edrhYQPAtfTWttTBzhxGtgmbvMNuB1glPQlI~> -- www.linkedin.com/in/miconda<https://url.emailprotection.link/?aanlcNI-cN74Gdz-TD332xLYbzN4LdD6MHmxonqcppBsL2qFUpAwvPovhlFdq-ouMh2Zz_i3bs6nVrSREEM3jlw~~>

Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<https://url.emailprotection.link/?aMZcWewYFji3TM0YPWYrCvK8KBhw0_YCm0zvyezKJkK4~>

Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<https://url.emailprotection.link/?aG5fyzT2PxPE2a2OKJ5pR5YW2kkUeEgYxvqn2GrwNE5A~>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190131/efa91e1e/attachment.html>

More information about the sr-users mailing list