src/plugins/rayo/src/java/com/sun/voip/RtpSenderPacket.java
/*
     * Make sure sequence number wraps properly.
     */
Make sure sequence number wraps properly.
Make sure sequence number wraps properly .
public static void main(String[] args) {
	RtpSenderPacket packet = new RtpSenderPacket(
	    PCM_ENCODING, 8000, 1);
	Logger.logLevel = 5;
	short expected = packet.rtpSequenceNumber;
	while (true) {
	    if (packet.rtpSequenceNumber != expected) {
		Logger.println("expected " + expected
		    + " got " + packet.rtpSequenceNumber);
	    }
	    packet.rtpSequenceNumber++;
	    expected = packet.rtpSequenceNumber;
	}
    }
public static void main ( String [ ] args ) { RtpSenderPacket packet = new RtpSenderPacket ( PCM_ENCODING , 8000 , 1 ) ; Logger . logLevel = 5 ; short expected = packet . rtpSequenceNumber ; while ( true ) { if ( packet . rtpSequenceNumber != expected ) { Logger . println ( "expected " + expected + " got " + packet . rtpSequenceNumber ) ; } packet . rtpSequenceNumber ++ ; expected = packet . rtpSequenceNumber ; } }
Make sure sequence number wraps properly.
Make sure sequence number wraps properly .