From: Jeff Peeler Date: Wed, 14 Jul 2010 16:36:02 +0000 (+0000) Subject: Do not skip sending MWI for a peer if an address is defined. Really just a merge... X-Git-Tag: 11.0.0-beta1~2668 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4c665ee1337e3ad6065468678b22107df73b31d;p=thirdparty%2Fasterisk.git Do not skip sending MWI for a peer if an address is defined. Really just a merge mistake from IPv6 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276389 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 8dc4c5dbe1..d27f3c843a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -23835,7 +23835,7 @@ static int sip_send_mwi_to_peer(struct sip_peer *peer, const struct ast_event *e return 0; /* Do we have an IP address? If not, skip this peer */ - if (ast_sockaddr_isnull(&peer->addr) || ast_sockaddr_isnull(&peer->defaddr)) + if (ast_sockaddr_isnull(&peer->addr) && ast_sockaddr_isnull(&peer->defaddr)) return 0; if (event) {