GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - henrythor/SMPP.py: A synchronous SMPP library written in Python

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
smpp
smpp
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

#SMPP.py

A synchronous SMPP library written in Python

I wrote this library a while back when I needed a library for contacting SMPP services. At that point none of the available libraries were good enough for my use though that might have changed by now. It's based on SMPP v3.4 and major parts for sending SMPP messages are done, if I remember correctly.

The receiving stuff wasn't finished, and since I don't have access to an SMPP server at the moment, I figure I'll put it out there and let someone working in telecom in need of a synchronous library for SMPP figure it out.

CHANGELOG:

Version 0.1 - Henry Baldursson

  • Initial version
    • Supports binding, sending DATA_SM, SUBMIT_SM, ENQUIRE_LINK, and reading relevant responses.
    • KeepAlive
    • All mandatory- and optional parameters
    • Parsing
    • Rudimentary polling for commands.

EXAMPLES:

How to send data to a specific port:

	from smpp import *
	smpp=SMPP("host", 2775)
	smpp.bind_transmitter("user", "pass", "OTA")
	sender = SMPPAddress("Telecom")
	recipient = SMPPAddress("111222333444)

	params = SMPPParameters(DATA_SM, source = sender, \
	destination = recipient, \
	esm_class = 0x02, \
	data_coding = 0x04)
	params.add_optional(message_payload = data, \
	source_port = 2948, \
	destination_port = 2948)
	(rheader, rparams) = smpp.data_sm(params)
	smpp.unbind()
	return rheader.status

How to listen for commands (to be extended):

	from smpp import *
	smpp = SMPP('smsc', 2775) #, keepalive=False)
	smpp.bind_receiver('user', 'pass', 'VAS')
	smpp.listen()
	smpp.unbind()

About

A synchronous SMPP library written in Python

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.