Skip to content

Jamaa 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.

shridhartpatil/JamaaSMPP

 
 

Repository files navigation

JamaaSMPP

Jamaa 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

This is created based on https://jamaasmpp.codeplex.com/

Install-Package JamaaSMPP

SMPP Server Simulator

What's new?

  • Support sending concatenated messages

  • Fix Unicode Languages issue #2. Allow user to set UCS2 encoding in SMPPEncodingUtil SEE here

  • Add TextMessage virtual method CreateSubmitSm() 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 on MessageSent 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:

    You can choose between them by setting UseGsmEncoding property to true (defualt) to use GSM Encoding or ti false 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)

About

Jamaa 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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 96.5%
  • Smalltalk 1.8%
  • PowerShell 1.7%