long messages not sent with ReferenceNumber

Post Reply
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

long messages not sent with ReferenceNumber

Post by developerlearn999 » Thu Jul 04, 2019 8:57 am

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?
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: long messages not sent with ReferenceNumber

Post by alt » Thu Jul 04, 2019 7:46 pm

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 8213 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]".
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

Re: long messages not sent with ReferenceNumber

Post by developerlearn999 » Sun Jul 07, 2019 11:12 am

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.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: long messages not sent with ReferenceNumber

Post by alt » Sun Jul 07, 2019 11:18 am

Inetlab.SMPP.LicenseManager.SetLicense method returns true if license is valid.

Inetlab.SMPP.LicenseManager.Status returns text information about license validity.
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

Re: long messages not sent with ReferenceNumber

Post by developerlearn999 » Tue Jul 09, 2019 1:03 pm

thanks
Post Reply