/gosmpp

Smpp (3.4) Client Library for Go, porting from http://opensmpp.org/

Primary LanguageGoMIT LicenseMIT

gosmpp

Golang Smpp (3.4) Client Library, porting from Java OpenSMPP Library.

This library is tested well with several SMSC simulators:

  • smpp-smsc-simulator: simulates a SMSC server – server which accepts SMS messages and handles its delivery to the mobile phone.
  • SMPPSim: a SMPP SMSC simulation tool, designed to help you test your SMPP based application. SMPPSim is free of charge and open source.

gosmpp has run well in production now:

  • My friend at traithivang.vn has used gosmpp as client to SMSC of Vietnamobile, a telecommunications company in Vietnam, without any problems for months.

Installation

go get -u github.com/linxGnu/gosmpp

Usage

Please refer to Communication Test Case for sample code. If you are familiar with OpenSMPP, you would know how to implement it easily.

Full project of building SMPP Client could be found at: Telcos

Supported PDUs

  • bind_transmitter
  • bind_transmitter_resp
  • bind_receiver
  • bind_receiver_resp
  • bind_transceiver
  • bind_transceiver_resp
  • outbind
  • unbind
  • unbind_resp
  • submit_sm
  • submit_sm_resp
  • submit_sm_multi
  • submit_sm_multi_resp
  • data_sm
  • data_sm_resp
  • deliver_sm
  • deliver_sm_resp
  • query_sm
  • query_sm_resp
  • cancel_sm
  • cancel_sm_resp
  • replace_sm
  • replace_sm_resp
  • enquire_link
  • enquire_link_resp
  • alert_notification
  • generic_nack

Contributing

Please issue me for things gone wrong or:

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D