<p>Joshua Colp <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13620">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
  Benjamin Keith Ford: Looks good to me, but someone else must approve
  Kevin Harwell: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_endpoint_identifier_ip: Document support for hostnames<br><br>ASTERISK-25429 #close<br>Reported by: Joshua C. Colp<br><br>Change-Id: I7cdfc6026821636acc2465094b7fcde8471a3824<br>---<br>M res/res_pjsip_endpoint_identifier_ip.c<br>1 file changed, 18 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_pjsip_endpoint_identifier_ip.c b/res/res_pjsip_endpoint_identifier_ip.c</span><br><span>index db4edbf..a2aa934 100644</span><br><span>--- a/res/res_pjsip_endpoint_identifier_ip.c</span><br><span>+++ b/res/res_pjsip_endpoint_identifier_ip.c</span><br><span>@@ -60,13 +60,26 @@</span><br><span>                                  <synopsis>IP addresses or networks to match against.</synopsis></span><br><span>                                  <description></span><br><span>                                          <para>The value is a comma-delimited list of IP addresses or</span><br><span style="color: hsl(0, 100%, 40%);">-                                              hostnames.  IP addresses may have a subnet mask appended.  The</span><br><span style="color: hsl(0, 100%, 40%);">-                                          subnet mask may be written in either CIDR or dotted-decimal</span><br><span style="color: hsl(0, 100%, 40%);">-                                             notation.  Separate the IP address and subnet mask with a slash</span><br><span style="color: hsl(120, 100%, 40%);">+                                               hostnames.</para></span><br><span style="color: hsl(120, 100%, 40%);">+                                               <para>IP addresses may have a subnet mask appended. The subnet</span><br><span style="color: hsl(120, 100%, 40%);">+                                          mask may be written in either CIDR or dotted-decimal</span><br><span style="color: hsl(120, 100%, 40%);">+                                          notation. Separate the IP address and subnet mask with a slash</span><br><span>                                               ('/'). A source port can also be specified by adding a colon (':')</span><br><span>                                           after the address but before the subnet mask, e.g.</span><br><span style="color: hsl(0, 100%, 40%);">-                                              3.2.1.0:5061/24.</span><br><span style="color: hsl(0, 100%, 40%);">-                                                </para></span><br><span style="color: hsl(120, 100%, 40%);">+                                         3.2.1.0:5061/24. To specify a source port for an IPv6 address, the</span><br><span style="color: hsl(120, 100%, 40%);">+                                            address itself must be enclosed in square brackets</span><br><span style="color: hsl(120, 100%, 40%);">+                                            ('[2001:db8:0::1]:5060')</para></span><br><span style="color: hsl(120, 100%, 40%);">+                                         <para>When a hostname is used, the behavior depends on whether</span><br><span style="color: hsl(120, 100%, 40%);">+                                          <replaceable>srv_lookups</replaceable> is enabled and/or a source</span><br><span style="color: hsl(120, 100%, 40%);">+                                         port is provided. If <replaceable>srv_lookups</replaceable> is</span><br><span style="color: hsl(120, 100%, 40%);">+                                            enabled and a source port is not provided, Asterisk will perform</span><br><span style="color: hsl(120, 100%, 40%);">+                                              an SRV lookup on the provided hostname, adding all of the A and</span><br><span style="color: hsl(120, 100%, 40%);">+                                               AAAA records that are resolved.</para></span><br><span style="color: hsl(120, 100%, 40%);">+                                          <para>If the SRV lookup fails,</span><br><span style="color: hsl(120, 100%, 40%);">+                                          <replaceable>srv_lookups</replaceable> is disabled, or a source</span><br><span style="color: hsl(120, 100%, 40%);">+                                           port is specified when the hostname is configured, Asterisk will</span><br><span style="color: hsl(120, 100%, 40%);">+                                              resolve the hostname and add all A and AAAA records that are</span><br><span style="color: hsl(120, 100%, 40%);">+                                          resolved.</para></span><br><span>                                       </description></span><br><span>                                 </configOption></span><br><span>                                <configOption name="srv_lookups" default="yes"></span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13620">change 13620</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/13620"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I7cdfc6026821636acc2465094b7fcde8471a3824 </div>
<div style="display:none"> Gerrit-Change-Number: 13620 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>