![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
= Ruby-SMPP
{}[https://travis-ci.org/raykrueger/ruby-smpp]
== DESCRIPTION:
Ruby-SMPP is a Ruby implementation of the SMPP v3.4 protocol. It is suitable for writing gateway daemons that communicate with SMSCs for sending and receiving SMS messages.
The implementation is based on the Ruby/EventMachine library.
NOTE: Breaking change from 0.1.2 to 0.1.3. See below.
For help please use the Google group here: http://groups.google.com/group/ruby-smpp/topics === Glossary
=== Protocol
The SMPP 3.4 protocol spec can be downloaded here: http://smsforum.net/SMPP_v3_4_Issue1_2.zip
=== Testing/Sample Code
Logica provides an SMPP simulator that you can download from http://opensmpp.logica.com. You can also sign up for a demo SMPP account at one of the many bulk-SMS providers out there.
For a quick test, download smscsim.jar and smpp.jar from the Logica site, and start the simulator by typing:
java -cp smscsim.jar:smpp.jar com.logica.smscsim.Simulator
Then type 1 (start simulation), and enter 6000 for port number. The simulator then starts a server socket on a background thread. In another terminal window, start the sample sms gateway from the ruby-smpp/examples directory by typing:
ruby sample_gateway.rb
You will be able to send MT messages from the sample gateway terminal window by typing the message body. In the simulator terminal window you should see SMPP PDUs being sent from the sample gateway.
You can also send MO messages from the simulator to the sample gateway by typing 7 (log to screen off) and then 4 (send message). MO messages received by the sample gateway will be logged to ./sms_gateway.log.
== FEATURES/PROBLEMS:
== BASIC USAGE:
Start the transceiver. Receive delegate callbacks whenever incoming messages or delivery reports arrive. Send messages with Transceiver#send_mt.
tx = EventMachine::run do $tx = EventMachine::connect( host, port, Smpp::Transceiver, config, # a property hash delegate # delegate class that will receive callbacks on MOs and DRs and other events end
tx.send_mt(id, from, to, body)
As of 0.1.3 the delegate method signatures are as follows:
Where 'pdu' above is the actual actual instance of the Smpp:Pdu:: class created.
For a more complete example, see examples/sample_gateway.rb
== REQUIREMENTS:
== INSTALL:
sudo gem install ruby-smpp
== LICENSE:
Copyright (c) 2008 Apparat AS Released under the MIT license.
FAQs
Unknown package
We found that anjlab-ruby-smpp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.