public void setMaxSequenceNumber ( int maxSequenceNumber ) throws Exception { if ( this . isStarted ) throw new Exception ( "MaxSequenceNumber parameter can be updated only when M3UA stack is NOT running" ) ; if ( maxSequenceNumber < 1 ) { maxSequenceNumber = 1 ; } else if ( maxSequenceNumber > MAX_SEQUENCE_NUMBER ) { maxSequenceNumber = MAX_SEQUENCE_NUMBER ; } this . maxSequenceNumber = maxSequenceNumber ; }
Set the maximum SLS that can be used by SCTP . Internally SLS vs SCTP Stream Sequence Number is maintained . Stream Seq Number 0 is for management .