aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_11.c
diff options
context:
space:
mode:
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);