TLV parameters (source_subaddress) for each message

TLV parameters (source_subaddress) for each message SearchSearch
Author Message
Ngan Pham
New member
Username: Pkngan

Post Number: 4
Registered: 06-2007
Posted on Wednesday, August 20, 2008 - 08:00 am:   

My SMPP provider requires me to use TLV parameter: source_subaddress. Some SMS will have source_subaddress that contains special value. I expected to do that adding parameter to URL such as: "&TVL__source_subaddress=....".

Do you have any alternative way?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 33
Registered: 08-2008
Posted on Wednesday, August 20, 2008 - 08:20 pm:   

You would do it in a way that is similar to what you describe.

However, first you need to enable support for that TLV parameter.

Edit SMSGW.INI, and add the following:

[SMPPOptions]
source_subaddress=202,String

Add the above to SMSGW.INI exactly as is. This tells NowSMS to enable TLV parameter 0x202 with a name of "source_subaddress" and an SMPP data type of octet string.

Once this parameter is present in SMSGW.INI, you can include "&SMPPOption_source_subaddress=xxxxx" in your URL submissions to specify a value.

It is also possible to specify a default value to be used for this parameter if it is not present. To do this, edit SMSGW.INI, and under the [SMPP - server:port] section header for your SMPP connection, add DefaultSMPPOptions=source_subaddress=xxxxx to specify a default value for this setting.


--
Des
NowSMS Support
Ngan Pham
New member
Username: Pkngan

Post Number: 5
Registered: 06-2007
Posted on Thursday, August 21, 2008 - 12:09 am:   

Thank you, I wasn't read all documents.

Additional question:

Which NowSMS version support above thing?
May be 2007-04-11 ?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 45
Registered: 08-2008
Posted on Thursday, August 21, 2008 - 07:03 pm:   

2007.04.11 should be fine. I know this feature has not changed significantly since the 2006 release. (The only change since then has been support for a HexString data type, which is used when you have a TLV parameter value that requires a binary value.

That said ... source_subaddress is one of the parameters that requires a binary value, even though it is defined in the SMPP specification as being an octet string.

Here's a thread that discusses encoding of the source_subaddress parameter:

http://support.nowsms.com/discus/messages/485/20463.html

Contrary to my earlier advice, it appears that the following SMSGW.INI setting is required:

[SMPPOptions]
source_subaddress=202,HexString

Support for the HexString encoding was added in the 2007.04.11 release, so I suspect that you have already read the thread that I linked to above.

--
Des
NowSMS Support