SMPP server
SMPP server
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
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
Re: SMPP server
Hello,
You can use following class
I suggest you to have a look at source code of SmppServerDemo application as start point for your server project.
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; }
}
Re: SMPP server
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
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
Re: SMPP server
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
Please try to install license from string variable
https://docs.inetlab.com/smpp/v2/articl ... _file.html
Re: SMPP server
I followed the exact direction is still got TRIAL message.
somehow test variable test is returning false here, invalid license file?
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);
Re: SMPP server
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.
You can always register an Inetlab Account on any email and link your purchase number to this account.
Re: SMPP server
Please also check internal log for license information.
If library is licensed it should output:
Inetlab.SMPP v.2.6.12 01.08.2019 FULL VERSION. Licensed To: Your name.
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));
Inetlab.SMPP v.2.6.12 01.08.2019 FULL VERSION. Licensed To: Your name.
Re: SMPP server
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.
Re: SMPP server
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.
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.
Re: SMPP server
macosx High Sierra,
Code: Select all
//returns false in local machine
bool test = Inetlab.SMPP.LicenseManager.SetLicense(licenseContent);
Re: SMPP server
Unfortunately, I cannot test on Mac OS.
I can only suggest to install OpenSSL library in your system.
I can only suggest to install OpenSSL library in your system.
On Linux and MacOS: an RSA object implemented from OpenSSL.