Skip to content
Snippets Groups Projects
Select Git revision
  • 2df004227cdeb6c8fdd9ecb50221e0fc329da337
  • main default protected
2 results

sms-gateway

  • Clone with SSH
  • Clone with HTTPS
  • David Huss's avatar
    David Huss authored
    2df00422
    History
    Name Last commit Last update
    examples
    src
    .gitignore
    Cargo.lock
    Cargo.toml
    README.md

    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

    1. Just execute the binary and it will create a default configuration for you
    2. execute it again and it should be running now
    3. setup nginx reverse proxy
    4. Ensure sms-gateway runs under permissions that may write to /var/spool/sms/outgoing

    Compilation

    1. Ensure rust/cargo is installed
    2. fomr the project folder run cargo build --release
    3. copy the resulting binary