Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Investigate messages getting broken up #51

Open
sethetter opened this issue Aug 9, 2019 · 6 comments
Open

Investigate messages getting broken up #51

sethetter opened this issue Aug 9, 2019 · 6 comments

Comments

@sethetter
Copy link
Member

It sounds like certain carriers result in the messages received being broken up, even if the message is short. Let's figure out how to prevent that!

@imacrayon
Copy link
Collaborator

Here's what I got from Sprint:
IMG_3185

Looks like they're consistently broken up into 153 character chunks. I'm not sure what happened with that message on Monday though.

@sethetter
Copy link
Member Author

Sounds like sprint is a consistent problem! I've heard the same from Sarah Jane at KMUW.

@kentonh
Copy link

kentonh commented Aug 10, 2019

SMS messages are limited to 160 characters, and it looks like the carrier breaks up messages that are too big according to arbitrary guidelines of pagination or other information.

I'm not positive, but based on the archive the Monday message might have had some character returns in the message that confused the carriers more.

Limiting the messages to 150 characters and cleaning the string might be the best way to prevent breaking up the messages.
A testing system (a message creator can test a message by sending it to themselves) is a secondary (more complex) option.

@imacrayon
Copy link
Collaborator

I’ve got a plan to develop some kind of UI that will show where messages might break, something similar to this: http://chadselph.github.io/smssplit/

@sethetter
Copy link
Member Author

I was looking into the Twilio logs and noticed that messages with a GSM encoding were sent in 1 segment, but the UCS2 ones (for the most recent message) were sent in 4 segments 😱 .

@sethetter
Copy link
Member Author

Reading up on this more and it looks like there are few things that can trigger a message getting split into segments. One of them is length, the other is using non-GSM supported characters, and apparently the most common offenders are the fancy smart quotes that a lot of computers substitute in for regular quote marks!

I filed #103 as a result.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants