Re: Asterix 16, PJSIP outbound registration, SRV or NAPTR lookup

"Joshua C. Colp" <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <CAM0A2Z3b1ytQE7B7T_1qZL4h8xL_Fn4yv-urxeVA6R4gbQLXww@mail.gmail.com>
On Mon, May 16, 2022 at 5:18 AM Benoit Panizzon <[email protected]>
wrote:

> Just stubled over another example which resolved my question.
>
> > server_uri=sip:reg.example.com:5060
> > client_uri=sip:[email protected]:5060
>
> If you don't specify the port, asterisk DOES an SRV lookup.
>

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.

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.