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

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_iax2: Fix perceived showing host address.<br><br>ASTERISK_22025 introduced a regression that shows<br>the host IP and port as the perceived IP and port<br>again, as opposed to showing the actual perceived<br>address. This fixes this by showing the correct<br>information.<br><br>ASTERISK-29048 #close<br><br>Change-Id: I0ad3e25bc6b449e83ce72ea5d1a1cdba72aa304a<br>---<br>M channels/chan_iax2.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c</span><br><span>index ecf5074..6e2aa3b 100644</span><br><span>--- a/channels/chan_iax2.c</span><br><span>+++ b/channels/chan_iax2.c</span><br><span>@@ -7375,7 +7375,7 @@</span><br><span>        AST_LIST_TRAVERSE(&registrations, reg, entry) {</span><br><span>          snprintf(host, sizeof(host), "%s", ast_sockaddr_stringify(&reg->addr));</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-            snprintf(perceived, sizeof(perceived), "%s", ast_sockaddr_isnull(&reg->addr) ? "<Unregistered>" : ast_sockaddr_stringify(&reg->addr));</span><br><span style="color: hsl(120, 100%, 40%);">+                snprintf(perceived, sizeof(perceived), "%s", ast_sockaddr_isnull(&reg->us) ? "<Unregistered>" : ast_sockaddr_stringify(&reg->us));</span><br><span> </span><br><span>               ast_cli(a->fd, FORMAT, host,</span><br><span>                              (reg->dnsmgr) ? "Y" : "N",</span><br><span>@@ -7407,7 +7407,7 @@</span><br><span>    AST_LIST_TRAVERSE(&registrations, reg, entry) {</span><br><span>          snprintf(host, sizeof(host), "%s", ast_sockaddr_stringify(&reg->addr));</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-            snprintf(perceived, sizeof(perceived), "%s", ast_sockaddr_isnull(&reg->addr) ? "<Unregistered>" : ast_sockaddr_stringify(&reg->addr));</span><br><span style="color: hsl(120, 100%, 40%);">+                snprintf(perceived, sizeof(perceived), "%s", ast_sockaddr_isnull(&reg->us) ? "<Unregistered>" : ast_sockaddr_stringify(&reg->us));</span><br><span> </span><br><span>               astman_append(s,</span><br><span>                     "Event: RegistryEntry\r\n"</span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18226">change 18226</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/+/18226"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: I0ad3e25bc6b449e83ce72ea5d1a1cdba72aa304a </div>
<div style="display:none"> Gerrit-Change-Number: 18226 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.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>