Validity period.

Validity period. SearchSearch
Author Message
Arthur
New member
Username: Artsx

Post Number: 1
Registered: 03-2006
Posted on Friday, March 24, 2006 - 08:32 am:   

Dear Support,
I would like to set manually(in the configuration file) the validity period for SMS sent by SMPP.
If the subscriber is reachable he receive the SMS, otherwise if the subscriber is not reachable at the moment when I'm sending the SMS to him(by SMPP), my SMS is lost due to incorrect validity period(I think it is equal 0 in this case).
Now the question: is it a configurable parameter? Or you need to update the software to set it to maximum? either to have a configuration file for SMS format?
It is preferable that it was a configurable parameter.

Beforehand thanks.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5705
Registered: 10-2002
Posted on Friday, March 24, 2006 - 05:32 pm:   

Hi Arthur,

A value of "0" for the validity_period indicates that the system should use its default setting (not that the message should expire immediately if it is undeliverable ... although it is possible that might be your service provider's default behaviour).

NowSMS 2006 allows you to specify a Validity parameter (&Validity=) when submitting an SMS message via HTTP. This parameter is described here:

Supported by outbound GSM modem and SMPP SMSC connections only. This parameter specifies a
validity period for the message as an interval defined in hours, minutes or days. If the SMSC cannot deliver the message within the specified validity period, the SMSC is instructed to discard the message. (Note that this setting is not supported by all SMSCs.) Specify ##D for a validity period in days, ##H for a validity period in hours, or ##M for a validity period in minutes, where ## is a numeric value (e.g., 30D for 30 days or 7H for 7 hours).

Now I realise that is not what you're looking for ... as you want to set a default value for this setting. I just mention the above for future people who are searching for more information about setting the validity period.

It is also possible to set a default validity period for a particular SMSC connection. You can do this by manually editing the SMSGW.INI file, and adding a "Validity=" setting under the SMSC specific section of the file (e.g., under [SMPP - 1.2.3.4:xyz] or [Modem - Modem Name]).

This parameter takes a similar format as the HTTP parameter described above.

Validity=##D (or ##H or ##M )

(v2006+) Supported by outbound GSM modem and SMPP SMSC connections only. This parameter specifies a default validity period for all messages sent via this SMSC connection, as an interval defined in hours, minutes or days. If the SMSC cannot deliver the message within the specified validity period, the SMSC is instructed to discard the message. (Note that this setting is not supported by all SMSCs.) Specify ##D for a validity period in days, ##H for a validity period in hours, or ##M for a validity period in minutes, where ## is a numeric value (e.g., 30D for 30 days or 7H for 7 hours).

This setting only exists in NowSMS 2006, it does not exist in earlier versions.

For earlier versions, in SMPP environments, there was a "ValidityPeriod=" setting that could be defined in the SMSGW.INI.

It is described at the following link:

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

However, that thread talks about the SMSGW.INI parameter being "ExpiresHeader=", when it should be "ValidityPeriod=".

It is partly because of the confusion that we decided to change this parameter for NowSMS 2006.

-bn