On Tue, 2014-04-08 at 10:29, Dorin wrote:
> I called SMSC support they have such time.
> I have read SMPP documentation there expects absolute and relative time
> format "YYMMDDhhmmsstnnp"
> I write validity parameter like it's write in the documentation /" ...it
> should only try to send the message for this many *minutes*..."/
> validity = 5; (I mean sqlbox parameter that's written in send_sms table)
> then I try smpp absolute format to send:
> validity = 140408123011000
> and relative format:
> validity = 000000000500000
> As result, all time I get +30, +40 years later.

I don't know how sqlbox handles validity parameter (never used or tested
sqlbox) but Kannel use minutes as the parameter to validity option in
HTTP interface (cgi-bin/sendsms) at least.

Kannel then calculates these minutes to the SMPP valid format (I can't
remember is it absolute or relative) and set it packet for the SMSC.

> I think there you have bugs.

Well, could be.
But you should tell which version of Kannel and sqlbox you use, how they
are built.

IIRC validity calculation is changed somewhat at the beginning of the
2013.

> some suspicions
> In code you use time stamp, but year 14 in timestamp is 1914 and not 2014.

I think this is a bug in SMPP specification because year is defined as
two number (0 - 99). But, if relative time used then the problem is
mitigated (though not solved).

> On 2 aprilie 2014 19:41, Milan P. Stanic wrote:
> >On Wed, 2014-04-02 at 19:01, dorin wrote:
> >>I would appreciate any help or maybe some ideas.
> >>Or my problem is unsolvable?
> >>
> >>On 2014-03-31 18:16, dorin wrote:
> >>>Hello all!
> >>>I want to configure SMS validity under sqlbox. As I read in documentation
> >>>I must set parameter "validity" with desired minutes.
> >>>in my case I have "validity = 5"
> >>>but on the SMSC arives  1032139564 minutes insted of 5.
> >>>
> >>>what I missed?
> >It is absolute time in UTC, IIRC.
> >Read the specification about SMPP and Kannel documentation.
> >
> 

-- 
Kind regards,  Milan
--------------------------------------------------
Arvanta,        http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)

Reply via email to