(closes issue #17832)
Reported by: oej
Patches:
17832-wildcard.diff uploaded by qwell (license 4)
Tested by: qwell
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@285455
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
char temp[MAXHOSTNAMELEN];
/* First our default IP address */
- if (!ast_sockaddr_isnull(&bindaddr)) {
+ if (!ast_sockaddr_isnull(&bindaddr) && !ast_sockaddr_is_any(&bindaddr)) {
add_sip_domain(ast_sockaddr_stringify_addr(&bindaddr),
SIP_DOMAIN_AUTO, NULL);
- } else if (!ast_sockaddr_isnull(&internip)) {
+ } else if (!ast_sockaddr_isnull(&internip) && !ast_sockaddr_is_any(&internip)) {
/* Our internal IP address, if configured */
add_sip_domain(ast_sockaddr_stringify_addr(&internip),
SIP_DOMAIN_AUTO, NULL);