
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
= 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 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.