Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 280629) +++ channels/chan_sip.c (working copy) @@ -27073,10 +27073,12 @@ /* First our default IP address */ if (!ast_sockaddr_isnull(&bindaddr)) { - add_sip_domain(ast_sockaddr_stringify(&bindaddr), SIP_DOMAIN_AUTO, NULL); + add_sip_domain(ast_sockaddr_stringify_addr(&bindaddr), + SIP_DOMAIN_AUTO, NULL); } else if (!ast_sockaddr_isnull(&internip)) { /* Our internal IP address, if configured */ - add_sip_domain(ast_sockaddr_stringify(&internip), SIP_DOMAIN_AUTO, NULL); + add_sip_domain(ast_sockaddr_stringify_addr(&internip), + SIP_DOMAIN_AUTO, NULL); } else { ast_log(LOG_NOTICE, "Can't add wildcard IP address to domain list, please add IP address to domain manually.\n"); } @@ -27084,7 +27086,7 @@ /* If TCP is running on a different IP than UDP, then add it too */ if (!ast_sockaddr_isnull(&sip_tcp_desc.local_address) && !ast_sockaddr_cmp(&bindaddr, &sip_tcp_desc.local_address)) { - add_sip_domain(ast_sockaddr_stringify(&sip_tcp_desc.local_address), + add_sip_domain(ast_sockaddr_stringify_addr(&sip_tcp_desc.local_address), SIP_DOMAIN_AUTO, NULL); } @@ -27093,14 +27095,14 @@ !ast_sockaddr_cmp(&bindaddr, &sip_tls_desc.local_address) && !ast_sockaddr_cmp(&sip_tcp_desc.local_address, &sip_tls_desc.local_address)) { - add_sip_domain(ast_sockaddr_stringify(&sip_tcp_desc.local_address), + add_sip_domain(ast_sockaddr_stringify_addr(&sip_tcp_desc.local_address), SIP_DOMAIN_AUTO, NULL); } /* Our extern IP address, if configured */ if (!ast_sockaddr_isnull(&externaddr)) { - add_sip_domain(ast_sockaddr_stringify(&externaddr), SIP_DOMAIN_AUTO, - NULL); + add_sip_domain(ast_sockaddr_stringify_addr(&externaddr), + SIP_DOMAIN_AUTO, NULL); } /* Extern host name (NAT traversal support) */