FS-2776: FS uses IPv6 under Proxy mode, and SIP Phone uses 6to4 tunneling IPv6 address, cause hearing nothing.

This commit is contained in:
Brian West 2010-10-13 09:17:31 -05:00
parent 890871ba4d
commit 4e5911c291
1 changed files with 2 additions and 2 deletions

View File

@ -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
}