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);