Skip to content
/ SMPP Public

Java implementation of the SMPP specification which provides a client and server to send and receive short messages

Notifications You must be signed in to change notification settings

muellerc/SMPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

SMPP user guide - work in progress

Sending short messages should be as easy as the following lines of code.

Starting the SMSC (short message service center):

SMPPServer server = new SMPPServer("0.0.0.0", 2775);
server.start();

Creating a new ESME (external short message entity) and connect them to the SMSC:

SMPPClient client = new SMPPClient("127.0.0.1", 2775);
client.connect();

Create a new PDU (protocol data unit) for sending a short message:

SubmitSm request = new SubmitSm();
request.setShortMessage("Hello World!");
request.setDestinationAddress(+491727777777);

Send the short message and disconnect the ESME from the SMSC:

SubmitSmResponse response = client.send(request);
client.disconnect();

Shutdown the SMSC:

server.stop();

About

Java implementation of the SMPP specification which provides a client and server to send and receive short messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published