[asterisk-commits] twilson: branch 1.8 r280225 - /branches/1.8/res/res_rtp_asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 28 14:34:46 CDT 2010


Author: twilson
Date: Wed Jul 28 14:34:42 2010
New Revision: 280225

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=280225
Log:
Do rtp/rtcp debugging when it is turned on w/o filtering


Modified:
    branches/1.8/res/res_rtp_asterisk.c

Modified: branches/1.8/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_rtp_asterisk.c?view=diff&rev=280225&r1=280224&r2=280225
==============================================================================
--- branches/1.8/res/res_rtp_asterisk.c (original)
+++ branches/1.8/res/res_rtp_asterisk.c Wed Jul 28 14:34:42 2010
@@ -301,7 +301,7 @@
 		return 0;
 	}
 
-	return ast_sockaddr_cmp(&rtpdebugaddr, addr) == 0;
+	return ast_sockaddr_isnull(&rtpdebugaddr) ? 1 : ast_sockaddr_cmp(&rtpdebugaddr, addr) == 0;
 }
 
 static inline int rtcp_debug_test_addr(struct ast_sockaddr *addr)
@@ -310,7 +310,7 @@
 		return 0;
 	}
 
-	return ast_sockaddr_cmp(&rtcpdebugaddr, addr) == 0;
+	return ast_sockaddr_isnull(&rtcpdebugaddr) ? 1 : ast_sockaddr_cmp(&rtcpdebugaddr, addr) == 0;
 }
 
 static int __rtp_recvfrom(struct ast_rtp_instance *instance, void *buf, size_t size, int flags, struct ast_sockaddr *sa, int rtcp)




More information about the asterisk-commits mailing list