sms-gateway
A http frontend for SMS Server Tools 3
Features
- Configurable validation of minimum/maximum message length
- Validation of validity of GSM-7 characterset
- Highly configurable rate limiting for multiple arbitrary time spans (e.g. one global limit per month, another per-receiver limit per minute)
- Configurable automatic data retention of stored numbers/timestamps
- No database (in memory)
- Written in Rust (typesafe, memorysafe, fast)
Usage
Send a message via post request (IP and Port need to match your configuration):
curl -i -d '{"number": "+4915785315089", "text": "Hello from an SMS"}' -H 'Content-Type: application/json' -X POST http://127.0.0.1:4242
Installation
- Just execute the binary and it will create a default configuration for you
- execute it again and it should be running now
- setup nginx reverse proxy
- Ensure sms-gateway runs under permissions that may write to
/var/spool/sms/outgoing
Compilation
- Ensure rust/cargo is installed
- fomr the project folder run
cargo build --release
- copy the resulting binary