diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-26 19:12:23 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-26 19:12:23 +0000 |
commit | be5be4e137add5040fc7ad45a983d80017f36af9 (patch) | |
tree | 051bd14bb2df42ac524fbb818124710678360207 /channels | |
parent | 05a81a16684cf4dc9cddee3c673e925462f6449d (diff) |
Don't send VMWI when we're not registered
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2078 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a1a277b4b..24906e2de 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; |