Open GoogleCodeExporter opened 9 years ago
After this changes, we can see same packet put in queue, to avoid this you must
apply these changes: (see topic: SGW dahdi multi link )
add a synchronized in org.mobicents.protocols.ss7.mtp.Mtp3 (line 362),
and a clone of buffer.
private static Object padlock = new Object();
synchronized (padlock)
{
byte[] messageBuffer = fetchBuffer(rxFrame.len-5); //-5 = FSN(1) + BSN(1) + LEN(1) +2xCRC(1)
System.arraycopy(rxFrame.frame, 3, messageBuffer, 0, rxFrame.len-5);
if (logger.isDebugEnabled()) {
logger.debug("SCCP messageBuffer:"+HexTools.dump( messageBuffer,0));
}
//messageBuffer[0] = (byte) sio;
try {
byte[] clone = new byte[messageBuffer.length];
System.arraycopy(messageBuffer,0,clone,0,messageBuffer.length);
mtp3Listener.receive(clone);
} catch (Exception e) {
e.printStackTrace();
}
}
Ludovic Monnier
Original comment by ludovic....@gmail.com
on 24 Sep 2012 at 8:35
I will have to make a test with multiple links up on same linkset ( till now i
did only test with one link per linkset ) to see all possible problems.
The tests are planned for next month ( after 08/10 ).
Please keep it open for now
Original comment by oifa.yul...@gmail.com
on 24 Sep 2012 at 8:39
Original comment by amit.bha...@gmail.com
on 6 Feb 2013 at 9:48
Original comment by amit.bha...@gmail.com
on 10 Sep 2013 at 3:50
Original issue reported on code.google.com by
oifa.yul...@gmail.com
on 20 Sep 2012 at 4:23