liqinsg / fakesmpp

Simple fake SMPP server based on node.js smpp package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fakesmpp

========

Simple fake SMPP server based on node.js smpp package

The app supports ESME complinat auth, ACK and responses.

Auth

--system_id [your-username] --password [your-password]

By default system_id=username and password=password

Port

--port [port]

By default port=2775

Status

--status [status] A full list is available in smpp.js

By default status=delivered

Delays

--ddmin [seconds for minimum delay] --ddmax [seconds for maximum delay]

By default ddmin=0 and ddmax=0

Logs

Logs are saved in /var/log/fakesmpp.log and app console.

Install

Note: This project uses yarn instead of npm.

Classic

git clone https://github.com/tiltroom/fakesmpp.git
cd fakesmpp
yarn install

Start the app with default setting with one of the commands below:

yarn start
node smpp.js

Start the app with custom settings (all the params are optional):

node smpp.js --port [port] --ddmin [s] --ddmax [s] --status [status] --system_id [username] --password [password]

Docker

git clone https://github.com/tiltroom/fakesmpp.git
cd fakesmpp
docker build .
docker run -p [port of choice]:2775 -d [build hash]

About

Simple fake SMPP server based on node.js smpp package

License:MIT License


Languages

Language:JavaScript 97.8%Language:Dockerfile 2.2%