[GH-ISSUE #70] Only allow sending to phone's current country #63

Closed
opened 2026-02-28 01:22:59 +03:00 by kerem · 1 comment
Owner

Originally created by @olliebennett on GitHub (Dec 23, 2012).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/70

I can imagine people being concerned about setting up their phone to mindlessly send messages to any number provided by the server.

I live in the UK, and the cost of sending a SMS to another country is quite high (and outside my included free texts). Therefore I only want to send out messages to numbers in this country.

I would like to have an option in the SMSSync app that prevents sending of messages to any recipient not beginning with the UK country code (i.e. +44).

Ideally the phone would still send messages without a country prefix (for example, in the UK 07123456789 is the same as +447123456789).

An idea for a new setting in the settings page:

Limit message sending to:
      +------------------+
 [x]  | e.g. +254        |
      +------------------+

Possible problems:

  • The app can't inform the server that a message has not been sent (yet - see issue #11).
  • Is there an easy way to detect whether a number has the country code attached? I know there are lots of oddities with different countries having different international calling prefixes, so if configured this way, the server would have to send the +44 version, instead of (for example) 00447123456789 (which would work in the UK, but not in Kenya who would need to dial 0447123456789).
Originally created by @olliebennett on GitHub (Dec 23, 2012). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/70 I can imagine people being concerned about setting up their phone to mindlessly send messages to any number provided by the server. I live in the UK, and the cost of sending a SMS to another country is quite high (and outside my included free texts). Therefore I only want to send out messages to numbers in this country. I would like to have an option in the SMSSync app that prevents sending of messages to any recipient not beginning with the UK country code (i.e. `+44`). Ideally the phone would still send messages without a country prefix (for example, in the UK `07123456789` is the same as `+447123456789`). An idea for a new setting in the settings page: ``` Limit message sending to: +------------------+ [x] | e.g. +254 | +------------------+ ``` Possible problems: - The app can't inform the server that a message has not been sent (yet - see issue #11). - Is there an easy way to detect whether a number has the country code attached? I know there are lots of oddities with different countries having different [international calling prefixes](http://en.wikipedia.org/wiki/List_of_international_call_prefixes), so if configured this way, the server would _have_ to send the `+44` version, instead of (for example) `00447123456789` (which would work in the UK, but not in Kenya who would need to dial `0447123456789`).
kerem closed this issue 2026-02-28 01:23:00 +03:00
Author
Owner

@eyedol commented on GitHub (Dec 23, 2012):

@olliebennett I would rather leave this to the client side to implement since the client side gives SMSSync the number and message to send.

<!-- gh-comment-id:11649485 --> @eyedol commented on GitHub (Dec 23, 2012): @olliebennett I would rather leave this to the client side to implement since the client side gives SMSSync the number and message to send.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SMSSync#63
No description provided.