/smpp-client-nodejs

Useful SMPP clients in NodeJS that sends SMS & Text messages to SMPP hosts.

Primary LanguageJavaScriptMIT LicenseMIT

SMPP Client (NodeJS) works with TCXC SMPP proxy (SMS Exchange) or any other SMPP host.

You can get an SMPP account at https://members.telecomsxchange.com

if you dont have an existing buyer account on TelecomsXChange visit www.telecomsxchange.com/buyerjoin

Installation

  • Clone this repository to your machine
# git clone https://github.com/telecomsxchange/smpp-client-nodejs.git
cd /smpp-client-nodejs/
  • Install node modules
# npm install

# npm install system-sleep
  • Open send.js in your text-editor and add your SMPP host,port, username, password.

  • Send SMS

# node send.js 

SMPP Stress Test Client

# cd /smpp-client-nodejs/
  • Install node modules
# npm install
  • Open smpp-stress-tester.js in your code editor and configure SMPP HOST, PORT, USER, PASS, MESSAGES COUNT etc..
const test_sms_count = 5000;                // Number of SMS messages to send.
const req_sec_limit = 65;                   // Number of messages per second
const sleep_time = 1/req_sec_limit*1000;    // Sleep time / Wait for x secs
  • Start SMPP test
# node smpp-stress-tester.js

Using this SendViber.js script to send a message to Viber user

This configuration only works if you're using TCXC to send messages through viber. You must first have purchased Viber SMS route on TCXC first in order to be routed through the correct link, We also require sender ID verification process to whitelist your brandname or sender id.

If you have done that already, you may send a test message to a viber phone number as shown below.

# node SendViber.js

Got Stuck?

If you're stuck please open a github issue (https://github.com/telecomsxchange/smpp-client-nodejs/issues )

If you're a TCXC member (Paying subscriber) you may open a trouble ticket by emailing support@telecomsxchange.com