[Asterisk-code-review] chan_iax2: Fix perceived showing host address. (asterisk[16])
N A
asteriskteam at digium.com
Tue Mar 15 05:59:43 CDT 2022
N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/18224 )
Change subject: chan_iax2: Fix perceived showing host address.
......................................................................
chan_iax2: Fix perceived showing host address.
ASTERISK_22025 introduced a regression that shows
the host IP and port as the perceived IP and port
again, as opposed to showing the actual perceived
address. This fixes this by showing the correct
information.
ASTERISK-29048 #close
Change-Id: I0ad3e25bc6b449e83ce72ea5d1a1cdba72aa304a
---
M channels/chan_iax2.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/24/18224/1
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 6d8ad30..93c8598 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -7375,7 +7375,7 @@
AST_LIST_TRAVERSE(®istrations, reg, entry) {
snprintf(host, sizeof(host), "%s", ast_sockaddr_stringify(®->addr));
- snprintf(perceived, sizeof(perceived), "%s", ast_sockaddr_isnull(®->addr) ? "<Unregistered>" : ast_sockaddr_stringify(®->addr));
+ snprintf(perceived, sizeof(perceived), "%s", ast_sockaddr_isnull(®->us) ? "<Unregistered>" : ast_sockaddr_stringify(®->us));
ast_cli(a->fd, FORMAT, host,
(reg->dnsmgr) ? "Y" : "N",
@@ -7407,7 +7407,7 @@
AST_LIST_TRAVERSE(®istrations, reg, entry) {
snprintf(host, sizeof(host), "%s", ast_sockaddr_stringify(®->addr));
- snprintf(perceived, sizeof(perceived), "%s", ast_sockaddr_isnull(®->addr) ? "<Unregistered>" : ast_sockaddr_stringify(®->addr));
+ snprintf(perceived, sizeof(perceived), "%s", ast_sockaddr_isnull(®->us) ? "<Unregistered>" : ast_sockaddr_stringify(®->us));
astman_append(s,
"Event: RegistryEntry\r\n"
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18224
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I0ad3e25bc6b449e83ce72ea5d1a1cdba72aa304a
Gerrit-Change-Number: 18224
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220315/eb275966/attachment.html>
More information about the asterisk-code-review
mailing list