Smpp optional parameters types

Smpp optional parameters types SearchSearch
Author Message
Ricardo Cordova
New member
Username: Rick_c96

Post Number: 1
Registered: 05-2011
Posted on Friday, May 13, 2011 - 07:55 pm:   

HI,

I am currently trying to include some optional parameters for an account with Open Market. Their integration guide states this parameters must use "short" as the type but NowSMS documentation only mentions; "string", "cstring" or "integer" as valid types. Can I substitute the "short" type for any of the above, or can I use "short" even though it's not mentioned...

thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3170
Registered: 08-2008
Posted on Friday, May 13, 2011 - 08:13 pm:   

Hi Ricardo,

"short" is not a defined type in the SMPP specification.

So it depends what they mean by "short". I would guess that it is an integer in 1 or 2 bytes.

You can specify the length as a parameter in the SMPP option to force it to a particular size, like this:

optionname=value,Integer,2

Another alternative is using the newer HexString type. This is useful for when you have to supply some bitmap values. With this setting, you supply a hex string, and we encode it in the TLV parameter value bytes.

If you need more assistance, please give me some details on the parameter definition.

--
Des
NowSMS Support