mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Don't send VMWI when we're not registered
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5663,7 +5663,7 @@ static int sip_send_mwi_to_peer(struct sip_peer *peer)
|
||||
strncpy(name, peer->name, sizeof(name) - 1);
|
||||
peer->lastmsgssent = ((newmsgs << 8) | (oldmsgs));
|
||||
ast_mutex_unlock(&peerl.lock);
|
||||
if (create_addr(p, name)) {
|
||||
if (create_addr(p, name) || !p->sa.sin_addr.s_addr || !p->sa.sin_port) {
|
||||
/* Maybe they're not registered, etc. */
|
||||
sip_destroy(p);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user