src/plugins/rayo/src/java/com/sun/voip/RtpSenderPacket.java
/**
     * Adjust the RTP Timestamp.  This method is called when we are about
     * to resume sending data after sending a COMFORT_PAYLOAD.
     *
     * Calulate the number of samples that would have been
     * sent during the time between when the comfort payload
     * was sent and now.
     *
     * The timestamp is adjusted by the amount of time we stopped sending data.
     *
     * @param adjustment long to add to the RTP timestamp.
     */
Adjust the RTP Timestamp.  This method is called when we are about
to resume sending data after sending a COMFORT_PAYLOAD.

Calulate the number of samples that would have been
sent during the time between when the comfort payload
was sent and now.

The timestamp is adjusted by the amount of time we stopped sending data.

@param adjustment long to add to the RTP timestamp.
Adjust the RTP Timestamp . This method is called when we are about to resume sending data after sending a COMFORT_PAYLOAD . Calulate the number of samples that would have been sent during the time between when the comfort payload was sent and now . The timestamp is adjusted by the amount of time we stopped sending data . @param adjustment long to add to the RTP timestamp .
public void adjustRtpTimestamp() {
        /*
         * Elapsed time since comfort payload sent multiplied
         * by the number of samples per second gives the
         * number of samples by which the RTP timestamp must
         * be adjusted.
         */
	if (timeComfortPayloadSent == 0) {
	    Logger.error("RtpSenderPacket:  timeComfortPayloadSent is 0!");
	    return;
	}
	adjustRtpTimestamp(System.currentTimeMillis() - timeComfortPayloadSent);
	timeComfortPayloadSent = 0;
    }
public void adjustRtpTimestamp ( ) { /*
         * Elapsed time since comfort payload sent multiplied
         * by the number of samples per second gives the
         * number of samples by which the RTP timestamp must
         * be adjusted.
         */ if ( timeComfortPayloadSent == 0 ) { Logger . error ( "RtpSenderPacket:  timeComfortPayloadSent is 0!" ) ; return ; } adjustRtpTimestamp ( System . currentTimeMillis ( ) - timeComfortPayloadSent ) ; timeComfortPayloadSent = 0 ; }
Adjust the RTP Timestamp.
Adjust the RTP Timestamp .