diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2009-08-13 03:40:49 +0200 |
---|---|---|
committer | Harald Welte (local) <laflocal@hanuman.gnumonks.org> | 2009-08-13 16:08:09 +0200 |
commit | 58c83d8368c22a25f0bd8482cc031297c1bbcb4c (patch) | |
tree | 6920383a129a8b3f7c70c51976522871b9aa7831 | |
parent | 6f656fcf1f239448797609e0fa10cbceae66f19a (diff) |
Support sms with a validity period format of none
-rw-r--r-- | openbsc/src/gsm_04_11.c | 7 |
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); |