Re: [SailfishDevel] Call events

2014-10-08 Thread Simo Piiroinen
On Thursday, October 09, 2014 11:00:34 AM Dmitriy Purgin wrote:
> Hi Kimmo,
> 
> do you manage waiting and held calls using this approach? e.g. one
> active, one incoming, then held.

Nope. It is just a generic (maemo legacy) "there are call(s)"
info mainly intendeded for use with emergency call policies
etc (derived by listening to ofono on dbus).

If at least one call is incoming -> state = "ringing".
If at least one call is emergency -> type = "emergency".

For more detailed info something else needs to be used.

Simo

> oFono provides you with line
> identification helping to distinguish between calls.
> 
> Cheers
> Dmitriy
> 
> 2014-10-09 10:22 GMT+06:00 Kimmo Lindholm :
> > Hi,
> > 
> > I use following dbus approach;
> > "com.nokia.mce", "/com/nokia/mce/signal", "com.nokia.mce.signal",
> > "sig_call_state_ind"
> > 
> > Looking for strings "ringing", "active", "none" with small
> > state-machine.
> > 
> > When someone calls to the phone, "ringing" -> answered "active" ->
> > not answered/hangup "none" Making a outgoing call "active" --> hup
> > "none"
> > 
> > -kimmo
> > 
> > ________
> > Lähettäjä: devel-boun...@lists.sailfishos.org
> > [devel-boun...@lists.sailfishos.org] käyttäjän
> > Dmitriy Purgin [dpur...@gmail.com] puolesta Lähetetty: 8. lokakuuta
> > 2014 12:05
> > Vastaanottaja: Sailfish OS Developers
> > Aihe: Re: [SailfishDevel] Call events
> > 
> > Hi,
> > 
> > the telephony is provided by oFono which has a convenient DBus
> > interface, [1]. You might as well use libqofono-qt5 [2] binding
> > which
> > is much easier, but won't be approved by harbour unless you put it
> > as
> > a private library of your application.
> > 
> > Cheers
> > 
> > [1] https://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc
> > [2] https://github.com/nemomobile/libqofono
> > 
> > 2014-10-08 14:00 GMT+06:00 Kaj-Michael Lang :
> >> Is there some, official harbour approved, way to get notified about
> >> incoming/outgoing calls start/stop so my app can react to these
> >> events ?
> >> 
> >> 
> >> --
> >> Kaj-Michael Lang 
> >> 
> >> ___
> >> SailfishOS.org Devel mailing list
> >> To unsubscribe, please send a mail to
> >> devel-unsubscr...@lists.sailfishos.org> 
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to
> > devel-unsubscr...@lists.sailfishos.org
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Call events

2014-10-08 Thread Simo Piiroinen
On Wednesday, October 08, 2014 11:00:38 AM Kaj-Michael Lang wrote:
> Is there some, official harbour approved, way to get notified about
> incoming/outgoing calls start/stop so my app can react to these events
> ?

If you just want to know when calls start/stop, then listening to call
state signals from mce on system bus should be ok.

Running this from console and then making calls:
dbus-monitor --system interface=com.nokia.mce.signal,member=sig_call_state_ind

Should show:
incoming: "none" -> "ringing" -> "active" -> "none"
outgoing: "none" -> "active" -> "none"

Some details at:



At the moment mce is not dbus introspectable, so any dbus api that
relies on it will not work without some extra tinkering. This will
change in update 10, i.e. things like discovery via qdbus & automatic
signal binding via nemo-qml-plugin-dbus should work too

/usr/lib/qt5/bin/qdbus --literal --system com.nokia.mce /com/nokia/mce/signal 
|grep call_state
signal void com.nokia.mce.signal.sig_call_state_ind(QString call_state, QString 
call_type)

Simo
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Call events

2014-10-08 Thread Dmitriy Purgin
Hi Kimmo,

do you manage waiting and held calls using this approach? e.g. one
active, one incoming, then held. oFono provides you with line
identification helping to distinguish between calls.

Cheers
Dmitriy

