An open API service indexing awesome lists of open source software.

https://github.com/gpproton/sms-gateway

Setup for kannel and playSMS
https://github.com/gpproton/sms-gateway

Last synced: 3 months ago
JSON representation

Setup for kannel and playSMS

Awesome Lists containing this project

README

        

# SMS Gateway (PlaySMS/Kannel)

## Clear & Bootstrap setup

```bash
sudo rm -rf .docker && \
cp ./kannel/kannel.sample.conf kannel.conf && \
cp .env.sample .env
```

## Adjust kannel configuration

Apply necessary updates to kannel.conf and .env

```bash
docker-compose up -d --no-build
docker-compose logs -f
```

Then visit address => http://localhost:8081/

## Check Bearer status

```bash
curl http://localhost:13000/cgi-bin/status?password=playsms
```

## Send using SMSBox service

```bash
curl http://localhost:13131/cgi-bin/sendsms?username=playsms&password=playsms&to=234xxxxxxxxxx3&text=Hello+world
```

## PlaySMS API sample

```bash
curl -v http://localhost/index.php?app=ws&u=admin&h=e81ac2b29e89a5d2573fc985691712a6&op=pv&to=234xxxxxxxxxx3&msg=test+only
```