Support sms with a validity period format of none
This commit is contained in:
parent
6f656fcf1f
commit
58c83d8368
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue