Add New SMPP TLV Parameter

Add New SMPP TLV Parameter SearchSearch
Author Message
chady nemer
New member
Username: Tiger961

Post Number: 1
Registered: 06-2011
Posted on Tuesday, June 21, 2011 - 03:15 pm:   

dear Bryce,

i established ans SMPP connection with a operator. he asked me to add TLV parameters when sending SMS.

the TLV parameters are as follow:
tag: 17 75
length: 00 06
value: 4D 54 42 69 6C 6C

can you please assist me in trying to configure the nowsms to be able to send them noting that i'm using nowsms version 2006.03.09

waiting for you kind support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3281
Registered: 08-2008
Posted on Tuesday, June 21, 2011 - 05:47 pm:   

Hi,

Manually edit SMSGW.INI and create or edit an [SMPPOptions] section in SMSGW.INI, adding the following entries to this section:

[SMPPOptions]
my1775=1775,String

"my1775" is a descriptive name that you may want to change to something more meaningful.

"1775" is to TLV parameter number in hex format.

"String" indicates that the parameter value is a text string. (Alternatively, "CString" indicates a null terminated text string. "Integer" indicates a numeric value. Later versions support an additional parameter "HexString" which is needed for some binary values ... however in your case 4D 54 42 69 6C 6C is hex encoding for the text string "MTBill", so you can use the "String" type.)

When the above parameter is present in SMSGW.INI (restart the NowSMS service after editing SMSGW.INI), NowSMS will support an additional HTTP parameter value of "&SMPPOption_my1775=" that can be included when submitting messages.

For example:

http://server:port/?phonenumber=12345678&text=test&SMPPOption_my1775=MTBill

If you want to automatically include this MTBill parameter in every message without requiring it to be explicitly set for each message submission, it is possible to configure NowSMS to use a default value for this parameter when submitting messages to your SMPP connection.

To define a default values for this parameters, manually edit the SMSGW.INI, and in the section header for an SMPP connection (e.g., [SMPP - ip.address:port]), add a "DefaultSMPPOptions=" setting, where the value of this setting can contain any of the "SMPPOptions" settings. For example:

DefaultSMPPOptions=my1775=MTBill

(If you have multiple SMPPOptions parameters defined that need to be set as default, separate them with a ";". For example: DefaultSMPPOptions=my1775=MTBill;otherparm=othervalue)

--
Des
NowSMS Support
chady nemer
New member
Username: Tiger961

Post Number: 2
Registered: 06-2011
Posted on Wednesday, June 22, 2011 - 02:19 pm:   

thank you Des, it worked.


best regards.
chady nemer
New member
Username: Tiger961

Post Number: 3
Registered: 06-2011
Posted on Tuesday, June 28, 2011 - 10:47 am:   

dear Des,

is there any way to add the source TON as an additional parameter when submitting sms using HTTP URL?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7960
Registered: 10-2002
Posted on Tuesday, June 28, 2011 - 01:44 pm:   

Hi,

No, there is not. At least not directly.

The source TON (and destination TON) are determined automatically based upon the sender/source (and recipient/destination) phone numbers.

If you want to use TON=1 (international), then you should start the phone number with a + character (+ is URL escaped as %2B).

If you want to use TON=0, then the phone number should not start with a +.

There are also situations where based upon the sender number, NowSMS may choose to use TON=3 (network specific number, which some providers require you to use for short codes) or TON=5 (alphanumeric).

Some more information about how NowSMS chooses the TON value can be found here: http://www.nowsms.com/ton-and-npi-settings-for-smpp-and-ucpemi

-bn