summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2007-05-10 20:51:59 +0000
committerOlle Johansson <oej@edvina.net>2007-05-10 20:51:59 +0000
commitaa320037d2328fa92b0df2c9ef9feec4219060fc (patch)
treeb8770fa053aff1f701de1c557448c226ce61edf3 /channels/chan_sip.c
parent283ddaa092533f5066488d4a42091baf1ea7f910 (diff)
Merged revisions 63749 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r63749 | oej | 2007-05-10 22:46:41 +0200 (Thu, 10 May 2007) | 12 lines Merged revisions 63748 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r63748 | oej | 2007-05-10 22:38:54 +0200 (Thu, 10 May 2007) | 4 lines Do not allocate SIP pvt's for PEERs we can not reach. This was seen as a lot of dialogs being created then immediately destroyed at reload/restart of the SIP channel. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@63751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index f705ba2b2..763933780 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -15823,6 +15823,10 @@ static int sip_send_mwi_to_peer(struct sip_peer *peer, const struct ast_event *e
if (ast_test_flag((&peer->flags[1]), SIP_PAGE2_SUBSCRIBEMWIONLY) && !peer->mwipvt)
return 0;
+ /* 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;
+
if (!event) {
/* Check the event cache for the mailbox info */
event = cache_event = ast_event_get_cached(AST_EVENT_MWI,