[Asterisk-cvs] asterisk rtp.c,1.54,1.55

markster at lists.digium.com markster at lists.digium.com
Sun Mar 14 17:55:28 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7984

Modified Files:
	rtp.c 
Log Message:
If an RTP peer hasn't been set, ignore audio from it (Plexus workaround)


Index: rtp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/rtp.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- rtp.c	14 Mar 2004 18:01:29 -0000	1.54
+++ rtp.c	14 Mar 2004 22:49:26 -0000	1.55
@@ -409,6 +409,11 @@
 			ast_log(LOG_DEBUG, "RTP NAT: Using address %s:%d\n", inet_ntoa(rtp->them.sin_addr), ntohs(rtp->them.sin_port));
 		}
 	}
+	/* Ignore if the other side hasn't been given an address
+	   yet.  */
+	if (!rtp->them.sin_addr.s_addr || !rtp->them.sin_port)
+		return &null_frame;
+
 	/* Get fields */
 	seqno = ntohl(rtpheader[0]);
 	payloadtype = (seqno & 0x7f0000) >> 16;




More information about the svn-commits mailing list