Index: sipXmediaLib/include/mp/MpdSipxPcma.h
===================================================================
--- sipXmediaLib/include/mp/MpdSipxPcma.h	(revision 8547)
+++ sipXmediaLib/include/mp/MpdSipxPcma.h	(working copy)
@@ -114,7 +114,7 @@
    unsigned int mNextPullTimerCount;
    unsigned int mWaitTimeInFrames;
    int mUnderflowCount;
-   int mLastSeqNo;           ///< Keep track of the last sequence number so that
+   RtpSeq mLastSeqNo;        ///< Keep track of the last sequence number so that
                              ///< we don't take out-of-order packets.
    bool mClockDrift;         ///< True, if clock drift detected.
    int mLastReportSize;
Index: sipXmediaLib/include/mp/MpdSipxPcmu.h
===================================================================
--- sipXmediaLib/include/mp/MpdSipxPcmu.h	(revision 8547)
+++ sipXmediaLib/include/mp/MpdSipxPcmu.h	(working copy)
@@ -114,7 +114,7 @@
    unsigned int mNextPullTimerCount;
    unsigned int mWaitTimeInFrames;
    int mUnderflowCount;
-   int mLastSeqNo;           ///< Keep track of the last sequence number so that
+   RtpSeq mLastSeqNo;        ///< Keep track of the last sequence number so that
                              ///< we don't take out-of-order packets.
    bool mClockDrift;         ///< True, if clock drift detected.
    int mLastReportSize;
Index: sipXmediaLib/src/mp/MpdSipxPcma.cpp
===================================================================
--- sipXmediaLib/src/mp/MpdSipxPcma.cpp	(revision 8547)
+++ sipXmediaLib/src/mp/MpdSipxPcma.cpp	(working copy)
@@ -160,8 +160,8 @@
       // A packet is available within the allotted time span
       mUnderflowCount=0;
       // Process the frame if enough time has passed
-      int iSeqNo = pPacket->getRtpSequenceNumber();
-      if (iSeqNo < mLastSeqNo)
+      RtpSeq iSeqNo = pPacket->getRtpSequenceNumber();
+      if (compare(iSeqNo, mLastSeqNo) < 0)
       {
          // Out of Order Discard
          return -1;  // Discard the packet, it is out of order
Index: sipXmediaLib/src/mp/MprDejitter.cpp
===================================================================
--- sipXmediaLib/src/mp/MprDejitter.cpp	(revision 8547)
+++ sipXmediaLib/src/mp/MprDejitter.cpp	(working copy)
@@ -101,10 +101,10 @@
       // Check for packets already in the buffer. Overwrite them if 
       // the just-arriving packet is newer than the existing packet
       // Don't overwrite if the just-arriving packet is older
-      int iBufSeqNo = mpPackets[codecIndex][index]->getRtpSequenceNumber();
-      int iNewSeqNo = pRtp->getRtpSequenceNumber();
+      RtpSeq iBufSeqNo = mpPackets[codecIndex][index]->getRtpSequenceNumber();
+      RtpSeq iNewSeqNo = pRtp->getRtpSequenceNumber();
 
-      if (iNewSeqNo > iBufSeqNo) 
+      if (compare(iNewSeqNo, iBufSeqNo) > 0) 
       {
          // Insert the new packet over the old packet
          mNumDiscarded[codecIndex]++;
Index: sipXmediaLib/src/mp/MpdSipxPcmu.cpp
===================================================================
--- sipXmediaLib/src/mp/MpdSipxPcmu.cpp	(revision 8547)
+++ sipXmediaLib/src/mp/MpdSipxPcmu.cpp	(working copy)
@@ -160,8 +160,8 @@
       // A packet is available within the allotted time span
       mUnderflowCount=0;
       // Process the frame if enough time has passed
-      int iSeqNo = pPacket->getRtpSequenceNumber();
-      if (iSeqNo < mLastSeqNo)
+      RtpSeq iSeqNo = pPacket->getRtpSequenceNumber();
+      if (compare(iSeqNo, mLastSeqNo) < 0)
       {
          // Out of Order Discard
          return -1;  // Discard the packet, it is out of order
