Giter VIP home page Giter VIP logo

smpp-cli's Introduction

SMPP Client

SMPP Client (or smpp-cli) is a simply command line that helps you to send SMS from a terminal or your applications and processes through the DNode protocol. It helps you to handle a typical issues when you are working with SMPP protocol.

Getting Started

Install

Install the package globally in your machine:

npm install -g smpp-cli

Usage

Send SMS from Command Line Interface (CLI)

You can send one SMS from CLI using the next command:

smpp-cli send MySender +34000000000 "Hello World!" -h smpp.example.com -p 2675 -L loginUser -P myPassword

Mounting a Dnode server

You can mount a DNode server to send SMS from other processes or applications and keep a permanent connection to SMPP. This is specially recommened for applications that handle a high volume of SMS:

smpp-cli listen 7070 -h smpp.example.com -p 2675 -L loginUser -P myPassword

If you want receive the DLRs (Delivery Reports) from SMPP you should add de -C (callback) option. It will request for DLR for each SMS. If you ommit this option, the DLR will not requested:

smpp-cli listen 7070 -h smpp.example.com -p 2675 -L loginUser -P myPassword` -C /usr/bin/processingBin

What parameters expect the Dnode server:

Depending on your programming language where you are implementing the Dnode protocol the implementation it's different, but paramaters are finally the same. These are the parameters that you can use:

{
  "sourceAddress": "mySender",
  "destinationAddress": "+34000000000",
  "message": "Hello World!"
}

Libraries using smpp-cli:

License

MIT © David Pérez Terol

smpp-cli's People

Contributors

terox avatar

Stargazers

Holfer avatar

Watchers

James Cloos avatar

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.