Skip to content

Support of sender in alphanumeric format based on international phone number prefix

Notifications You must be signed in to change notification settings

gliderShip/countries-alphanumeric-sms-sender-support

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

countries-alphanumeric-sms-sender-support

Support of sender in alphanumeric format, based on international phone number prefix

Objectives

The goal of this project is to determine whether an international phone number can be the destination of a Short Message Service (SMS) message using a sender in alphanumeric format.

Support for alphanumeric senders depends on the country and in at least one case (Japan) on the telecom operator.

Processing Chain

  1. initialize and/or update the git submodule datasets/countrycodes:
git submodule init
git submodule update
  1. retrieve alpha sender support from Twilio
cd data/twilio
npm install
node scrape.json
cd -
  1. create mapping from country names to ISO2 country codes
./data/twilio-mapping/map.sh

Note that the file data/twilio-mapping/step4/aliases.csv must be edited by hand to associate country names which do not match between Twilio source and the country codes source. The file needs only to be updated when new names in Twilio source fail to match.

  1. join and refine data to produce the final file
./data/country-dial-codes/join.sh

This produces the file alphasendersupport.csv at the root of this project. This file includes one line for each dial code prefix and country (at least one country has several prefixes, and thus appears multiple times), and indicates whether this country supports alphanumeric senders for SMS messages:

  • always (yes)
  • never (no)
  • with exceptions (partial)

Note that dial codes may be shared by several countries, and that some prefixes are longer than other, e.g. 1 for CA, PR, US has no alpha support, while 1242 for BS also starts with 1 but has alpha support.

References

Software License

Copyright 2017 eGull SAS
Licensed under the Apache License, Version 2.0

About

Support of sender in alphanumeric format based on international phone number prefix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 74.4%
  • JavaScript 25.6%