[asterisk-commits] oej: trunk r63751 - in /trunk: ./ channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 10 13:52:00 MST 2007


Author: oej
Date: Thu May 10 15:51:59 2007
New Revision: 63751

URL: http://svn.digium.com/view/asterisk?view=rev&rev=63751
Log:
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.

........

................

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=63751&r1=63750&r2=63751
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu May 10 15:51:59 2007
@@ -15823,6 +15823,10 @@
 	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,



More information about the asterisk-commits mailing list