Notices


Reply
Thread Tools
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#411
Originally Posted by uvatbc View Post
I just compiled a version of my binary with InitialAudio. It failed with exactly the same error as I had described. InitialAudio is the culprit!

It seems that the spirit CM "should" ignore it when used with EnsureChannel as mentioned in the docs, but it causes it to fail...
It is funny.... now I am wondering if I ever used the "audio call" to skype before ... When I first replied to you I was sure of it but now I am not anymore... I use it to start cellular calls and start skype chat sessions all the time but not sure if I ever used it to start audio calls... AT&T 3G does not work with the N900 so most of the times it is impossible to have a skype call while on cellular.

Back to the issue: I would have to agree with you that it seems like a "bug" on the skype CM like you said because:

1. Capablilites for the account return true for "supportsAudioCalls"

Code:
Tp::ConnectionCapabilities *pCap = m_account.data()->connection().data()->capabilities();
qDebug() << ">> supportsAudioCalls: " << pCap->supportsAudioCalls();
2. The allowed properties for the list of requestable channels return "StreamedMedia.InitialAudio".

Code:
    qDebug() << "----- requestable channels";
    Tp::RequestableChannelClassList list = pCap->requestableChannelClasses();
    foreach ( Tp::RequestableChannelClass klass, list) {
        QString channelType = klass.fixedProperties["org.freedesktop.Telepathy.Channel.ChannelType"].toString();

        // "org.freedesktop.Telepathy.Channel.Type.StreamedMedia"
        if  (channelType==TELEPATHY_INTERFACE_CHANNEL_TYPE_STREAMED_MEDIA) {
            qDebug() << ">> supports Streamed media";
            qDebug() << ">> properties: " << klass.allowedProperties;

            if ( klass.allowedProperties.contains(TELEPATHY_INTERFACE_CHANNEL ".Type.StreamedMedia.InitialAudio") ) {
                qDebug() << ">> supports audio";
            }

            if ( klass.allowedProperties.contains(TELEPATHY_INTERFACE_CHANNEL ".Type.StreamedMedia.InitialVideo") ) {
                qDebug() << ">> supports video";
            }
            continue;
        }
}
I couldn't find anything else that could help me "know" that I should not included the "initialaudio" when requesting the channel. If you know of anything else let me know.

Regardless, if it doesn't work it doesn't work!
Probably the easy/quick solution is to change mycontacts to omit the "initial audio" ... I will have to play a little bit to see what happens...

Not sure if you affect the "skype video" calls and even worst if will affect any other "telepathy account" (the code is generic).

Thank you very much for reporting it and helping me isolate the issue!
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases
 
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#412
Originally Posted by fcrochik View Post
I couldn't find anything else that could help me "know" that I should not included the "initialaudio" when requesting the channel. If you know of anything else let me know.
The Freedesktop,org docs seem to imply that InitialAudio is going to be ignored when calling EnsureConnected but not if CreateChannel.
Your code (and mine) uses ensureConnected and so it should never send InitialAudio.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#413
Originally Posted by uvatbc View Post
The Freedesktop,org docs seem to imply that InitialAudio is going to be ignored when calling EnsureConnected but not if CreateChannel.
Your code (and mine) uses ensureConnected and so it should never send InitialAudio.
First let me say that I am not crazy :
I was/am able with the unmodified version of mycontacts to start skype audio calls to "skype accounts" from the widget, main window and online accounts window. I don't understand why it (always) fails for you.

I couldn't start a skype call to a phone number using the unmodified code (probably had never tried it before).

I wasn't able to start a video call with the unmodified version but not sure it is for the same reason or not.

One big problem then:
If according to the documentation I should not use the "initialaudio" nor the "initialvideo" with ensurechannel how can I get skype to start a video call instead of an audio call? Maybe I can't/shouldn't.... I assume that is why I started using the "initialaudio"/"initialvideo"

Do you know how what version of telepathy we have on the n900? I don't think it is the 0.2.0. Is it?
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases
 

The Following User Says Thank You to fcrochik For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#414
Originally Posted by fcrochik View Post
First let me say that I am not crazy :
I was/am able with the unmodified version of mycontacts to start skype audio calls to "skype accounts" from the widget, main window and online accounts window. I don't understand why it (always) fails for you.

I couldn't start a skype call to a phone number using the unmodified code (probably had never tried it before).

I wasn't able to start a video call with the unmodified version but not sure it is for the same reason or not.

