SMPP 3.4 supports TLV or Tag Length Value pairs. These name/value pairs can be added onto the end of each SMPP request/response.
SMPP 3.4 defines a number of vendor independent TLVs, but there is scope in the specification for Vendor specific (SMPP Server) name/value pairs.
NCL exposes the TLVs in the Message Attribute Names. (ie.ncl.sms.smpp.SmppMessageAttributeNames).
Each TLV attribute will have a the name "sms.smpp.tlv.X" where X is the hex value identity of the Tag in the SMPP spec (without the '0x' part). The value returned is a byte array (or null if it is not defined). The data (and its encoding) in this byte array varies from TLV to TLV.
Please consult your SMPP vendors specifications for proprietary additions to the range of TLVs.
Example
In the example below, TLV ms_msg_wait_facilities which has a tag value of 0x30 is used.
Code:
Message msg = new TextMessage(new Address("123456789"), "Hello");
String tlvName = "sms.smpp.tlv.30";
byte tlvValue[] = new byte[] {1};
msg.putAttribute(tlvName,tlvValue);
tlvValue = (byte[])msg.getAttribute(tlvName);
Example
In the example below, TLV Ericsson IPX Account Name which has a tag value of 0x1600 is used.
Code:
Message msg = new TextMessage(new Address("123456789"), "Hello");
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum