Hello,

indeed, as mentioned, the presence of a port in a SIP address makes it to skip SRV lookup.

Anyhow, I am jumping in to see what is the Kamailio version used in this scenario? I don't recall exactly, but a while ago there was a related commit, at least it looked like when I did some backports today for next planned release in 5.6.x series.

Cheers,
Daniel

On 01.07.24 19:16, Ben Kaufman via sr-users wrote:

While I don’t know if it will or won’t cause the failure, you shouldn’t have a port number in something you’re intending to use as a SRV record. 

 

- Kaufman

 

 

From: David Villasmil <david.villasmil.work@gmail.com>
Sent: Monday, July 1, 2024 9:19 AM
To: Ben Kaufman <bkaufman@bcmone.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] SRV in advertise?

 


CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

Hey all,

 

Joel, it’s failing saying the destination is unresolvable and Ben, I’m setting it like

 

Listen=tls:1.2.3.4:5061 advertise mydomain.com:5061

 

My domain.com srv is like 

 

_sips._tcp.domain.com resolving to sip.domain.com (among others like udp, etc)

 

I would expect Kamailio to resolve its own srv, or have an option NOT to attempt to resolve and just the set host in the record-route, but maybe that’s just not how it works. Yes, setting sip.domain.com:5061 works but the the record-route would have that (sip.domain.com) exact same host and the client might disconnect and reconnect to that dns instead of the actual SRV.


Regards,

 

David Villasmil

 

 

 

On Mon, 1 Jul 2024 at 15:46, Ben Kaufman <bkaufman@bcmone.com> wrote:

Are you using a hostname that should resolve as srv , for example, sip.domain.com, or are you using the underscore, scheme, underscore transport protocol, hostname type like _sip._udp.domain.com ?

 

Regards,

Kaufman

 

From: David Villasmil via sr-users <sr-users@lists.kamailio.org>
Sent: Sunday, June 30, 2024 6:02 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: David Villasmil <david.villasmil.work@gmail.com>
Subject: [SR-Users] SRV in advertise?

 


CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

Hello guys,

 

I'm trying to use an SRV as an advertised address but kamailio fails to start. Is this not possible?

 

Thanks,

 

David Villasmil

 


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com