From 4e5911c2914392c2c2b5fa2d22773064bc9177fb Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 13 Oct 2010 09:17:31 -0500 Subject: [PATCH] FS-2776: FS uses IPv6 under Proxy mode, and SIP Phone uses 6to4 tunneling IPv6 address, cause hearing nothing. --- src/switch_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_utils.c b/src/switch_utils.c index b887904960..aa8f4139d2 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -1515,9 +1515,9 @@ SWITCH_DECLARE(char *) get_addr6(char *buf, switch_size_t len, struct sockaddr_i if (sa) { #if defined(NTDDI_VERSION) - switch_inet_ntop6((unsigned char*)sa, buf, len); + switch_inet_ntop6((unsigned char*)sa->sin6_addr, buf, len); #else - inet_ntop(AF_INET6, sa, buf, len); + inet_ntop(AF_INET6, &(sa->sin6_addr), buf, len); #endif }