ValidityPeriod property format

Smpp v3.4 client

Moderator: alt

Locked
SANSoft
Posts: 5
Joined: Wed Jun 04, 2008 3:38 am
Location: Russia, Chelyabinsk

ValidityPeriod property format

Post by SANSoft » Thu Oct 23, 2008 9:16 am

Hi!

I try to set value of ValidityPeriod to "000003000000000R" (3 days relative local SMSC time). Format of this mandatory field is described in SMPP Protocol Specification v3.4 (7.1.1.2 Relative Time Format)

When I call SubmitAsync(sms), I catch exception with Text: "Too long Parameter name: S"

Please, explain me my error...

P.S. When I comment this code line in my program, my sms correctly delivered
Lector
Posts: 1
Joined: Thu Oct 23, 2008 12:05 pm

Post by Lector » Thu Oct 23, 2008 12:29 pm

I have the same issue, but I can't skip this parameter because I recieve "validity period expired" message on server side otherwise.
KonstOne
Posts: 7
Joined: Fri Sep 26, 2008 7:31 am

Post by KonstOne » Mon Oct 27, 2008 1:26 pm

I have same error.
"Too long Parameter name: S"

Stack Trace:
at wHcW8EeS8UMgjM9EFR.aEOKR878JGLThiP76W.qI9WackZg(String , Int32 )
at ALT.SMS.SubmitSm.suBHmnexr()
at ALT.SMS.SubmitSm.ALT.SMS.IPacket.GetBytes()
at ALT.SMS.SmppClient.KkdQHOPxF(IPacket )
at ALT.SMS.SmppClient.Submit(SubmitSm data)


code:

Code: Select all

                    Dim utc As Date = Now()
                    sm.ValidityPeriod = utc.ToUniversalTime.AddHours(24).ToString("yyMMddhhmmss000+")
                    sm.ShortMessage = Msg.Message
                    ret = smpp.Submit(sm)
ceezed
Posts: 13
Joined: Wed Oct 29, 2008 1:08 pm

Post by ceezed » Wed Oct 29, 2008 1:13 pm

I get the same error also ..... is there a solution?
alt
Site Admin
Posts: 988
Joined: Tue Apr 25, 2006 9:45 am

Post by alt » Thu Oct 30, 2008 7:09 pm

please download last version.
ceezed
Posts: 13
Joined: Wed Oct 29, 2008 1:08 pm

Post by ceezed » Fri Oct 31, 2008 10:52 pm

I downloaded the latest (v 2.5.2.0) and I still get error message: Too long Parameter name: S

I am doing something like this (C#):
submit_sm.ValidityPeriod = DateTime.Now.AddDays(2).ToString("yyMMddhhmmss000+");
Locked