Closed GoogleCodeExporter closed 8 years ago
The length of its_session_info
should be 2,yours is 1
Parameter Tag 2 Integer its_session_info
Length 2 Integer Length of Value part in octets
Value 2 Octet
String Bits 7...............0
SSSS SSSS (octet 1)
NNNN NNNE (octet 2)
Octet 1 contains the session number (0 -
255) encoded in binary. The session
number remains constant for each session.
The sequence number of the dialogue unit
(as assigned by the ESME) within the
session is encoded in bits 7..1 of octet 2.
Original comment by changmen...@gmail.com
on 3 Aug 2011 at 5:00
its_session_info should use OctetString so please use
new OptionalParameter.OctetString(OptionalParameter.Tag.ITS_SESSION_INFO, new
byte[]{x, y})
Original comment by uuda...@gmail.com
on 7 Aug 2011 at 10:19
[deleted comment]
Hello,
I have the same problem but with Tag.RECEIPTED_MESSAGE_ID. Always my wireshark
set my deliver_sm as Malformed.
I add OptionalParameter like this:
OptionalParameter op[] = new OptionalParameter[2];
OptionalParameter op1 = new OptionalParameter.Byte(Tag.MESSAGE_STATE, (byte) 2);
OptionalParameter op2 = new
OptionalParameter.OctetString(Tag.RECEIPTED_MESSAGE_ID.code(),
messageId.toString().getBytes());
op[0] = op1;
op[1] = op2;
And I add it into deliver_sm
session.deliverShortMessage(..., op);
I try to add RECEIPTED_MESSAGE_ID like Int or Byte but always have the same
result Malformed Packet:SMPP.
Please help me to carry out this problem.
Original comment by sokun...@gmail.com
on 11 Mar 2012 at 6:37
Original issue reported on code.google.com by
chethan7...@gmail.com
on 11 Aug 2010 at 11:09