SMPP server

Post Reply
htin
Posts: 14
Joined: Wed Aug 07, 2019 9:01 am

SMPP server

Post by htin » Thu Aug 08, 2019 2:03 am

Hello.
I am trying to test SMPPServer sample from the getting started page and I found that TextMessage is unknown type. anything I am missing? Thanks if everything goes well, i will purchase a paid version. thanks
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: SMPP server

Post by alt » Tue Aug 13, 2019 5:44 am

Hello,

You can use following class

Code: Select all

public class TextMessage {
  public string Id { get;set; }
  public string PhoneNumber { get;set; }
  public string ServiceAddress { get;set; }
  public string Text { get;set; }
}
I suggest you to have a look at source code of SmppServerDemo application as start point for your server project.
htin
Posts: 14
Joined: Wed Aug 07, 2019 9:01 am

Re: SMPP server

Post by htin » Tue Aug 13, 2019 5:51 am

Thank you. i already got working, now I am trying to install license to my .netcore console app.
At first I installed package from Nuget and I have been using trial version since then..
Now I purchased a license, and tried to install as in the documentation (embed in my source code), but I am still getting {TRIAL} appended in my text messages. DO i need to remove the previous (trial) packages and install a new packages from "myaccount" portal?

let me know the instruction. Thanks in advance
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: SMPP server

Post by alt » Tue Aug 13, 2019 6:08 am

You can use NuGet package with license file.

Please try to install license from string variable
https://docs.inetlab.com/smpp/v2/articl ... _file.html
htin
Posts: 14
Joined: Wed Aug 07, 2019 9:01 am

Re: SMPP server

Post by htin » Tue Aug 13, 2019 6:37 am

I followed the exact direction is still got TRIAL message.

Code: Select all


 public class TestSMPPServer
    {
         
        private static string _license = @"-----BEGIN INETLAB LICENSE------
MYLICENSEFILECONTENTHERE=
-----END INETLAB LICENSE--------";
        
        readonly SmppServer _server;
        private readonly IServerMessageStore _messageStore;
        private readonly ILog _log;

	//constructor
        public TestSMPPServer(IServerMessageStore messageStore)
        {
            bool test = Inetlab.SMPP.LicenseManager.SetLicense(_license);
		

somehow test variable test is returning false here, invalid license file?
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: SMPP server

Post by alt » Tue Aug 13, 2019 6:45 am

please try generate new license file at https://account.inetlab.com

You can always register an Inetlab Account on any email and link your purchase number to this account.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: SMPP server

Post by alt » Wed Aug 14, 2019 6:20 am

Please also check internal log for license information.

Code: Select all

 LogManager.SetLoggerFactory(new ConsoleLogFactory(LogLevel.Info));
 
 string _license = @"-----BEGIN INETLAB LICENSE------
MYLICENSEFILECONTENTHERE=
-----END INETLAB LICENSE--------";

Inetlab.SMPP.LicenseManager.SetLicense(_license);

var server = new SmppServer(new IPEndPoint(IPAddress.Any, 7777));
If library is licensed it should output:
Inetlab.SMPP v.2.6.12 01.08.2019 FULL VERSION. Licensed To: Your name.
htin
Posts: 14
Joined: Wed Aug 07, 2019 9:01 am

Re: SMPP server

Post by htin » Wed Aug 14, 2019 6:23 am

well, i just found out that it works in our server (internet)., but it does not work on my local machine. may be network issue.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: SMPP server

Post by alt » Wed Aug 14, 2019 6:27 am

Which system do you have on the local machine?
It can not be a network issue. Library doesn't send any request by license check.
Perhaps your machine doesn't have some encryption provider.
htin
Posts: 14
Joined: Wed Aug 07, 2019 9:01 am

Re: SMPP server

Post by htin » Wed Aug 14, 2019 6:43 am

macosx High Sierra,

Code: Select all

//returns false in local machine
bool test = Inetlab.SMPP.LicenseManager.SetLicense(licenseContent);
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: SMPP server

Post by alt » Wed Aug 14, 2019 8:11 am

Unfortunately, I cannot test on Mac OS.

I can only suggest to install OpenSSL library in your system.
On Linux and MacOS: an RSA object implemented from OpenSSL.
Post Reply