Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdouchement/smsc3
An SMSC emulator able to send and receive SMS.
https://github.com/mdouchement/smsc3
emulator fake fakesmsc server simulator smpp smpp-server smsc
Last synced: 5 days ago
JSON representation
An SMSC emulator able to send and receive SMS.
- Host: GitHub
- URL: https://github.com/mdouchement/smsc3
- Owner: mdouchement
- License: mit
- Created: 2020-08-30T14:53:39.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-09T20:37:39.000Z (6 months ago)
- Last Synced: 2024-06-20T18:37:43.265Z (5 months ago)
- Topics: emulator, fake, fakesmsc, server, simulator, smpp, smpp-server, smsc
- Language: Go
- Homepage:
- Size: 85.9 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SMSC3
SMSC3 is a SMSC simulator based on SMPP3.4.
It alows to fake incoming and outgoing SMS.
## Usage
See `smsc3.go` if you want to customise the configuration via environment variables.
```sh
$ go run .
[2020-08-30 14:38:46] INFO Listening SMPP :20001
[2020-08-30 14:38:46] INFO Listening HTTP on :6000
```### Example with Kannel:
1. Launch smsc3 docker container
```sh
$ docker network create kannel
$ ./run.sh
```2. Launch Kannel
```sh
$ cd .kannel
$ docker-compose kill && docker-compose rm -f && docker-compose up
```Test Kannel:
```sh
$ ./send-sms.sh cm
```3. Send an incoming SMS (SMSC -> ESM)
`POST http://localhost:6000/deliver`
```json
{
"session": "kannel-sinch",
"from": "GOPHER",
"to": "+33600000001",
"message": "Hello world!",
"-message": "Hello world! バカ"
}
``````json
{
"status": 200,
"message": "OK 1U6i7TeNjcE (2)"
}
```4. Send an outgoing SMS (ESM -> SMSC)
```sh
$ cd .kannel
$ ./send-sms.sh sinch
```## License
**MIT**
## Contributing
All PRs are welcome.
1. Fork it
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
5. Push to the branch (git push origin my-new-feature)
6. Create new Pull Request