aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_11.c
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2009-08-13 03:40:49 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-13 16:08:09 +0200
commit58c83d8368c22a25f0bd8482cc031297c1bbcb4c (patch)
tree6920383a129a8b3f7c70c51976522871b9aa7831 /openbsc/src/gsm_04_11.c
parent6f656fcf1f239448797609e0fa10cbceae66f19a (diff)
Support sms with a validity period format of none
Diffstat (limited to 'openbsc/src/gsm_04_11.c')
-rw-r--r--openbsc/src/gsm_04_11.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index 5070b5413..246847bf2 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -175,6 +175,10 @@ static unsigned long gsm340_validity_period(u_int8_t sms_vpf, u_int8_t *sms_vp)
/* FIXME: implementation */
DEBUGP(DSMS, "VPI enhanced not implemented yet\n");
break;
+ case GSM340_TP_VPF_NONE:
+ /* Default validity: two days */
+ minutes = 24 * 60 * 2;
+ break;
}
return minutes;
}
@@ -383,6 +387,9 @@ static int gsm340_rx_tpdu(struct msgb *msg)
sms_vp = smsp;
smsp += 7;
break;
+ case GSM340_TP_VPF_NONE:
+ sms_vp = 0;
+ break;
default:
DEBUGP(DSMS, "SMS Validity period not implemented: 0x%02x\n",
sms_vpf);