View Single Post
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