[Asterisk-cvs] asterisk/channels chan_sip.c,1.283,1.284
markster at lists.digium.com
markster at lists.digium.com
Mon Jan 26 13:20:23 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv2073/channels
Modified Files:
chan_sip.c
Log Message:
Don't send VMWI when we're not registered
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.283
retrieving revision 1.284
diff -u -d -r1.283 -r1.284
--- chan_sip.c 26 Jan 2004 05:28:14 -0000 1.283
+++ chan_sip.c 26 Jan 2004 19:12:23 -0000 1.284
@@ -5663,7 +5663,7 @@
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;
More information about the svn-commits
mailing list