Giter Club home page Giter Club logo

gmmasum / jamaasmpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adhamawadhi/jamaasmpp

0.0 1.0 0.0 200 KB

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.

Home Page: https://github.com/AdhamAwadhi/JamaaSMPP/wiki

License: Other

C# 95.68% Batchfile 0.03% PowerShell 2.55% Smalltalk 1.73%

jamaasmpp's Introduction

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?

v1.9.0

  • Fixed: CommandType.AlertNotification to be 0x00000103

  • Fixed: .Net Core Issues #37

v1.8.2

  • Moved to dotnet core

  • Added: ShortMessage.MessageState

  • Added: ShortMessage.NetworkErrorCode

  • Added: ShortMessage.SubmitUserMessageReference property

    In case you want to use UserMessageReference in your app ONLY, and not submit to SMSC. Like SmppClient.MessageSent event.

v1.7.5

  • Added SmppConnectionProperties.UseSeparateConnections

    When null: Depends on SmppConnectionProperties.InterfaceVersion, if InterfaceVersion.v33 will be true, otherwise false. When true: Use two sessions for Receiver (CommandType.BindReceiver) and Transmitter (CommandType.BindTransmitter) When false: Use one session for Receiver and Transmitter in mode CommandType.BindTransceiver

v1.7.4

  • 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)

jamaasmpp's People

Contributors

adhamebs avatar adhamawadhi avatar froque avatar maximgl avatar robhop avatar isatishyadav avatar tarekka avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.