<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18224">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/24/18224/1</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 6d8ad30..93c8598 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><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18224">change 18224</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/+/18224"/><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: I0ad3e25bc6b449e83ce72ea5d1a1cdba72aa304a </div>
<div style="display:none"> Gerrit-Change-Number: 18224 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>