pruiz / aberrantsmpp Goto Github PK
View Code? Open in Web Editor NEWAn SMPP client library for Mono/.Net (Based originally on RoamingSMPP, which is not maintained anymore)
License: GNU Lesser General Public License v3.0
An SMPP client library for Mono/.Net (Based originally on RoamingSMPP, which is not maintained anymore)
License: GNU Lesser General Public License v3.0
Its for netcore 3.1
We see this error occur: "OnError" Item has already been added. Key in dictionary: '0' Key being added: '0'"
We suspect it's with this Dictionary:
private IDictionary<uint, RequestState> _RequestsAwaitingResponse = new Dictionary<uint, RequestState>();
Dear,
Is there any chance you can provide us with a .net standard version of this library.
Kind regards,
Brent
You should reveal the TCPClient's Connect() of SmppConnector to allow binding to a specific IP.
Hello!
In SmppBind class you have lenght constraints for SystemID and Password. But different SMS services allows you to set any length for password and user name.
I spent 2 days trying to understand why I cannot connect to my SMS gateway. The reason was that my password is longer than 8 symbols.
Maybe you should refuse from these constraints? What do you think?
Thank you!
using (new ReadOnlyLock(_socketLock))
{
_SendPending = true;
var packet = _SendQueue.Dequeue();
_TcpClient.GetStream().BeginWrite(packet, 0, packet.Length, _CallbackWriteMethod, null);
}
Application: ReceiverService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
Stack:
at System.ThrowHelper.ThrowInvalidOperationException(System.ExceptionResource)
at System.Collections.Generic.Queue`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Dequeue()
at AberrantSMPP.AsyncSocketClient.SendComplete(System.IAsyncResult)
at System.Net.LazyAsyncResult.Complete(IntPtr)
at System.Net.ContextAwareResult.CompleteCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Net.ContextAwareResult.Complete(IntPtr)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
If the message is not segmented. SendPdu (msg); all Ok
If a message is segmented. Send (msg, SmppSarMethod. UseSmppSegmentation);
I don't get a OnSubmitSm event, OnSubmitSmResp...
SMPPCommunicator.cs
private void ProcessPduQueue(object queueStateObj)
{
...
if (_RequestsAwaitingResponse.ContainsKey(packet.SequenceNumber))
{
...
state.EventHandler.Set();
<-- Here, too, must be handled events FireEvents(packet) ?
continue;
}
}
// based on each Pdu, fire off an event
FireEvents(packet); <--- Not works always
Do you have sample code of combining udh message/ concatenated message?.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.