asikcse / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
1 stars 0 forks source link

Wrong Numeric Plan Indicator Constants #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Version: 2.1.0

Problem:
SMPPConstant.NPI_ERMES is returning 16 instead of 10. The problem is that you 
are defining the constants in hexadecimal values. So, 0x10 is really 16 
(decimal) and 00010000 (binary). However, ERMES should be 10 (decimal) and 
00001010 (binary) according to the SMPP 3.4 specification.

This problem will be only occur with values greater than 9 (lower values are 
equivalent in hex and decimal).

Original issue reported on code.google.com by german.e...@gmail.com on 23 Aug 2010 at 9:39

Attachments: