This is a defect of the SMPP spec. It defines the format of relative time in absolute terms, instead of seconds, making it difficult to calculate and reconstruct.
The proposed patch makes smpp work with relative time. Please test, I do not have access to an SMSc. Let me know how it goes. I hope that all SMScs support it. It is more accurate than absolute time, since it doesn't require synchronization between smsc and bearerbox.
Please vote. BR, Nikos----- Original Message ----- From: "Milan P. Stanic" <m...@arvanta.net>
To: <us...@kannel.org> Sent: Monday, November 22, 2010 4:25 PM Subject: Re: syncronize kannel with smsc
On Mon, 2010-11-22 at 05:31, ishagh ouldbah wrote:are you sure?According to SMPP version 3.4 time can be absolute or relative. Absolute time is default. How it is implemented in particular software is another question. I think that the kannel uses absolute time, at least for SMPP. Here is comment from gw/smsc/smsc_smpp.c --------------------------------------------------------- /* * check for validity and defered settings * were message value has higher priiority then smsc config group * value * Note: we always send in UTC and just define "Time Difference" as * 00 and * direction '+'. */ ----------------------------------------------------------________________________________ From: Nikos Balkanas <nbalka...@gmail.com> To: ishagh ouldbah <ishagh...@yahoo.com>; us...@kannel.org Sent: Mon, November 22, 2010 1:00:48 PM Subject: Re: syncronize kannel with smsc Well, UG is wrong there. In the SMSc definitions it states: validityperiod integerHow long the message will be valid, i.e., how long the SMSC will try try to sendthe message to the recipient. Defined in minutes. BR, Nikos ----- Original Message ----- From: ishagh ouldbah To: Nikos Balkanas ; us...@kannel.org Sent: Monday, November 22, 2010 1:31 PM Subject: Re: syncronize kannel with smsc thans for your reponcebut in SMS Push (send-sms) CGI Variables it is writen in the userguid that touse the variable validity you should syncronize with smsc contant Optional. If given, Kannel will inform SMS Center that it should only try to send the message for this many minutes. If the destination mobile is off other situation that it cannot receive the sms, the smsc discards the message. Note: you must have your Kannel box time synchronized with the SMS Center. note that i need to specify it for a specified service regards From: Nikos Balkanas <nbalka...@gmail.com> To: ishagh ouldbah <ishagh...@yahoo.com>; us...@kannel.org Sent: Sun, November 21, 2010 4:00:52 PM Subject: Re: syncronize kannel with smsc Hi,You don't need to. SMPP protocol works with validity period (relative time). Therefore, no absolute time is ever involved and you don't need to synchronize.BR, Nikos ----- Original Message ----- From: ishagh ouldbah To: us...@kannel.org Sent: Sunday, November 21, 2010 4:18 PM Subject: syncronize kannel with smsc Hi all, I want to set validity variable so I need to syncrnize with the smsc my question is How can I syncronize kannel box with smsc regards-- Kind regards, Milan -------------------------------------------------- Arvanta, IT Security http://www.arvanta.net Please do not send me e-mail containing HTML code.
smsc_smpp.diff
Description: Binary data