NCL Community Forum Index
  Home   Login   Register   Help   Memberlist   Search   NCL  

NCL Community Forum Index » SwiftNote (SMSJDK) Support » Optional attributes in SMPP 3.4 (TLV)
Post new topic  Reply to topic View previous topic :: View next topic 
Optional attributes in SMPP 3.4 (TLV)
PostPosted: Thu Mar 03, 2005 12:21 pm Reply with quote
Administrator
Site Admin
Joined: 11 Aug 2004
Posts: 237




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");

        String tlvName = "sms.smpp.tlv.1600";

        byte tlvValue[] = "BusinessConnect_flat".getBytes();

        msg.putAttribute(tlvName,tlvValue);

        tlvValue = (byte[])msg.getAttribute(tlvName);

View user's profile Send private message

Optional attributes in SMPP 3.4 (TLV)
 NCL Community Forum Index » SwiftNote (SMSJDK) Support
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
All times are GMT  
Page 1 of 1  

  
  
 Post new topic  Reply to topic