Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

1 How do I send a text msg to my phone? 2 Is there any data that should be stored in a database? #4

Open
fahnix opened this issue Apr 17, 2019 · 0 comments

Comments

@fahnix
Copy link

fahnix commented Apr 17, 2019

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant