Inetlab.SMPP
2.9.31
See the version list below for details.
Requires NuGet 2.12 or higher.
dotnet add package Inetlab.SMPP --version 2.9.31
NuGet\Install-Package Inetlab.SMPP -Version 2.9.31
<PackageReference Include="Inetlab.SMPP" Version="2.9.31" />
paket add Inetlab.SMPP --version 2.9.31
#r "nuget: Inetlab.SMPP, 2.9.31"
// Install Inetlab.SMPP as a Cake Addin #addin nuget:?package=Inetlab.SMPP&version=2.9.31 // Install Inetlab.SMPP as a Cake Tool #tool nuget:?package=Inetlab.SMPP&version=2.9.31
Inetlab.SMPP Client/Server Library
SMPP protocol Client/Server library
Features
SMPP Client
- Sending long Text messages as concatenated parts
- Sending Binary messages
- Sending Flash SMS
- Sending WAP Push
- Receiving SMS messages from mobile phones
- Intuitive SMS building with fluent interface
- Connection recovery with SMPP server
- Working with any language including Arabic, Chinese, Hebrew, Russian, Greek and Unicode messages support
- Reliable bulk SMS-sending more than 1000 messages per second rate
- SSL/TLS support
- Diagnostic Metrics
SMPP Server
- Multiple concurrent client connections support
- Receiving SMS messages from connected clients
- Sending Concatenated Text messages
- Sending Delivery receipts
- Message status query support
- Message rate limit and throttling
- Ability to forward received messages to next SMPP server
- SSL/TLS support
- Diagnostic Metrics
- Tests availability of client with enquiry_link command
- Proxy Protocol for load-balancing support
TRIAL VERSION.
The Trial version is intended solely for private evaluation purposes. Developers can test the functionality of Inetlab.SMPP without incurring any licensing costs. The Software should not be deployed in any internet or intranet project until a valid license has been purchased.
The message text will be marked with "[TRIAL]" to indicate its trial status. This version does not have any time limitations.
For production use, it is necessary to acquire a license from our official website.
Links
Sample
You can access a variety of samples in the GIT repository located at https://gitlab.com/inetlab/smpp-samples/
Send SMS with SmppClient class
public static async Task SendHelloWorld()
{
LogManager.SetLoggerFactory(new ConsoleLogFactory(LogLevel.Verbose));
using (SmppClient client = new SmppClient())
{
try
{
if (await client.ConnectAsync(new DnsEndPoint("smpp.server", 7777, AddressFamily.InterNetwork)))
{
BindResp bindResp = await client.BindAsync("username", "password");
if (bindResp.Header.Status == CommandStatus.ESME_ROK)
{
var submitResp = await client.SubmitAsync(
SMS.ForSubmit()
.From("short code")
.To("436641234567")
.Coding(DataCodings.UCS2)
.Text("Hello World!"));
if (submitResp.All(x => x.Header.Status == CommandStatus.ESME_ROK))
{
Console.WriteLine("The message has been sent.");
}
}
await client.DisconnectAsync();
}
}
catch (Exception ex)
{
Console.WriteLine("ERROR: Failed to send the message", ex);
}
}
}
Receive multipart SMS with SmppClient
private readonly MessageComposer _composer = new MessageComposer();
private void client_evDeliverSm(object sender, DeliverSm data)
{
try
{
//Check if we received Delivery Receipt
if (data.MessageType == MessageTypes.SMSCDeliveryReceipt)
{
//Get MessageId of delivered message
string messageId = data.Receipt.MessageId;
MessageState deliveryStatus = data.Receipt.State;
}
else
{
// Receive incoming message and try to concatenate all parts
if (data.Concatenation != null)
{
_composer.AddMessage(data);
_log.Info(
"DeliverSm part received : Sequence: {0} SourceAddr: {1} Concatenation ( {2} ) Coding: {3} Text: {4}",
data.Header.Sequence, data.SourceAddress, data.Concatenation, data.DataCoding,
_client.EncodingMapper.GetMessageText(data));
if (_composer.IsLastSegment(data))
{
string fullMessage = _composer.GetFullMessage(data);
_log.Info("Full message: " + fullMessage);
}
}
else
{
_log.Info("DeliverSm received : Sequence: {0} SourceAddr : {1} Coding : {2} MessageText : {3}",
data.Header.Sequence, data.SourceAddress, data.DataCoding,
_client.EncodingMapper.GetMessageText(data));
}
}
}
catch (Exception ex)
{
data.Response.Header.Status = CommandStatus.ESME_RX_T_APPN;
_log.Error("Failed to process DeliverSm", ex);
}
}
HOW TO INSTALL LICENSE FILE
You can generate license file in your Inetlab Account at https://account.inetlab.com
The license file is named as "Inetlab.SMPP.license". Add this file to the project where you have a reference on Inetlab.SMPP.dll. Change "Build Action" of the license file to "Embedded Resource".
Set license before using Inetlab.SMPP classes in your code:
Inetlab.SMPP.LicenseManager.SetLicense(this.GetType().Assembly.GetManifestResourceStream(this.GetType(), "Inetlab.SMPP.license" ));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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. |
-
.NETFramework 4.6.1
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Inetlab.SMPP:
Package | Downloads |
---|---|
Codecamp.SMPP
This library is for make developer easy to use SMPP protocol |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.9.35 | 562 | 10/12/2024 |
2.9.33 | 834 | 9/4/2024 |
2.9.32 | 7,938 | 1/26/2024 |
2.9.31 | 214 | 1/17/2024 |
2.9.30 | 9,242 | 10/27/2023 |
2.9.29 | 1,856 | 9/12/2023 |
2.9.28 | 4,265 | 8/2/2023 |
2.9.27 | 9,529 | 4/3/2023 |
2.9.26 | 10,574 | 11/25/2022 |
2.9.25 | 485 | 11/13/2022 |
2.9.24 | 2,705 | 10/3/2022 |
2.9.23 | 608 | 9/28/2022 |
2.9.22 | 4,104 | 8/29/2022 |
2.9.21 | 16,741 | 8/17/2022 |
2.9.20 | 898 | 8/9/2022 |
2.9.19 | 9,116 | 6/6/2022 |
2.9.18 | 2,655 | 5/19/2022 |
2.9.17 | 6,103 | 4/13/2022 |
2.9.16 | 4,445 | 1/20/2022 |
2.9.15 | 504 | 1/12/2022 |
2.9.14 | 6,655 | 8/31/2021 |
2.9.13 | 5,686 | 7/30/2021 |
2.9.12 | 4,340 | 7/1/2021 |
2.9.11 | 1,753 | 6/24/2021 |
2.9.10 | 2,818 | 6/12/2021 |
2.9.9 | 3,148 | 5/13/2021 |
2.9.8 | 4,574 | 4/28/2021 |
2.9.7 | 2,481 | 4/12/2021 |
2.9.6 | 479 | 4/9/2021 |
2.9.5 | 711 | 3/18/2021 |
2.9.4 | 3,339 | 2/6/2021 |
2.9.3 | 471 | 2/4/2021 |
2.9.2 | 753 | 2/1/2021 |
2.9.1 | 557 | 1/29/2021 |
2.9.0 | 566 | 1/25/2021 |
2.8.6 | 6,094 | 11/19/2020 |
2.8.5 | 628 | 11/12/2020 |
2.8.4 | 577 | 11/11/2020 |
2.8.3 | 1,536 | 11/3/2020 |
2.8.2 | 3,255 | 9/1/2020 |
2.8.1 | 5,904 | 6/16/2020 |
2.8.0 | 7,065 | 4/2/2020 |
2.7.1 | 7,474 | 1/23/2020 |
2.7.0 | 6,277 | 12/11/2019 |
2.6.13 | 23,776 | 8/14/2019 |
2.6.12 | 3,204 | 7/26/2019 |
2.6.10 | 8,966 | 4/19/2019 |
2.6.9 | 756 | 4/15/2019 |
2.6.7 | 1,130 | 3/27/2019 |
2.6.5 | 701 | 3/18/2019 |
2.6.4 | 725 | 3/15/2019 |
2.6.3 | 6,612 | 3/4/2019 |
2.6.2 | 3,239 | 2/7/2019 |
2.6.1 | 813 | 2/4/2019 |
2.6.0 | 1,120 | 1/14/2019 |
2.4.1 | 6,653 | 6/27/2018 |
1.3.1 | 5,091 | 7/4/2018 |
1.3.0 | 1,141 | 6/19/2018 |
1.2.11 | 6,591 | 1/2/2018 |
1.2.8 | 1,453 | 11/6/2017 |
1.2.6 | 1,165 | 10/4/2017 |
1.2.5 | 3,051 | 8/12/2017 |
1.2.1 | 1,688 | 5/22/2017 |
1.1.29.1 | 2,852 | 3/14/2017 |
1.1.29 | 1,375 | 1/27/2017 |
1.1.28 | 1,175 | 1/23/2017 |
1.1.27.6 | 1,287 | 1/10/2017 |
1.1.27.5 | 1,104 | 12/30/2016 |
1.1.25 | 4,704 | 10/24/2016 |
1.1.23.2 | 1,177 | 10/6/2016 |
1.1.23.1 | 1,121 | 9/29/2016 |
1.1.23 | 1,098 | 9/28/2016 |
1.1.22.7 | 9,364 | 8/2/2016 |
1.1.22.6 | 3,027 | 6/29/2016 |
1.1.22.4 | 1,113 | 6/24/2016 |
1.1.22.3 | 1,148 | 6/21/2016 |
1.1.22.2 | 1,609 | 6/8/2016 |
1.1.22 | 1,359 | 5/13/2016 |
1.1.20 | 3,852 | 4/27/2015 |
1.1.16.1 | 1,558 | 10/13/2014 |
Fixed
- The DisconnectAsync method in the SmppClient is experiencing a hanging issue within the .NET Framework.