Page 1 of 1

long messages not sent with ReferenceNumber

Posted: Thu Jul 04, 2019 8:57 am
by developerlearn999
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?

Re: long messages not sent with ReferenceNumber

Posted: Thu Jul 04, 2019 7:46 pm
by alt
1. You need to look at Product Version in Inetlab.SMPP.dll file properties in "Details" tab.
Version.png
Version.png (16.99 KiB) Viewed 8336 times
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);
                            
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]".

Re: long messages not sent with ReferenceNumber

Posted: Sun Jul 07, 2019 11:12 am
by developerlearn999
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.

Re: long messages not sent with ReferenceNumber

Posted: Sun Jul 07, 2019 11:18 am
by alt
Inetlab.SMPP.LicenseManager.SetLicense method returns true if license is valid.

Inetlab.SMPP.LicenseManager.Status returns text information about license validity.

Re: long messages not sent with ReferenceNumber

Posted: Tue Jul 09, 2019 1:03 pm
by developerlearn999
thanks