From: Dario <djdas@djdas.net>
To: ofono@ofono.org
Subject: Re: [Usage] SMS handling
Date: Fri, 19 Mar 2010 16:33:59 +0100 [thread overview]
Message-ID: <4BA39967.2030403@djdas.net> (raw)
In-Reply-To: <201003190932.03486.denkenz@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1502 bytes --]
Hi Denis,
> The current semantics are that the DBusMessage returns only when the SMS has
> been successfully sent to the network, or oFono determined that it cannot send
> it. So you can assume that SMS is pending as soon as dbus_message_send is
> performed by your client. And that SMS has been sent/failed as soon as the
> message call returns.
>
This means I will have to use a synchronous call and wait for the
response? I suppose an error response will mean a send failure, is it
correct?
>
>> 2) handling incoming messages when application is (re)starting/crashed:
>> is there a way to retrieve a message if it comes in during a phase where
>> the application is not running or it can't receive the IncomingMessage
>> signal? Does oFono logs or stores the messages somewhere?
>>
>
> This is what the history plugin is for. History is notified when an SMS comes
> in and can persist this information however it wishes. The plugin can even
> define its own D-Bus interface for notifying external clients if needed.
>
OK, as per our IRC conversation I'm interested in writing an SQLite
history plug-in to store calls and SMSes infos, so I'll try to design a
simple DB and post it here in a few days.
Would it be a problem to have libsqlite as dependency of oFono? Is there
a way to let it out of the project or however do you consider it a
useful dependency for other (future) purposes?
Thank you very much in advance, best regards,
Dario.
next prev parent reply other threads:[~2010-03-19 15:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 13:59 [Usage] SMS handling Dario
2010-03-19 14:32 ` Denis Kenzior
2010-03-19 15:33 ` Dario [this message]
2010-03-19 15:39 ` Denis Kenzior
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=4BA39967.2030403@djdas.net \
--to=djdas@djdas.net \
--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.