[Asterisk-code-review] res_pjsip_endpoint_identifier_ip: Document support for hostnames (asterisk[master])
Friendly Automation
asteriskteam at digium.com
Tue Jan 14 13:14:30 CST 2020
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13622 )
Change subject: res_pjsip_endpoint_identifier_ip: Document support for hostnames
......................................................................
res_pjsip_endpoint_identifier_ip: Document support for hostnames
ASTERISK-25429 #close
Reported by: Joshua C. Colp
Change-Id: I7cdfc6026821636acc2465094b7fcde8471a3824
---
M res/res_pjsip_endpoint_identifier_ip.c
1 file changed, 18 insertions(+), 5 deletions(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Benjamin Keith Ford: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, approved
Friendly Automation: Approved for Submit
diff --git a/res/res_pjsip_endpoint_identifier_ip.c b/res/res_pjsip_endpoint_identifier_ip.c
index db4edbf..a2aa934 100644
--- a/res/res_pjsip_endpoint_identifier_ip.c
+++ b/res/res_pjsip_endpoint_identifier_ip.c
@@ -60,13 +60,26 @@
<synopsis>IP addresses or networks to match against.</synopsis>
<description>
<para>The value is a comma-delimited list of IP addresses or
- hostnames. IP addresses may have a subnet mask appended. The
- subnet mask may be written in either CIDR or dotted-decimal
- notation. Separate the IP address and subnet mask with a slash
+ hostnames.</para>
+ <para>IP addresses may have a subnet mask appended. The subnet
+ mask may be written in either CIDR or dotted-decimal
+ notation. Separate the IP address and subnet mask with a slash
('/'). A source port can also be specified by adding a colon (':')
after the address but before the subnet mask, e.g.
- 3.2.1.0:5061/24.
- </para>
+ 3.2.1.0:5061/24. To specify a source port for an IPv6 address, the
+ address itself must be enclosed in square brackets
+ ('[2001:db8:0::1]:5060')</para>
+ <para>When a hostname is used, the behavior depends on whether
+ <replaceable>srv_lookups</replaceable> is enabled and/or a source
+ port is provided. If <replaceable>srv_lookups</replaceable> is
+ enabled and a source port is not provided, Asterisk will perform
+ an SRV lookup on the provided hostname, adding all of the A and
+ AAAA records that are resolved.</para>
+ <para>If the SRV lookup fails,
+ <replaceable>srv_lookups</replaceable> is disabled, or a source
+ port is specified when the hostname is configured, Asterisk will
+ resolve the hostname and add all A and AAAA records that are
+ resolved.</para>
</description>
</configOption>
<configOption name="srv_lookups" default="yes">
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13622
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I7cdfc6026821636acc2465094b7fcde8471a3824
Gerrit-Change-Number: 13622
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200114/ee578fc8/attachment-0001.html>
More information about the asterisk-code-review
mailing list