[asterisk-users] Asterix 16, PJSIP outbound registration, SRV or NAPTR lookup

Joshua C. Colp jcolp at sangoma.com
Mon May 16 04:24:52 CDT 2022


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

> Just stubled over another example which resolved my question.
>
> > server_uri=sip:reg.example.com:5060
> > client_uri=sip:testcontact at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220516/b5774119/attachment.html>


More information about the asterisk-users mailing list