Changing the ESM class which is set default as 0 for long messages | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ |
◄ ► |
Author | Message | |||
Aditya Chopra New member Username: Adifreaks86 Post Number: 1 Registered: 08-2020 |
Changing the ESM class which is set default as 0 for long messages I am trying to send a long message as multi-part but ESM class is going as 0x00 i.e. 0 instead of 0x40 i.e. 64. How to set ESM class as 64 for multipart message >160 characters while 0 for short message <160 characters. How can i override the esm class being sent as 0 | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 6168 Registered: 08-2008 |
Hi, esm_class 64, or bit mask 0x40 is not specific to long messages. It is used to indicate that user data header (UDH) is present in the message data, and is also known as the UDHI flag (UDH Indicator). When UDHI is set, it indicates that the start of the message data is in UDH format. When you submit a long message via NowSMS, the UDH would be generated automatically, and in a default configuration, the UDHI (esm_class 64) would be set automatically. There are two configuration options that would change this behavior: 1) “use TLV parameters for port numbers and segmentation” - When this is set, segmentation is encoded in TLV, and UDH is cleared. The UDHI flag is not set in esm_class because there is no UDH in the SMPP packet. 2.) “WDP adaptation” - When this is set, NowSMS recombines the long message and submits as a single message. No UDH involved. ‘’ Does this explain what you are seeing? — Des NowSMS Support | |||
Aditya Chopra New member Username: Adifreaks86 Post Number: 2 Registered: 08-2020 |
Thank you this solves my problem. Now messages are going correctly with these settings. |