{"id":39529191,"url":"https://github.com/ajankovic/smpp","last_synced_at":"2026-01-18T06:26:53.292Z","repository":{"id":51243568,"uuid":"161176041","full_name":"ajankovic/smpp","owner":"ajankovic","description":"Go library for SMPP 3.4","archived":false,"fork":false,"pushed_at":"2024-03-23T14:20:36.000Z","size":43,"stargazers_count":25,"open_issues_count":15,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-14T18:58:33.659Z","etag":null,"topics":["go","go-library","golang","smpp"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajankovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-10T13:03:39.000Z","updated_at":"2024-09-24T14:08:05.000Z","dependencies_parsed_at":"2022-09-07T22:23:13.981Z","dependency_job_id":null,"html_url":"https://github.com/ajankovic/smpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ajankovic/smpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajankovic%2Fsmpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajankovic%2Fsmpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajankovic%2Fsmpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajankovic%2Fsmpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajankovic","download_url":"https://codeload.github.com/ajankovic/smpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajankovic%2Fsmpp/sbom","scorecard":{"id":174138,"data":{"date":"2025-08-11","repo":{"name":"github.com/ajankovic/smpp","commit":"1db50388714e4b6897b6d480fcfb3978bc35ad52"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T17:18:06.357Z","repository_id":51243568,"created_at":"2025-08-16T17:18:06.357Z","updated_at":"2025-08-16T17:18:06.357Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","go-library","golang","smpp"],"created_at":"2026-01-18T06:26:52.592Z","updated_at":"2026-01-18T06:26:53.273Z","avatar_url":"https://github.com/ajankovic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMPP 3.4 Library\n\n[![GoDoc Badge]][GoDoc] [![GoReportCard Badge]][GoReportCard] [![Build Status](https://travis-ci.com/ajankovic/smpp.svg?branch=master)](https://travis-ci.com/ajankovic/smpp)\n\n**smpp** is library contains implementation of [SMPP 3.4 protocol](http://opensmpp.org/specs/smppv34_gsmumts_ig_v10.pdf).\n\nIt allows easier creation of SMPP clients and servers by providing utilities for PDU and session handling.\n\n## Project Status\n\nAlthough usable, project is still to be considered as _WORK IN PROGRESS_ until it reaches it's first official version. Util then breaking API to fix possible design flaws is possible.\n\n## Project goals\n\n- Provide API for manipulating and observing PDU data.\n- Provide API for SMPP session handling.\n- Provide reference SMPP SMSC Server implementation.\n- Enforce SMPP specification integrity (to the most useful degree).\n\n## Feature description\n\n- [X] Smpp protocol integrity is enforced with the use of session states.\n- [X] Allow communication over tcp protocol.\n- [X] Pdu data structure should have access to all of it's elements.\n- [X] When client and server are connected session is created.\n- [X] When connection is terminated or unbinding is finished session is closed.\n- [X] Closing can be completed only after graceful handling of all remaining operations.\n- [X] Request window is the number of sent requests during a session that are waiting for the matching response from the other side.\n- [X] Size of the window is configurable if window is closed send should fail.\n- [X] Sending should timeout if response is not received in configured amount of time.\n- [X] Sender should wait for responses only for requests that have matching responses defined by the spec.\n- [X] Client should have an option to listen for outbind requests from server.\n- [X] Server should be able to rate limit client's requests.\n- [X] Session should handle sequence numbers.\n- [X] Provide logging for critical paths.\n- [X] Sessions should be uniquely identifiable.\n- [ ] Helpers for sending enquire_link in regular intervals.\n- [ ] If an SMPP entity receives an unrecognized PDU/command, it must return a generic_nack PDU indicating an invalid command_id in the command_status field of the header.\n- [ ] Provide stats about running session(s):\n\n  - Open sessions\n  - Type of sessions\n  - Session send window size\n  - Session receive window size\n  - Session running time\n  - Average send/response times\n  - Rate of failures\n- [ ] Support all PDU commands defined by the specification.\n- [ ] Helper functions for common tasks.\n\n## Installation\n\nYou can use _go get_:\n\n    go get -u github.com/ajankovic/smpp\n\n## Usage\n\nIn order to do any kind of interaction you first need to create an SMPP [Session](https://godoc.org/github.com/ajankovic/smpp#Session). Session is the main carrier of the protocol and enforcer of the specification rules.\n\nNaked session can be created with:\n\n    // You must provide already established connection and configuration struct.\n    sess := smpp.NewSession(conn, conf)\n\nBut it's much more convenient to use helpers that would do the binding with the remote SMSC and return you session prepared for sending:\n\n    // Bind with remote server by providing config structs.\n    sess, err := smpp.BindTRx(sessConf, bindConf)\n\nAnd once you have the session it can be used for sending PDUs to the binded peer.\n\n    sm := smpp.SubmitSm{\n        SourceAddr:      \"11111111\",\n        DestinationAddr: \"22222222\",\n        ShortMessage:    \"Hello from SMPP!\",\n    }\n    // Session can then be used for sending PDUs.\n    resp, err := sess.Send(p)\n\nSession that is no longer used must be closed:\n\n    sess.Close()\n\nIf you want to handle incoming requests to the session specify SMPPHandler in session configuration when creating new session similarly to HTTPHandler from _net/http_ package:\n\n    conf := smpp.SessionConf{\n        Handler: smpp.HandlerFunc(func(ctx *smpp.Context) {\n            switch ctx.CommandID() {\n            case pdu.UnbindID:\n                ubd, err := ctx.Unbind()\n                if err != nil {\n                    t.Errorf(err.Error())\n                }\n                resp := ubd.Response()\n                if err := ctx.Respond(resp, pdu.StatusOK); err != nil {\n                    t.Errorf(err.Error())\n                }\n            }\n        }),\n    }\n\nDetailed examples for SMPP client and server can be found in the [examples dir](https://github.com/ajankovic/smpp/tree/master/parser).\n\n[GoDoc]: https://godoc.org/github.com/ajankovic/smpp\n[GoDoc Badge]: https://godoc.org/github.com/ajankovic/smpp?status.svg\n[GoReportCard]: https://goreportcard.com/report/github.com/ajankovic/smpp\n[GoReportCard Badge]: https://goreportcard.com/badge/github.com/ajankovic/smpp","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajankovic%2Fsmpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajankovic%2Fsmpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajankovic%2Fsmpp/lists"}