Asterix 16, PJSIP Outbound Registration, SRV Or NAPTR Lookup

Home » Asterisk Users » Asterix 16, PJSIP Outbound Registration, SRV Or NAPTR Lookup
Asterisk Users 2 Comments

Hi Team

I’m working on a scenario, where the registrar offers multiple instances that can handle registration:

_sip._udp.reg.example.com has SRV record 0 0 5060 reg01.example.com
_sip._udp.reg.example.com has SRV record 0 0 5060 reg02.example.com

It looks like specifying:

server_uri=sip:reg.example.com:5060
client_uri=sip:testcontact@reg.example.com:5060

in type=register does not work

In ‘identity’ there is a option srv_lookup=yes to make asterisk look up all possible endpoints.

Did I do anything wrong, or is asterisk not doing any SRV lookup for outbound traffic like registrations?

Mit freundlichen Grüssen

-Benoît Panizzon-

I m p r o W a r e A G – Leiter Commerce Kunden

2 thoughts on - Asterix 16, PJSIP Outbound Registration, SRV Or NAPTR Lookup

  • Just stubled over another example which resolved my question.

    If you don’t specify the port, asterisk DOES an SRV lookup.

    Mit freundlichen Grüssen

    -Benoît Panizzon-

    I m p r o W a r e A G – Leiter Commerce Kunden

  • This is correct. In RFC 3263 it states:

    If the TARGET was not a numeric IP address, but a port is present in
    the URI, the client performs an A or AAAA record lookup of the domain
    name.

    So the code follows that.