Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indicate cost of SMS #889

Closed
jefft opened this issue Mar 30, 2023 · 3 comments
Closed

Indicate cost of SMS #889

jefft opened this issue Mar 30, 2023 · 3 comments

Comments

@jefft
Copy link
Contributor

jefft commented Mar 30, 2023

It is quite easy for churches to rack up large SMS bills. It would be nice if Jethro could indicate how much an about-to-be-sent SMS will cost. E.g.

image

Noting that SMSes are billed per 160 characters might encourage senders not to exceed 160 chars unnecessarily.

@tbar0970
Copy link
Owner

This is particularly applicable when the max SMS length in Jethro is configured to allow multi-part SMS. The default length is 160 I think, which keeps things a bit simpler.

@tbar0970
Copy link
Owner

Working out the number of message parts required is actually non-trivial. If all the characters in the message are part of GSM-7, a single part can fit 160 characters. But if other more spicy characters are included, each part can hold less characters and more parts are required. The exact behaviour is vendor-dependent. Some vendors might just drop non-GSM-7 characters.
https://www.twilio.com/docs/glossary/what-sms-character-limit

@tim-pearce
Copy link
Contributor

With ClickSend I think (I could be wrong) the limit is 120 characters.
ClickSend tells you the price in the response so one could perhaps keep a history of how much has been sent.

As for the original request here, it may be sufficient to be able to give an estimate of the cost rather than try to calculate the actual cost.

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

No branches or pull requests

3 participants