All of lore.kernel.org
 help / color / mirror / Atom feed
* Missing CallRemoved signals
@ 2011-08-17  9:58 Mikel Astiz
  2011-08-17 15:43 ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Mikel Astiz @ 2011-08-17  9:58 UTC (permalink / raw)
  To: ofono

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

Hi all,

I'm doing further tests with oFono with a simple UI that handles the 
calls of a certain modem (bluetooth modem in this case).

I keep track of the existing calls by listening to 'VoiceCallManager' 
signals, 'CallAdded' and 'CallRemoved'. The list is initialized using 
'VoiceCallManager.GetCalls()' at startup.

The problem I have found is that some 'CallRemoved' signals are 
apparently never emitted. It is in fact quite easy to reproduce, if a 
modem is powered down while a call is in progress.

Having a look at oFono's source code (src/voicecall.c), my feeling is 
that some calls to 'voicecall_dbus_unregister' are not accompanied by a 
call to 'voicecalls_emit_call_removed', inside the function 
'voicecall_unregister'.

Could anyone confirm if this is a bug in oFono or suggest any workaround 
for the client app?

Regards,
Mikel


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

* Re: Missing CallRemoved signals
  2011-08-17  9:58 Missing CallRemoved signals Mikel Astiz
@ 2011-08-17 15:43 ` Denis Kenzior
  2011-08-18  6:29   ` Mikel Astiz
  0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2011-08-17 15:43 UTC (permalink / raw)
  To: ofono

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

Hi Mikel,

On 08/17/2011 04:58 AM, Mikel Astiz wrote:
> Hi all,
> 
> I'm doing further tests with oFono with a simple UI that handles the
> calls of a certain modem (bluetooth modem in this case).
> 
> I keep track of the existing calls by listening to 'VoiceCallManager'
> signals, 'CallAdded' and 'CallRemoved'. The list is initialized using
> 'VoiceCallManager.GetCalls()' at startup.
> 
> The problem I have found is that some 'CallRemoved' signals are
> apparently never emitted. It is in fact quite easy to reproduce, if a
> modem is powered down while a call is in progress.

By convention oFono interfaces do not emit any signals when they're
being removed (e.g. when the modem is powered down).  In most cases
there isn't a meaningful value we can emit anyway, or doing so would
result in too many redundant signals.

> 
> Having a look at oFono's source code (src/voicecall.c), my feeling is
> that some calls to 'voicecall_dbus_unregister' are not accompanied by a
> call to 'voicecalls_emit_call_removed', inside the function
> 'voicecall_unregister'.
> 
> Could anyone confirm if this is a bug in oFono or suggest any workaround
> for the client app?

The application can track the 'Interfaces' property on the modem object
to figure out when an interface goes live / ceases to exist.  If
VoiceCallManager goes away, you can mark all relevant calls accordingly.

> 
> Regards,
> Mikel

Regards,
-Denis

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

* Re: Missing CallRemoved signals
  2011-08-17 15:43 ` Denis Kenzior
@ 2011-08-18  6:29   ` Mikel Astiz
  0 siblings, 0 replies; 3+ messages in thread
From: Mikel Astiz @ 2011-08-18  6:29 UTC (permalink / raw)
  To: ofono

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

Hi Denis,

OK, that makes sense. Thanks for the workaround.

Regards,
Mikel


On 08/17/2011 05:43 PM, Denis Kenzior wrote:
> Hi Mikel,
>
> On 08/17/2011 04:58 AM, Mikel Astiz wrote:
>> Hi all,
>>
>> I'm doing further tests with oFono with a simple UI that handles the
>> calls of a certain modem (bluetooth modem in this case).
>>
>> I keep track of the existing calls by listening to 'VoiceCallManager'
>> signals, 'CallAdded' and 'CallRemoved'. The list is initialized using
>> 'VoiceCallManager.GetCalls()' at startup.
>>
>> The problem I have found is that some 'CallRemoved' signals are
>> apparently never emitted. It is in fact quite easy to reproduce, if a
>> modem is powered down while a call is in progress.
> By convention oFono interfaces do not emit any signals when they're
> being removed (e.g. when the modem is powered down).  In most cases
> there isn't a meaningful value we can emit anyway, or doing so would
> result in too many redundant signals.
>
>> Having a look at oFono's source code (src/voicecall.c), my feeling is
>> that some calls to 'voicecall_dbus_unregister' are not accompanied by a
>> call to 'voicecalls_emit_call_removed', inside the function
>> 'voicecall_unregister'.
>>
>> Could anyone confirm if this is a bug in oFono or suggest any workaround
>> for the client app?
> The application can track the 'Interfaces' property on the modem object
> to figure out when an interface goes live / ceases to exist.  If
> VoiceCallManager goes away, you can mark all relevant calls accordingly.
>
>> Regards,
>> Mikel
> Regards,
> -Denis


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

end of thread, other threads:[~2011-08-18  6:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-17  9:58 Missing CallRemoved signals Mikel Astiz
2011-08-17 15:43 ` Denis Kenzior
2011-08-18  6:29   ` Mikel Astiz

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.