1. does the version i see in RuntimeVersion is the version the version of the dll (v2.0.50727) or there is other way to check it? (i downloaded it from the web site not from nuget)
2. in the data.Concatenation.ReferenceNumber the value is 0 (while i sent a 3 part messa from SmppClientDemo).
is there a bug with the version?
3. can i use the license for V2 and use it for new releases?
long messages not sent with ReferenceNumber
-
- Posts: 85
- Joined: Thu Jun 20, 2019 9:34 am
Re: long messages not sent with ReferenceNumber
1. You need to look at Product Version in Inetlab.SMPP.dll file properties in "Details" tab.
As workaround you can use following code:
Also I'm going to add in v2.6.12 the method EnsureReferenceNumber for a list of PDUs. Library will call this method in Create method of SMS builder.
3. For V2 you can use a license in text format with header -----BEGIN INETLAB LICENSE------
License file includes date when it is invalid. If you try to use library version that was build after this date you will get a error in library log:
LICENSE IS NOT VALID for this library version. You need to update your license to use this version. You can use current license only for libraries that were built before {dd.MM.yyyy}. Library build date: {dd.MM.yyyy}
and it will send message with additional text "[TRIAL]".
2. Yes, it was a bug with ReferenceNumber. Library should generate next reference number when it submits PDU from SMS builder and ReferenceNumber = 0.As workaround you can use following code:
Code: Select all
var smBuilder = SMS.ForSubmit()
.From(data.DestinationAddress)
.To(data.SourceAddress)
.ConcatenationInUDH(_client.SequenceGenerator.NextReferenceNumber())
.Text(text);
3. For V2 you can use a license in text format with header -----BEGIN INETLAB LICENSE------
License file includes date when it is invalid. If you try to use library version that was build after this date you will get a error in library log:
LICENSE IS NOT VALID for this library version. You need to update your license to use this version. You can use current license only for libraries that were built before {dd.MM.yyyy}. Library build date: {dd.MM.yyyy}
and it will send message with additional text "[TRIAL]".
-
- Posts: 85
- Joined: Thu Jun 20, 2019 9:34 am
Re: long messages not sent with ReferenceNumber
Hi,
thanks for the detailed answer.
about license can i, using code see if the license valid or not? (i checked and my Product Version is 2.6.2, which work we the license i bout.
thanks for the detailed answer.
about license can i, using code see if the license valid or not? (i checked and my Product Version is 2.6.2, which work we the license i bout.
Re: long messages not sent with ReferenceNumber
Inetlab.SMPP.LicenseManager.SetLicense method returns true if license is valid.
Inetlab.SMPP.LicenseManager.Status returns text information about license validity.
Inetlab.SMPP.LicenseManager.Status returns text information about license validity.
-
- Posts: 85
- Joined: Thu Jun 20, 2019 9:34 am