2014-10-09 10:22 GMT+06:00 Kimmo Lindholm :
> Hi,
>
> I use following dbus approach;
> "com.nokia.mce", "/com/nokia/mce/signal", "com.nokia.mce.signal", 
> "sig_call_state_ind"
>
> Looking for strings "ringing", "active", "none" with small state-machine.
>
> When someone calls to the phone, "ringing" -> answered "active" -> not 
> answered/hangup "none"
> Making a outgoing call "active" --> hup "none"
>
> -kimmo
>
> 
> Lähettäjä: devel-boun...@lists.sailfishos.org 
> [devel-boun...@lists.sailfishos.org] käyttäjän Dmitriy Purgin 
> [dpur...@gmail.com] puolesta
> Lähetetty: 8. lokakuuta 2014 12:05
> Vastaanottaja: Sailfish OS Developers
> Aihe: Re: [SailfishDevel] Call events
>
> Hi,
>
> the telephony is provided by oFono which has a convenient DBus
> interface, [1]. You might as well use libqofono-qt5 [2] binding which
> is much easier, but won't be approved by harbour unless you put it as
> a private library of your application.
>
> Cheers
>
> [1] https://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc
> [2] https://github.com/nemomobile/libqofono
>
> 2014-10-08 14:00 GMT+06:00 Kaj-Michael Lang :
>> Is there some, official harbour approved, way to get notified about
>> incoming/outgoing calls start/stop so my app can react to these events ?
>>
>>
>> --
>> Kaj-Michael Lang 
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Call events

2014-10-08 Thread Kimmo Lindholm
Hi, 

I use following dbus approach; 
"com.nokia.mce", "/com/nokia/mce/signal", "com.nokia.mce.signal", 
"sig_call_state_ind"

Looking for strings "ringing", "active", "none" with small state-machine.

When someone calls to the phone, "ringing" -> answered "active" -> not 
answered/hangup "none"
Making a outgoing call "active" --> hup "none"

-kimmo


Lähettäjä: devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] käyttäjän Dmitriy Purgin 
[dpur...@gmail.com] puolesta
Lähetetty: 8. lokakuuta 2014 12:05
Vastaanottaja: Sailfish OS Developers
Aihe: Re: [SailfishDevel] Call events

Hi,

the telephony is provided by oFono which has a convenient DBus
interface, [1]. You might as well use libqofono-qt5 [2] binding which
is much easier, but won't be approved by harbour unless you put it as
a private library of your application.

Cheers

[1] https://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc
[2] https://github.com/nemomobile/libqofono

2014-10-08 14:00 GMT+06:00 Kaj-Michael Lang :
> Is there some, official harbour approved, way to get notified about
> incoming/outgoing calls start/stop so my app can react to these events ?
>
>
> --
> Kaj-Michael Lang 
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Call events

2014-10-08 Thread Dmitriy Purgin
Hi,

the telephony is provided by oFono which has a convenient DBus
interface, [1]. You might as well use libqofono-qt5 [2] binding which
is much easier, but won't be approved by harbour unless you put it as
a private library of your application.

Cheers

[1] https://git.kernel.org/cgit/network/ofono/ofono.git/tree/doc
[2] https://github.com/nemomobile/libqofono

2014-10-08 14:00 GMT+06:00 Kaj-Michael Lang :
> Is there some, official harbour approved, way to get notified about
> incoming/outgoing calls start/stop so my app can react to these events ?
>
>
> --
> Kaj-Michael Lang 
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Call events

2014-10-08 Thread Tomasz Sterna
Dnia 2014-10-08, śro o godzinie 11:00 +0300, Kaj-Michael Lang pisze:
> Is there some, official harbour approved, way to get notified about
> incoming/outgoing calls start/stop so my app can react to these events ?

There is an official and very easy to use VoiceCallManager from
org.nemomobile.voicecall module.

But if you want "harbour approved" you need to copy-paste its code to
your own app. See i.e. [1] for reference.


[1] https://github.com/smokku/pebble/blob/master/daemon/voicecallmanager.cpp

-- 
smk @ http://xiaoka.com/

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org