ch-smpp

Efficient, scalable, and flexible Java implementation of the Short Messaging Peer to Peer Protocol (SMPP)

License

License

GroupId

GroupId

com.fizzed
ArtifactId

ArtifactId

ch-smpp
Last Version

Last Version

6.0.0-netty4-beta-3
Release Date

Release Date

Type

Type

jar
Description

Description

ch-smpp
Efficient, scalable, and flexible Java implementation of the Short Messaging Peer to Peer Protocol (SMPP)
Project URL

Project URL

https://github.com/twitter/cloudhopper-smpp
Project Organization

Project Organization

Fizzed, Inc
Source Code Management

Source Code Management

https://github.com/fizzed/cloudhopper-smpp

Download ch-smpp

How to add to project

<!-- https://jarcasting.com/artifacts/com.fizzed/ch-smpp/ -->
<dependency>
    <groupId>com.fizzed</groupId>
    <artifactId>ch-smpp</artifactId>
    <version>6.0.0-netty4-beta-3</version>
</dependency>
// https://jarcasting.com/artifacts/com.fizzed/ch-smpp/
implementation 'com.fizzed:ch-smpp:6.0.0-netty4-beta-3'
// https://jarcasting.com/artifacts/com.fizzed/ch-smpp/
implementation ("com.fizzed:ch-smpp:6.0.0-netty4-beta-3")
'com.fizzed:ch-smpp:jar:6.0.0-netty4-beta-3'
<dependency org="com.fizzed" name="ch-smpp" rev="6.0.0-netty4-beta-3">
  <artifact name="ch-smpp" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.fizzed', module='ch-smpp', version='6.0.0-netty4-beta-3')
)
libraryDependencies += "com.fizzed" % "ch-smpp" % "6.0.0-netty4-beta-3"
[com.fizzed/ch-smpp "6.0.0-netty4-beta-3"]

Dependencies

compile (4)

Group / Artifact Type Version
com.cloudhopper : ch-commons-util jar 6.0.2
com.cloudhopper : ch-commons-charset jar 3.0.2
org.slf4j : slf4j-api jar 1.7.19
io.netty : netty-all jar 4.0.35.Final

test (4)

Group / Artifact Type Version
junit : junit jar 4.12
com.cloudhopper : ch-commons-gsm jar 3.0.0
ch.qos.logback : logback-core jar 1.1.6
ch.qos.logback : logback-classic jar 1.1.6

Project Modules

There are no modules declared in this project.

Cloudhopper SMPP by Fizzed (forked from Twitter)

Build Status

Sponsored by

Cloudhopper-SMPP is proudly sponsored by Greenback. We love the service and think you would too.

Greenback

More engineering. Less paperwork. Expenses made simple.

Overview

Efficient, scalable, rock-solid, and flexible Java implementation of the Short Messaging Peer to Peer Protocol (SMPP).

Twitter exclusively relies on this library for its global SMS infrastructure.

  • Real-world used library by Twitter across nearly every SMSC vendor and mobile operator around the world. We've seen almost every variance in the SMPP protocol and this library handles it flawlessly.
  • Rigorous unit testing
  • Support for SMPP protocol:
    • Version 3.3
    • Version 3.4
    • Most of version 5.0
  • Uses non-blocking (NIO) sockets (via underlying Netty dependency, one thread can support 1 or more SMPP sessions)
  • Can support thousands of binds/connections using minimal resources and threads
  • Supports both client and server modes of the SMPP protocol (yes you can write your own SMPP server using this library as well as be a client to one)
  • Supports synchronous request mode (send request and block until response received)
  • Supports asynchronous request mode (send request, get a future response, and then decide when you'd like to wait/get a response)
  • Advanced support for SMPP "windowing":
    • Configurable window size per session
    • Waiting for a window slot to open up
    • Get a list of unacknowledged/in-flight PDUs if session disconnects
  • SSL/TLS support for clients and servers
  • Configurable support for expiry of unacknowledged PDUs
  • Configurable counter metrics per client-session, server-session, or server.
  • Support for sniffing/logging/discarding of PDUs before normal processing

The library has been tested and certified with hundreds of mobile operators and suppliers around the world. It's effective at being flexible with SMPP specifications that aren't truly compliant.

Background and Contributors

This library was originally developed by Cloudhopper, Inc. in 2008. Cloudhopper was acquired by Twitter in April 2010. The main author of this library, Joe Lauer, left Twitter in April 2013 to found Fizzed, Inc. As of Nov 2015, Fizzed, Inc is the official maintainer of the library. If you're looking for commercial support, please contact Fizzed.

Installation

Library is available via maven central. For netty-3 and a stable version:

<dependency>
  <groupId>com.fizzed</groupId>
  <artifactId>ch-smpp</artifactId>
  <version>5.0.9</version>
</dependency>

For netty-4 and a little more bleeding edge. Visit netty-4 branch

<dependency>
  <groupId>com.fizzed</groupId>
  <artifactId>ch-smpp</artifactId>
  <version>6.0.0-netty4-beta-3</version>
</dependency>

Demo Code / Tutorials

There are numerous examples of how to use various parts of this library:

src/test/java/com/cloudhopper/smpp/demo/

To run some of the samples, there is a Makefile to simplify the syntax required by Maven:

make client
make server
make performance-client
make simulator
make rebind
make parser
make dlr
make ssl-client
make ssl-server
make persist-client
make server-echo

On Windows, the examples can run with nmake instead of make.

The easiest way to get started is to try out our server and client or ssl-server and ssl-client examples. Open up two shells. In the first shell, run:

make server

In the second shell, run:

make client

You'll see the client bind to the server and a few different type of requests exchanged back and forth.

You can also try make persist-client instead of make client which demonstrates a persistent SMPP connection.

make server-echo will echo back any MT as an MO. This makes it easier to test handling of MO messages.

User Contributed Demos

A more complete persistent client demo:

(https://github.com/krasa/cloudhopper-smpp/tree/persistent-connection/src/test/java/com/cloudhopper/smpp/demo/persist)

A tutorial in Russian:

https://github.com/wizardjedi/my-spring-learning/wiki/Twitter-cloudhopper

Please let us know if you have other tutorials worth mentioning!

License

Copyright (C) 2015+ Fizzed, Inc. Copyright (C) 2009-2015 Twitter, Inc. Copyright (C) 2008-2009 Cloudhopper, Inc.

This work is licensed under the Apache License, Version 2.0. See LICENSE for details.

com.fizzed

Fizzed, Inc.

Helping companies launch and grow their mobile, web, and data products

Versions

Version
6.0.0-netty4-beta-3
5.0.9