Validity Period field

Validity Period field SearchSearch
Author Message
Anonymous
 
Posted on Wednesday, November 09, 2005 - 06:28 pm:   

Has anyone used this "Validity" field, I don't see it documented anywhere. Thanks.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5336
Registered: 10-2002
Posted on Friday, December 02, 2005 - 09:05 pm:   

Currently NowSMS only supports it for GSM modem connections.

In the NowSMS 2006 release, it will be extended to also support SMPP connections.

More information is here:

http://support.nowsms.com/discus/messages/1/10824.html

Currently, there is a way to define a global "validity_period" header for messages routed via SMPP connections.

"Validity Period" can be set via an entry in the SMSGW.INI file. Manually edit SMSGW.INI, and create an [SMPP] section, then define ValidityPeriod=SMPPtimeformat. (For example, 7 days would be ValidityPeriod=000007000000000R)

The SMPP time format is documented in section 7.1 of the SMPP v3.4 spec, which I've excerpted below. As this setting will currently apply to all messages, you'll want to be sure to use "relative" format.


-----
SMPP Time Format

In this interface, all time/date related fields will be in ASCII with the following format:
"YYMMDDhhmmsstnnp" where
"YY" last two digits of the year (00-99)
"MM" month (01-12)
"DD" day (01-31)
"hh" hour (00-23)
"mm" minute (00-59)
"ss" second (00-59)
"t" tenths of second (0-9)
"nn" Time difference in quarter hours between local time (as expressed in the first 13 octets) and UTC (Universal Time Constant) time (00-48).
"p" - "+" Local time is in quarter hours advanced in relation
to UTC time.
"-" Local time is in quarter hours retarded in relation to UTC time.
"R" Local time is relative to the current SMSC time.

Note: Where responses are reported by the SMSC the local time of the SMSC will be given,
and the format will be "YYMMDDhhmmss", with the same definitions as above.

7.1.1.1 Absolute Time format
This is the default format used by SMPP. Scheduled delivery times and expiry times are
specified in their global UTC format, including the quarter hour offset and direction symbol "+"
or "-".

7.1.1.2 Relative Time Format
Relative Time can be indicated by setting the UTC orientation flag to "R" instead of "+" or "-".
In this form, the SMSC interprets the time format as the number of years, months, days, hours, minutes and seconds from the current SMSC time. Values for tenths of seconds "t" and UTC
offset "nn" are ignored and should be set to "0" and "00" respectively.
For example, the following time format "020610233429000R":
- would be interpreted as a relative period of 2 years, 6 months, 10 days, 23 hours, 34
minutes and 29 seconds from the current SMSC time.
Note: An SMSC operator may choose to impose a limit on relative time offsets, thus either
rejecting a message that exceeds such a limit or reducing the offset to the maximum
relative time allowed.
For example:- a typical validity period might be 7 days and a typical scheduled delivery times
might be 14 days from the submission time.