All of lore.kernel.org
 help / color / mirror / Atom feed
* SMS doubt
@ 2015-01-15  9:55 Enrico Sau
  2015-01-15 16:00 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Enrico Sau @ 2015-01-15  9:55 UTC (permalink / raw)
  To: ofono

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

Hi all,
I was wondering how should ofono behave on a SMS reception.
Should the message be saved somewhere by ofono, or another application in
needed for that?
I'm asking because after some SMS receptions, the script list-messages does
not show anything.

Thank you

Enrico

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 815 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SMS doubt
  2015-01-15  9:55 SMS doubt Enrico Sau
@ 2015-01-15 16:00 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2015-01-15 16:00 UTC (permalink / raw)
  To: ofono

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

Hi Enrico,

On 01/15/2015 03:55 AM, Enrico Sau wrote:
> Hi all,
> I was wondering how should ofono behave on a SMS reception.
> Should the message be saved somewhere by ofono, or another application
> in needed for that?

oFono does not save anything.  One can write a history plugin to write 
this information to a database of your choice, or export this 
information via DBus/other IPC in some way.  See examples/history.c for 
a very basic example.  Search the mailing list archives for more complex 
examples of this.

Alternatively, you can write a simple application that listens to the 
MessageManager.ImmediateMessage and MessageManager.IncomingMessage 
signals to store messages.  However, this is not quite as reliable as 
the history plugin approach since if your application is not running / 
crashes, messages that are received during that time would be lost.

> I'm asking because after some SMS receptions, the script list-messages
> does not show anything.
>

The Message objects exposed by GetMessages() method, MessageAdded() and 
MessageRemoved() signals are for the outgoing path only.  If you notice, 
the states are:

"
Properties      string State

                         Contains the state of the message object.  Possible
                         values are:
                                 "pending",
                                 "sent",
                                 "failed"
"

Hope this helps.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-15 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-15  9:55 SMS doubt Enrico Sau
2015-01-15 16:00 ` 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.