The gateway said ERR: 113, Max message parts exceeded
| Project: | SMS Framework |
| Version: | 6.x-1.0 |
| Component: | Clickatell |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
I just installed the framwork this morning and it's working great, with one small exception... my messages appear to be too large. Is there a simple way that I can expand the size?
I checked the clickatell site, and there response is [http://support.clickatell.com/faq.php?mode=view_entry&kbid=15&kbcat=11]:
RESOLUTION
The standard SMS length including spaces is 160 characters. If your message exceeds this length, you will have to concatenate it so it can span multiple messages. Select concat equal to 1,2,3-N to overcome this by splitting the message across multiple messages.
A concatenated message has a length of 153 text characters and 7 characters of UDH information, indicating that this is message part 1 of 4.
A message with 320 characters, will then span 3 messages For example, 153+153+14, and you will have to set the paramater concat=3 along with your message.

#1
Hiya,
I have the same problem, but I don't know where to set the "concat" parameter. On my site, the SMS framework is installed together with the OG module. SMS blast works fine, but for instance broadcasting a message to a group doesn't work: ERR 113, as above.
Any ideas?
Thanks in advance,
Stephan
#2
I'm still setting on the same error. I just reactivated the SMS module and still haven't resolved it.
#3
The error above indicates that you have tried to send a message that is too long. Clickatel will automatically span the message across multiple txts but requires yoru permissions to do so. You provide this in the form of adding '&concat=X' where X is the maximum number of text messages you want to be sent out with any single request. We should probably add an option that either truncates the message to 160 or adds a administrative setting so that users can pick a reasonable number. Clickatel suggests 3 as a well supported number with most carriers.
If you'd like to just make it work in the short term you can change line number 132 in clickatell.module from:
$query = 'session_id='. sms_clickatell_get_session_id() .'&to='. $data['number'] .'&text='. $message;to
$query = 'session_id='. sms_clickatell_get_session_id() .'&to='. $data['number'] .'&concat=3&text='. $message;#4
Just FYI, the updated Clickatell module (as per http://drupal.org/node/441650) sets the concat parameter automatically, based on the length of the message.
As far as I am aware, the updated module has not yet been formally approved or included, but a few of us have tested it fine. Let me know if you have any difficulty with it.