From: Pekka Pessi <[email protected]>

---
 src/smsutil.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/smsutil.c b/src/smsutil.c
index f4eee24..59faaf7 100644
--- a/src/smsutil.c
+++ b/src/smsutil.c
@@ -3162,11 +3162,10 @@ GSList *sms_datagram_prepare(const char *to,
        memset(&template, 0, sizeof(struct sms));
        template.type = SMS_TYPE_SUBMIT;
        template.submit.rd = FALSE;
-       template.submit.vpf = SMS_VALIDITY_PERIOD_FORMAT_RELATIVE;
+       template.submit.vpf = SMS_VALIDITY_PERIOD_FORMAT_ABSENT;
        template.submit.rp = FALSE;
        template.submit.srr = use_delivery_reports;
        template.submit.mr = 0;
-       template.submit.vp.relative = 0xA7; /* 24 Hours */
        template.submit.dcs = 0x04; /* Class Unspecified, 8 Bit */
        template.submit.udhi = TRUE;
        sms_address_from_string(&template.submit.daddr, to);
@@ -3288,11 +3287,10 @@ GSList *sms_text_prepare(const char *to, const char 
*utf8, guint16 ref,
        memset(&template, 0, sizeof(struct sms));
        template.type = SMS_TYPE_SUBMIT;
        template.submit.rd = FALSE;
-       template.submit.vpf = SMS_VALIDITY_PERIOD_FORMAT_RELATIVE;
+       template.submit.vpf = SMS_VALIDITY_PERIOD_FORMAT_ABSENT;
        template.submit.rp = FALSE;
        template.submit.srr = use_delivery_reports;
        template.submit.mr = 0;
-       template.submit.vp.relative = 0xA7; /* 24 Hours */
        sms_address_from_string(&template.submit.daddr, to);
 
        /* UDHI, UDL, UD and DCS actually depend on what we have in the text */
-- 
1.7.1

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to