![]() |
2010-07-23
, 02:01
|
|
Posts: 305 |
Thanked: 71 times |
Joined on Dec 2009
@ 'Nam
|
#692
|
![]() |
2010-07-23
, 02:03
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#693
|
Question about the one ring. If I install is it going to load all my google voice contacts into my address book? I like the idea of being able to choose regular call or google voice call in the dail pa but really dont want all my google voice people in my address book.
The Following User Says Thank You to epage For This Useful Post: | ||
![]() |
2010-07-23
, 02:05
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#694
|
I thought I had read in some documentation that Coming wasn't enough, you have to check the call status which I haven't had a chance to play with yet.
Though the call API only works with Cell, I was hoping the Coming and Answer calls would work with any CM. Vain hope but it is there. Otherwise unless we can get telepathy automation working I'm fine with at least giving those who work with cell that much
How did you get calls and SMS working with Telepathy? A couple of us have given up on itI was planning on posting on the telepathy list some thoughts I had on client automation.
![]() |
2010-07-23
, 02:07
|
|
Posts: 305 |
Thanked: 71 times |
Joined on Dec 2009
@ 'Nam
|
#695
|
![]() |
2010-07-23
, 02:13
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#696
|
The coming is enough. That is what I use to manage the ring tone.
I haven't tested but, like you, I think only works for "tel" calls.
What I accomplished so far is telling telepathy to use a "service" (account: tel, spirit, tor, ...) and start a call to a number or start the "sms" messaging ui for the phone number. It is really nice and seamless...
I know using qt mobility and/or tpsession you can also send a sms directly from your application (not start the messaging ui).
What are you trying to do?
![]() |
2010-07-23
, 02:39
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#697
|
But does your ring tone app try to answer? The wiki seems to be down right now but in there is a quote lifted from a discussion saying that a 1s sleep is needed (or listening for Call Status) for answering a call because it is not in the right state.
Starting a call with a service would be good for implementing the call-out (rather than call-back) approach.
account.data()->ensureTextChat("1212121212"); // phone number
QVariantMap request; request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".ChannelType"), TELEPATHY_INTERFACE_CHANNEL_TYPE_STREAMED_MEDIA); request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetHandleType"), (uint) Tp::HandleTypeContact); request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetID"), "111111111"); // phone number return account.data()->ensureChannel(request);
![]() |
2010-07-23
, 05:34
|
Posts: 1,048 |
Thanked: 979 times |
Joined on Mar 2008
@ SF Bay Area
|
#698
|
I see... I haven't tried to answer the call (at least not after receiving the coming signal). The 1s sleep doesn't sound too bad though...
I am still getting my head around the steps to place the call and was trying to clean the code to find out what I actually need. If you want I can send you the "test application" executable I got to work.
As I can recall you need to:
1. create the account manager
2. wait for the account manager to become ready
3. you will get the list of accounts
4. for the account you want to use you need to wait for it to get ready
5. check if the account "haveConnection"... if not you can't continue
6. wait for the account->connection() to becomeReady
7. then you are almost there
8. to send a sms you just need use (on telepathy-qt4)
9. to start a call there is a trick - you can't use ensureVoiceCall... It will fail...you have to create the channel request by "hand":Code:account.data()->ensureTextChat("1212121212"); // phone number
some notes:Code:QVariantMap request; request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".ChannelType"), TELEPATHY_INTERFACE_CHANNEL_TYPE_STREAMED_MEDIA); request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetHandleType"), (uint) Tp::HandleTypeContact); request.insert(QLatin1String(TELEPATHY_INTERFACE_CHANNEL ".TargetID"), "111111111"); // phone number return account.data()->ensureChannel(request);
- By the documentation it seems that you could start with the "account" if you know the "objectPath" (skip the account manager part).
- Because all the calls are async you probably need to "start" the account connection with your application and keep it for the entire life cycle making sure to listen to all the changes on it. Trying to get everything ready every time you need to place a call maybe not worth...
- EDIT: you may not need to get the connection ready before creating the channels. I did not try this but by reading on my post gave me this idea... I know you need the connection in order to get the list of contacts.
I will post the code for each step as soon as I separate it from all the "other failed testing" attempts.
Let me know if you would like the test app, with it you can already call and text any number using any "account" you are connected to.
![]() |
2010-07-23
, 12:01
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#699
|
I saw this pattern in the various code samples for telepathy, however when it comes to handling StreamedMedia, the only sample I've seen that is reasonably complete is the tp-qt4 "call" sample code. That sample code actually handles the StreamedMedia channels itself using Farsight2 as far as I could understand.
To me, this means that call "handling" terminates with me, and not with the Nokia supplied dialer: rtcomm-call-ui.
And this is where I'm stuck.
You know what? I feel we should have a irc channel so that we stop hijacking this TOR thread with these development / hacking efforts...
![]() |
2010-07-23
, 12:28
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#700
|
Though the call API only works with Cell, I was hoping the Coming and Answer calls would work with any CM. Vain hope but it is there. Otherwise unless we can get telepathy automation working I'm fine with at least giving those who work with cell that much
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog