Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH, rfc] Handle network-initiated ussd requests.
Date: Mon, 15 Feb 2010 15:24:10 -0600	[thread overview]
Message-ID: <201002151524.10602.denkenz@gmail.com> (raw)
In-Reply-To: <fb249edb1002151212r255407bejbdb0214140a090bd@mail.gmail.com>

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

Hi Andrew,

> Hi,
> 
> On 15 February 2010 18:03, Denis Kenzior <denkenz@gmail.com> wrote:
> >>       } else {
> >>               ofono_error("Received an unsolicited USSD, ignoring for
> >> now..."); DBG("USSD is: status: %d, %s", status, str);
> >>
> >> +             if (ussd->driver->respond_not_supported)
> >> +                     ussd->driver->respond_not_supported(ussd,
> >> +                                     ussd_not_supported_callback,
> >> NULL); +
> >>               return;
> >
> > There's no reason for this else clause to exist now.  The above else if
> > condition is handling this case too.  Just look carefully at ussd driver
> > for AT command modems, we always call back first, then issue ussd_notify.
> >  This is the case for both modems with and without cancel support.
> 
> This is true but we might also get a request when we're in
> USSD_STATE_USER_ACTION and then by my reading we should reply that the
> user is busy i.e. send a cancel, what do you think?  I left the clause
> in the patch but removed the unneeded "ussd->pending" check.

In everything I've researched I understood that there can't be two concurrent 
ussd sessions.  The only things that can happen during USSD_STATE_USER_ACTION:
- Network sends a timed out notification or terminates the ussd action
- someone else actually responds to the USSD (other local client has 
responded)

I think we should simply ignore the re-entrant case (which USSD operation are 
you canceling? First or second?) until we're told otherwise.  However, we 
_should_ handle the network termination / other local client has responded 
cases.

Also, it might be a good idea to have a State property that shows the current 
USSD request state.

Regards,
-Denis

  reply	other threads:[~2010-02-15 21:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-12  4:52 [PATCH, rfc] Handle network-initiated ussd requests Andrzej Zaborowski
2010-02-15 17:03 ` Denis Kenzior
2010-02-15 20:12   ` Andrzej Zaborowski
2010-02-15 21:24     ` Denis Kenzior [this message]
2010-02-15 23:09       ` Andrzej Zaborowski
2010-02-16 16:20         ` 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=201002151524.10602.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox