All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Receiving raw SMS through Ofono "incoming-message" callback
Date: Mon, 02 Mar 2015 09:18:43 -0600	[thread overview]
Message-ID: <54F47F53.4090508@gmail.com> (raw)
In-Reply-To: <CAEM=xjhdg0CV2FqurNzmrqSAaWjr4ui=na+tqmTtvGrDa8Q2Eg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

Hi Frederik,

On 03/02/2015 05:45 AM, Frederik Lotter wrote:
> Hi,
>
> It looks like the SMS receive API attempts to represent the incoming SMS
> as an array of characters inside the callback function.
>
> IncomingMessage(string message, dict info)

This API is for 'text' messages.  It will not handle non-utf8 formatted 
strings and will ignore any IEs that are not pertinent to decoding text 
messages.

>
> I am expecting a raw payload of server data via SMS. I cannot see how
> this will work in the current implementation since the raw data may well
> be full of zeros which will act as a string terminator.
>
> Any ideas?
>

You can write a plugin for this.  For example, see 
plugins/smart-messaging.c and plugins/push-notification.c

Regards,
-Denis

      reply	other threads:[~2015-03-02 15:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02 11:45 Receiving raw SMS through Ofono "incoming-message" callback Frederik Lotter
2015-03-02 15:18 ` Denis Kenzior [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54F47F53.4090508@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.