markjulmar / smpp.net Goto Github PK
View Code? Open in Web Editor NEWShort Message Peer-to-Peer (SMPP) .NET library
License: MIT License
Short Message Peer-to-Peer (SMPP) .NET library
License: MIT License
Hi, I have a .net core 2.0 project and I'm planning to implement SMS functionality. is this package will wokr in .net core 2.0?
Pretty impressive! Just finished reviewing the lib.. took a few days.. lots of files, plus I reviewed the SMPP 5.0 spec PDF & started building a PDU model to help me grasp this work. It must've taken some serious time.
Inside [IdentityConfig.cs] there's a spot to setup an SMS service, which will allow the system to validate the text numbers. That's what I'd like to use this for & I'd like to send a test email to my phone to test it.
public class SmsService : IIdentityMessageService
{
public Task SendAsync(IdentityMessage message)
{
// Plug in your SMS service here to send a text message.
return Task.FromResult(0);
}
}
I also wondered about database storage of info. Is there any way to store failures automatically, so I can compare codes to what is already in the app? What data type would you use in SQL Server for storing data & from what object would you store it? Basically, is there anything that would be useful longterm for debugging or for a user by storing data in a db?
I also have an errorLog table in my db, so if there are errors to collect I'd like to put them there. but I could create a new table for the texting if need be.
Firstly, I needed to modify this so it worked with non-US phone numbers but I successfully managed to send an SMS to my UK mobile.
Anyway, on completion, the Esme GUI app attempts to convert the Message ID in the response to an integer on the basis that it comes back in some kind of Base. However, my provider returns a GUID for the message id so this line of code crashes:
string decimalMessageId = Convert.ToInt64(submitResp.MessageID, submitResponseMessageIdBase_).ToString();
The referenced component 'SocketBase.NET' could not be found
Can you help me about this error please?
Several source files missing causing the compilation to fail.
Smpp.NET\Elements\dest_subaddress.cs' could not be found.
Smpp.NET\Elements\message_payload.cs' could not be found.
Smpp.NET\Elements\ussd_service_op.cs' could not be found.
Smpp.NET\Elements\validity_period.cs' could not be found.
Smpp.NET\Elements\sar_msg_ref_num.cs' could not be found.
Smpp.NET\Pdu\submit_sm_multi_resp.cs' could not be found.
Smpp.NET\Elements\dest_network_id.cs' could not be found.
It would be great to make this great project more accessible!
We are sending 500 messages for an interval of 10 sec but while observing the sending report those messages which are not sent from our end has no information of submit_sm and destination address due to which we are not being able to handle the exception of such failure message since sequence numbers are duplicate due which it became more complicated. Please suggest us how we handle the case while sending huge message at a time. There will be only message called error sending message 20.
Referenced assembly, SocketBase.NET is not included in source or binary form.
I tried to run the TestEsme project but I get the exception:
System.Net.Sockets.SocketException: 'No connection could be made because the target machine actively refused it 127.0.0.1:8080'
How come the test project doesn't actually start a server? Is this really a complete example?
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.