benkuly / matrix-sms-bridge

Matrix bridge, that allows you to bridge matrix rooms to SMS with one telephone number only.
GNU Affero General Public License v3.0
76 stars 5 forks source link

Allowing alphanumerical SMS SenderIDs #6

Closed erikhb closed 3 years ago

erikhb commented 3 years ago

Alphanumerical SMS SenderIDs are widely used by automated SMS services (2-factor auth, online banking, cc information) for one-way communication. As gammu uses the senderID as the number in the filename, the matrix-sms-bridge fails to verify the phone number. This quick hack of the gammu provider enables processing of the files and uses a configurable fake number for those messages. All messages from alphanumerical SenderIDs will hence be send into the same matrix room (with the configured fake number). The behaviour can be controlled via the config properties alphaSender (boolean) and alphaFakeNumber (string).

benkuly commented 3 years ago

Hm I didn't know that there is something like alphanumeric SMS SenderID's. I think I should add support for it independently of the provider without a fake-number (e. g. @sms_YOURBANK:matrix-local). I'm going to do it the in next few days. Thanks for the hint! See https://github.com/benkuly/matrix-sms-bridge/issues/7 for progress.