projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7f46a4
)
Don't send VMWI when we're not registered
author
Mark Spencer
<markster@digium.com>
Mon, 26 Jan 2004 19:12:23 +0000
(19:12 +0000)
committer
Mark Spencer
<markster@digium.com>
Mon, 26 Jan 2004 19:12:23 +0000
(19:12 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2078
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
a1a277b
..
24906e2
100755
(executable)
--- 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;