All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] emulator: Fix start of RING event
Date: Wed, 15 Feb 2012 05:27:47 -0600	[thread overview]
Message-ID: <4F3B96B3.1060202@gmail.com> (raw)
In-Reply-To: <1328796763-9777-1-git-send-email-frederic.danis@linux.intel.com>

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

Hi Fred,

On 02/09/2012 08:12 AM, Frédéric Danis wrote:
> RING event should only be sent when callsetup indicator is set to
> Incoming and there is no active call.
> 
> If call indicator is set to inactive while callsetup is
> already set to Incoming (waiting call has generated +CCWA),
> no RING event should be sent.
> 
> Ref.: PTS test TC_AG_TWC_BV_02_I
> ---
>  src/emulator.c |   18 +++---------------
>  1 files changed, 3 insertions(+), 15 deletions(-)
> 

After looking at the test case, it seems to be dealing with testing the
consequences of CHLD=1.  Essentially dropping the current active call
and accepting the waiting call.  The logic you're changing is also
dealing with a slightly different case, namely if the active call is
dropped by the remote party during a waiting call.

In the case of CHLD=1, the sequence should be one of these:

1. Active Call Index -> Disconnected, Waiting call Index -> Active

In the case of remote party dropping the Active call, the sequences can be:

1. Active Call Index -> Disconnected, Waiting Call Index -> Incoming

The logic has to be modified to handle the transition state (e.g. call
indicator going from 1 to 0, and waiting call present) and send the
proper indicators when the final state is reached.  Likely our handling
of the 'waiting' variable is incorrect, we cannot rely on the values of
callsetup and call, but instead should try to find any calls in the
'WAITING' state.

I believe that sending a call=0, then callsetup=0, call=1 is acceptable,
but ideally in the case of CHLD=1 we should be sending callsetup=0 only.

Regards,
-Denis

      reply	other threads:[~2012-02-15 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09 14:12 [PATCH] emulator: Fix start of RING event =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2012-02-15 11:27 ` 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=4F3B96B3.1060202@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.