Just like the rest of the world is doing.
---
 src/sms.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/sms.c b/src/sms.c
index 8262d0c..cdaa629 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -687,6 +687,7 @@ static DBusMessage *sms_send_message(DBusConnection *conn, 
DBusMessage *msg,
        struct ofono_modem *modem;
        unsigned int flags;
        unsigned int msg_id;
+       gboolean use_16bit_ref = FALSE;
 
        if (!dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &to,
                                        DBUS_TYPE_STRING, &text,
@@ -696,7 +697,7 @@ static DBusMessage *sms_send_message(DBusConnection *conn, 
DBusMessage *msg,
        if (valid_phone_number_format(to) == FALSE)
                return __ofono_error_invalid_format(msg);
 
-       msg_list = sms_text_prepare_with_alphabet(text, 0, TRUE,
+       msg_list = sms_text_prepare_with_alphabet(text, 0, use_16bit_ref,
                                                &ref_offset,
                                                sms->use_delivery_reports,
                                                sms->alphabet);
@@ -704,7 +705,7 @@ static DBusMessage *sms_send_message(DBusConnection *conn, 
DBusMessage *msg,
        if (!msg_list)
                return __ofono_error_invalid_format(msg);
 
-       set_ref_and_to(msg_list, sms->ref, ref_offset, TRUE, to);
+       set_ref_and_to(msg_list, sms->ref, ref_offset, use_16bit_ref, to);
        DBG("ref: %d, offset: %d", sms->ref, ref_offset);
 
        if (ref_offset != 0) {
-- 
1.7.0.4

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

Reply via email to