Giter Club home page Giter Club logo

fakesmpp's Introduction

fakesmpp

========

Simple fake SMPP server based on node.js smpp package

The app supports ESME complinat auth, ACK and responses.

Settings

Refer to settings object in app.js

Logs

Pino looger, console only

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 app.js

Docker

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

fakesmpp's People

Contributors

dependabot[bot] avatar tiltroom avatar

Stargazers

 avatar

fakesmpp's Issues

SMPP Server error

Hello Team,

i just install SMPP server using docker but getting below error after start.

yarn run v1.22.4
$ node smpp.js --port=2775 --ddmin=5000 --ddmax=15000
{"timestamp":"Fri, 30 Oct 2020 12:21:09 GMT","message":"Server listen port #2775","level":"info"}
events.js:174
throw er; // Unhandled 'error' event
^

RangeError [ERR_BUFFER_OUT_OF_BOUNDS]: Attempt to write outside buffer bounds
at boundsError (internal/buffer.js:47:11)
at Buffer.readUInt32BE (internal/buffer.js:268:5)
at Function.PDU.fromStream (/usr/src/app/node_modules/smpp/lib/pdu.js:48:30)
at Session.extractPDUs (/usr/src/app/node_modules/smpp/lib/smpp.js:59:20)
at Socket.emit (events.js:198:13)
at emitReadable
(_stream_readable.js:555:12)
at onEofChunk (_stream_readable.js:532:7)
at readableAddChunk (_stream_readable.js:237:5)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:125:12)
Emitted 'error' event at:
at Session._extractPDUs (/usr/src/app/node_modules/smpp/lib/smpp.js:63:9)
at Socket.emit (events.js:198:13)
[... lines matching original stack trace ...]
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:125:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.