From: Automerge Script Date: Thu, 10 May 2007 21:28:39 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.19-netsec~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97762cc682c8abc096e323766e46da4f369ce8c6;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@63791 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index dbc7fc293c..0c93c78fc6 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11673,6 +11673,10 @@ static int sip_send_mwi_to_peer(struct sip_peer *peer) struct sip_pvt *p; int newmsgs, oldmsgs; + /* Do we have an IP address? If not, skip this peer */ + if (!peer->addr.sin_addr.s_addr && !peer->defaddr.sin_addr.s_addr) + return 0; + /* Check for messages */ ast_app_messagecount(peer->mailbox, &newmsgs, &oldmsgs);