One big problem then:
If according to the documentation I should not use the "initialaudio" nor the "initialvideo" with ensurechannel how can I get skype to start a video call instead of an audio call? Maybe I can't/shouldn't.... I assume that is why I started using the "initialaudio"/"initialvideo"

Do you know how what version of telepathy we have on the n900? I don't think it is the 0.2.0. Is it?
Interesting point about the video call - there ought to be a way for devs to begin a channel and specify "audio only" or "video only" or "audio+video". If it isn't possible at the time of channel creation at least there should be a way to enable it once the channel is established. Or something.

The n900 still has 0.19 I think.
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#415
Originally Posted by uvatbc View Post
Interesting point about the video call - there ought to be a way for devs to begin a channel and specify "audio only" or "video only" or "audio+video". If it isn't possible at the time of channel creation at least there should be a way to enable it once the channel is established. Or something.

The n900 still has 0.19 I think.
I will post to the telepathy list to see if we get some guidance on how it should be done. I had just some example I found on the net to start with and got some advice here and there. Becuase it made sense to me and looked like it was doing what was supposed to I assumed it was right.

Still even by documentation you found it should have been ignored and not fail randomly in some cases. Worst of all it seems that it was written to take them into consideration becuase affects the result (that is how I got the video to start). If not enough does not even behave the same way when we start a call with a skypeid or with a phone number.
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases
 

The Following User Says Thank You to fcrochik For This Useful Post:
Posts: 1,048 | Thanked: 979 times | Joined on Mar 2008 @ SF Bay Area
#416
Originally Posted by fcrochik View Post
I will post to the telepathy list to see if we get some guidance on how it should be done. I had just some example I found on the net to start with and got some advice here and there. Becuase it made sense to me and looked like it was doing what was supposed to I assumed it was right.
Your thought process makes sense. The only thing I remember while writing that code was "do just enough to make it work", because as far as I recall I used your code as reference point for my code.

Originally Posted by fcrochik View Post
Still even by documentation you found it should have been ignored and not fail randomly in some cases. Worst of all it seems that it was written to take them into consideration becuase affects the result (that is how I got the video to start).
Yikes! But then its skype we're talking about. Quite a lot about it makes me say "yikes".
__________________
qgvdial: Google Voice client. All downloads
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 

The Following User Says Thank You to uvatbc For This Useful Post:
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#417
Good (and bad) news!

The Good: The code on mycontacts is/was right (InitialAudio and InitialVideo) should be passed on ensureChannel. The idea is that they will ONLY be ignored if you are already in a call with the same contact.

The Bad: It won't for skype as it is! It seems that there is a bug on skype contact manager and it will fail with InitialAudio.

Bottom Line: I will create a new version of mycontacts that will not pass the InitialAudio for skype connections.

uvatbc: Thank you again for helping figure out this puzzle!

For a detailed explanation:
http://lists.freedesktop.org/archive...er/004989.html
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases
 

The Following User Says Thank You to fcrochik For This Useful Post:
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#418
Soon we will have a new version of mycontacts but there is still a very old version (0.9.2) of mycontacts stuck on testing waiting for votes. I would like to have it promoted so I can have a new version there.

If you use mycontacts and like it please vote for it.

Thanks.
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases
 
Posts: 130 | Thanked: 51 times | Joined on Sep 2009
#419
Cant see nor choose contacts in mycontacts. Maybe because i am on PR1.3 now?
 
fcrochik's Avatar
Posts: 722 | Thanked: 1,223 times | Joined on Apr 2010 @ USA
#420
Originally Posted by gunni View Post
Cant see nor choose contacts in mycontacts. Maybe because i am on PR1.3 now?
Unfortunately yes. PR1.3 breaks mycontacts and the worst part is that if you run mycontacts after the upgrade you will loose your groups (all your settings will be saved but the contacts on each group will be removed).


EDIT:THERE IS A NEW VERSION OF MYCONTACTS ON EXTRAS-DEVEL THAT WORKS ON PR1.3 OUT OF THE BOX.



I will publish a new version of mycontacts soon but in the meanwhile:

IF YOU HAVEN'T STARTED MyContacts AFTER PR1.3 DON'T START JUST YET (READ FIRST):

1. If you have mycontacts running, select shutdown
2. You will have to edit the file
Code:
/home/user/.config/Crochik/MyContacts.conf
(*) the file is on a hidden folder - the easiest way to edit it is using vi on the xterminal

3. Change ONLY the line
Code:
Backend=maemo5-crochik
to

Code:
Backend=maemo5
4. Start the application again.
__________________

My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases

Last edited by fcrochik; 2010-10-27 at 12:12.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:33.