the validity period is part of the SMS PDU. Which means inside the PDU you need to set the correct values. The AT+CSMP command might only apply to the sms being sent from the handset itself or as part of plaintext SMS being sent. But if your software sends raw PDU's then it has to be in it. You might want to look at kannel.org http://kannel.org/ for sending SMS to a GSM modem. Then you can submit the SMS via HTTP to kannel and send it to the modem that way. Kannel supports setting the validity period on HTTP.
On 16 Oct 2017, at 11:56, Benoit Panizzon benoit.panizzon@imp.ch wrote:
Dear Swinogers
We use smsd to send our nagios alarms via a GSM usb stick.
I'm looking for some advice after I was not able to find a working solution.
The mobile operator we use has a somewhat short queue to accept SMS and when a recipient is not getting the SMS (mobile off during vacation or whatever) this sms blocks the queue until it expires. If the queue is full, no more sms are being accepted.
The SMS are being sent with a default validity period of 7 days. So they expire from the queue after this period. Well, the easy solution would be to sent the period to a couple of hours. No need for techs to get old SMS.
What I did is:
AT+CSMP=17,143,0,0 // Set Validity Period to 12 hours. AT+CSAS // Save settings to SIM
If I query the settings:
AT+CSMP?
I see these values are set. But after contacting the mobile operator to check if the VP is correct, he tells me we still send them with default 7 days.
Does anyone have a hint on how to set the VP correctly via AT commands?
Kind regards
-Benoît Panizzon-
I m p r o W a r e A G - Leiter Commerce Kunden ______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00 CH-4133 Pratteln Fax +41 61 826 93 01 Schweiz Web http://www.imp.ch ______________________________________________________
swinog mailing list swinog@lists.swinog.ch http://lists.swinog.ch/cgi-bin/mailman/listinfo/swinog