* [PATCH] smsutil: do not hardcode TP-ValidityPeriod
@ 2010-12-08 21:57 Pekka.Pessi
2010-12-17 0:55 ` Denis Kenzior
0 siblings, 1 reply; 4+ messages in thread
From: Pekka.Pessi @ 2010-12-08 21:57 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1501 bytes --]
From: Pekka Pessi <Pekka.Pessi@nokia.com>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] smsutil: do not hardcode TP-ValidityPeriod
2010-12-08 21:57 [PATCH] smsutil: do not hardcode TP-ValidityPeriod Pekka.Pessi
@ 2010-12-17 0:55 ` Denis Kenzior
2010-12-17 13:29 ` Pekka Pessi
0 siblings, 1 reply; 4+ messages in thread
From: Denis Kenzior @ 2010-12-17 0:55 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 810 bytes --]
Hi Pekka,
On 12/08/2010 03:57 PM, Pekka.Pessi(a)nokia.com wrote:
> From: Pekka Pessi <Pekka.Pessi@nokia.com>
>
> ---
> 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;
Can I get a bit more of an explanation from you as to why the 'absent'
validity period is better than hardcoding this to 24 hours?
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-17 15:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08 21:57 [PATCH] smsutil: do not hardcode TP-ValidityPeriod Pekka.Pessi
2010-12-17 0:55 ` Denis Kenzior
2010-12-17 13:29 ` Pekka Pessi
2010-12-17 15:22 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.