On Mon, May 16, 2022 at 5:18 AM Benoit Panizzon <benoit.paniz...@imp.ch>
wrote:

> Just stubled over another example which resolved my question.
>
> > server_uri=sip:reg.example.com:5060
> > client_uri=sip:testcont...@reg.example.com: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

Reply via email to