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
This commit is contained in:
parent
d132184520
commit
56ed64e086
|
@ -7375,7 +7375,7 @@ static char *handle_cli_iax2_show_registry(struct ast_cli_entry *e, int cmd, str
|
|||
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 @@ static int manager_iax2_show_registry(struct mansession *s, const struct message
|
|||
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"
|
||||
|
|
Loading…
Reference in New Issue