---
 src/smsutil.c |    5 +++--
 src/smsutil.h |    3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/smsutil.c b/src/smsutil.c
index 278d335..cf9b77c 100644
--- a/src/smsutil.c
+++ b/src/smsutil.c
@@ -2643,7 +2643,8 @@ static inline GSList *sms_list_append(GSList *l, const 
struct sms *in)
  * if no concatenation took place.
  */
 GSList *sms_text_prepare(const char *utf8, guint16 ref,
-                               gboolean use_16bit, int *ref_offset)
+                               gboolean use_16bit, int *ref_offset,
+                               const gboolean use_delivery_reports)
 {
        struct sms template;
        int offset = 0;
@@ -2659,7 +2660,7 @@ GSList *sms_text_prepare(const char *utf8, guint16 ref,
        template.submit.rd = FALSE;
        template.submit.vpf = SMS_VALIDITY_PERIOD_FORMAT_RELATIVE;
        template.submit.rp = FALSE;
-       template.submit.srr = FALSE;
+       template.submit.srr = use_delivery_reports;
        template.submit.mr = 0;
        template.submit.vp.relative = 0xA7; /* 24 Hours */
 
diff --git a/src/smsutil.h b/src/smsutil.h
index a36a9d3..cfb2765 100644
--- a/src/smsutil.h
+++ b/src/smsutil.h
@@ -482,7 +482,8 @@ GSList *sms_assembly_add_fragment(struct sms_assembly 
*assembly,
 void sms_assembly_expire(struct sms_assembly *assembly, time_t before);
 
 GSList *sms_text_prepare(const char *utf8, guint16 ref,
-                               gboolean use_16bit, int *ref_offset);
+                               gboolean use_16bit, int *ref_offset,
+                               const gboolean use_delivery_reports);
 
 gboolean cbs_dcs_decode(guint8 dcs, gboolean *udhi, enum sms_class *cls,
                        enum sms_charset *charset, gboolean *compressed,
-- 
1.6.0.4


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

Reply via email to