SMSC3 is a SMSC simulator based on SMPP3.4.
It alows to fake incoming and outgoing SMS.
See smsc3.go
if you want to customise the configuration via environment variables.
$ go run .
[2020-08-30 14:38:46] INFO Listening SMPP :20001
[2020-08-30 14:38:46] INFO Listening HTTP on :6000
- Launch smsc3 docker container
$ docker network create kannel
$ ./run.sh
- Launch Kannel
$ cd .kannel
$ docker-compose kill && docker-compose rm -f && docker-compose up
Test Kannel:
$ ./send-sms.sh cm
- Send an incoming SMS (SMSC -> ESM)
POST http://localhost:6000/deliver
{
"session": "kannel-sinch",
"from": "GOPHER",
"to": "+33600000001",
"message": "Hello world!",
"-message": "Hello world! バカ"
}
{
"status": 200,
"message": "OK 1U6i7TeNjcE (2)"
}
- Send an outgoing SMS (ESM -> SMSC)
$ cd .kannel
$ ./send-sms.sh sinch
MIT
All PRs are welcome.
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request