Follow

Send long (concatenated) messages with PHP code

For SMS message content longer than 160 characters, you must split the message to max 153 characters per post and send as concatenated messages. Most mobile phone would display this as a single long message.

Each SMS consists of 160 characters as defined by the GSM specification. For long messages, each 153 characters will be considered as 1 message. The remaining 7 characters are used as "technical data glue" to join each message part together.

When you send a concatenated msg, you need to be careful for UserHeader value.

Below is an example Userheader value for each part of of a 3-part message.

050003760301
050003760302
050003760303

where the Userheader value is

050003 ==> constant value

76 ==> identify code (counter value)

03 ==> total msg part

01 ==> current msg part

It is recommend that your system to assign different value for identify code (counter value).
The range is from 0 to FF in hexadecimal.

You can refer to section 3.2 of our API guide for the detailed instructions.
http://commzgate.com/downloads/CommzGate_CloudAPI_Guide_v4.2.pdf

 

Attached here is sample code in PHP for concatenated messages.

1 Comments

  • Avatar
    CommzGate Support

    In our updated API, you can also use the "Type=LA" parameter to have our system automatically concatenate your long message without have to manually break the long message into individual parts..

    Please refer to our latest API guide for details.

Please sign in to leave a comment.