Mobin.Smpp
2.0.1
dotnet add package Mobin.Smpp --version 2.0.1
NuGet\Install-Package Mobin.Smpp -Version 2.0.1
<PackageReference Include="Mobin.Smpp" Version="2.0.1" />
paket add Mobin.Smpp --version 2.0.1
#r "nuget: Mobin.Smpp, 2.0.1"
// Install Mobin.Smpp as a Cake Addin #addin nuget:?package=Mobin.Smpp&version=2.0.1 // Install Mobin.Smpp as a Cake Tool #tool nuget:?package=Mobin.Smpp&version=2.0.1
Mobin.Smpp
Mobin SMPP Client is a .NET implementation of the SMPP protocol that focuses on providing an easy-to-use and robust SMPP client library for .NET developers. This project is intended to be used by developers who want to integrate SMS functionalities in their applications as well as students who are learning the SMPP protocol. Based on JamaaSMPP
Based On
This is created based on https://www.nuget.org/packages/JammaSMPP
Wiki
NuGet
Install-Package Mobin.Smpp
SMPP Server Simulator
- Downlad from http://www.seleniumsoftware.com/downloads.html
- Read User Guide http://www.seleniumsoftware.com/user-guide.htm
What's new?
v2.0.1
- Fix handling of multiple messageIds in SmppClient on send multipart sms
v1.9.1
- Modified: allow some methods to be overridden in
SmppClient
v1.9.0
Fixed:
CommandType.AlertNotification
to be0x00000103
Fixed: .Net Core Issues #37
v1.8.2
Moved to dotnet core
Added:
ShortMessage.MessageState
Added:
ShortMessage.NetworkErrorCode
Added:
ShortMessage.SubmitUserMessageReference
propertyIn case you want to use
UserMessageReference
in your app ONLY, and not submit to SMSC. LikeSmppClient.MessageSent
event.
v1.7.5
Added
SmppConnectionProperties.UseSeparateConnections
When
null
: Depends onSmppConnectionProperties.InterfaceVersion
, ifInterfaceVersion.v33
will betrue
, otherwisefalse.
Whentrue
: Use two sessions for Receiver (CommandType.BindReceiver
) and Transmitter (CommandType.BindTransmitter
) Whenfalse
: Use one session for Receiver and Transmitter in modeCommandType.BindTransceiver
v1.7.4
Support sending concatenated messages
Fix Unicode Languages issue #2. Allow user to set UCS2 encoding in SMPPEncodingUtilSEE hereAdd
TextMessage
virtual methodCreateSubmitSm()
to allow user to change some properties (like Source address ton)class MyTextMessage : TextMessage { protected override SubmitSm CreateSubmitSm() { var sm = base.CreateSubmitSm(); sm.SourceAddress.Ton = JamaaTech.Smpp.Net.Lib.TypeOfNumber.Aphanumeric; return sm; } }
Add Message
UserMessageReference
, you can now use it onMessageSent
event// set user message reference msg.UserMessageReference = Guid.NewGuid().ToString();
on MessageSent event
Console.WriteLine("Message Id {0} Sent to: {1}", e.ShortMessage.UserMessageReference, e.ShortMessage.DestinationAddress);
Use custom encoding for each
SmppClient
instance
Default encdoing
System.Text.Encoding.BigEndianUnicode
client.SmppEncodingService = new SmppEncodingService(System.Text.Encoding.UTF8);
Fix
SMSCDefaultEncoding
exception issue #4. There are 2 options here:- GSM Encoding (Default) : Use GSM 03.38 alphabet Wikipedia. (Code from https://github.com/mediaburst/.NET-GSM-Encoding/blob/master/GSMEncoding.cs)
- JamaaSMPP version : Simple version of GSM 03.38 without Greeks alphapet
You can choose between them by setting
UseGsmEncoding
property totrue
(defualt) to use GSM Encoding or tifalse
to use the other.JamaaTech.Smpp.Net.Lib.Util.SMSCDefaultEncoding.UseGsmEncoding = true; // or false
Use Common.Logging for logging purpose
PDU TLV collection methods
string GetOptionalParamString(Tag tag)
byte[] GetOptionalParamBytes(Tag tag)
byte? GetOptionalParamByte(Tag tag)
T? GetOptionalParamByte<T>(Tag tag) where T : struct
void SetOptionalParamString(Tag tag, string val, bool nullTerminated = false)
void SetOptionalParamByte<T>(Tag tag, T? val) where T : struct
void SetOptionalParamBytes(Tag tag, byte[] val)
void RemoveOptionalParameter(Tag tag)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Common.Logging (>= 3.4.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.1 | 124 | 7/13/2024 |
2.0.1
- Fix handling of multiple messageIds in SmppClient on send multipart sms