All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 4/4] Add a MessageWaiting interface to track message waiting indications.
Date: Mon, 03 Aug 2009 14:29:59 -0500	[thread overview]
Message-ID: <200908031430.00876.denkenz@gmail.com> (raw)
In-Reply-To: <fb249edb0908031209r63798d93mc4191e47dda6cfc3@mail.gmail.com>

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

Hi,

> > Perhaps you want to break up the attributes into two:
> >
> > FooMailWaiting -> True / False
> > FooMessages -> Number, with 0 in case we're not sure
>
> We can do that although I think the setting to 0 or 1 when we're not
> sure is a good enough approximation?  The 1 being a little lie.

Lets go with two attributes.  It should give the UI a chance to display the 
indicators differently, depending on what the carrier supports.

> Err, yes we can, but then we don't account for the little corner cases
> like the two mentioned:
>
>  * Special Message Indication IEI says discard the message but DCS
> says store it.

Sure we do, 
if sms_contains_special_vm_iei(sms):
	discard = extract_discard_from_iei_data
	// Quote relevant part of the spec here
	if mwi_dcs_decode(sms, ... ,dcsdiscard)
		discard = discard || dcsdiscard  <--- here
	return

>  * Special IEI says there are 3 emails waiting and DCS says there's a
> voicemail message.

While the spec doesn't really forbid this, its not really in the spirit of 
what is intended: "The third level is described here, and provides the maximum 
detail level for analysis by the mobile, i.e. an indication of the number and 
type of messages waiting in systems connected to the PLMN."  

I say we don't worry about this case, just assume that the network provider is 
sane.


> >  This should not happen on any modern network, and  we should not
> > give it to the MessageWaiting interface anyway, since there's nothing
> > useful it can do with it.
>
> It still gives us one piece of information: the message is concerning
> waiting messages.  So perhaps it should be that interface providing
> the message and from there it can be displayed on the screen.

Yes, so we leave the option to do something about it later, but for now pure 
"return call" messages are useless.

Regards,
-Denis


  reply	other threads:[~2009-08-03 19:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-30  8:05 [PATCH 4/4] Add a MessageWaiting interface to track message waiting indications Andrzej Zaborowski
2009-07-31 16:19 ` Denis Kenzior
2009-08-01 23:09   ` Andrzej Zaborowski
2009-08-03 16:32     ` Denis Kenzior
2009-08-03 19:09       ` Andrzej Zaborowski
2009-08-03 19:29         ` Denis Kenzior [this message]
2009-08-03 21:56           ` andrzej zaborowski
2009-08-04 20:23             ` Denis Kenzior
2009-08-05 14:18               ` andrzej zaborowski
2009-08-05 17:47                 ` Denis Kenzior
2009-08-05 19:18                   ` andrzej zaborowski
2009-08-05 19:35                     ` Denis Kenzior
2009-08-07  3:25                       ` andrzej zaborowski
2009-08-10 16:35                         ` Denis Kenzior
2009-08-12 13:48                           ` Aki Niemi
2009-08-12 16:13                             ` Denis Kenzior
2009-08-14 12:07                               ` Aki Niemi
2009-08-19 13:44                           ` Andrzej Zaborowski

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=200908031430.00876.denkenz@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.