Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/jabber.c @ 30928:b689be519aa6
Always use Google jingle when the other end supports, will have to do this
to take advantage of the relays (since it needs Google compat. ICE params).
The relay address fetching is still unfinished, so calling with this code is
currently broken...
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Mon, 21 Sep 2009 20:58:03 +0000 |
parents | 196e4c5b2043 |
children | 6fc4df1d12a8 |
comparison
equal
deleted
inserted
replaced
30926:196e4c5b2043 | 30928:b689be519aa6 |
---|---|
3031 | 3031 |
3032 jb = jabber_buddy_find(js, who, FALSE); | 3032 jb = jabber_buddy_find(js, who, FALSE); |
3033 jbr = jabber_buddy_find_resource(jb, resource); | 3033 jbr = jabber_buddy_find_resource(jb, resource); |
3034 g_free(resource); | 3034 g_free(resource); |
3035 | 3035 |
3036 /* | 3036 /* if we are on a Google Talk connection and the remote supports |
3037 return jabber_google_session_initiate(js, who, type); | 3037 Google Jingle, we will go with that */ |
3038 */ | |
3039 if (type & PURPLE_MEDIA_AUDIO && | 3038 if (type & PURPLE_MEDIA_AUDIO && |
3040 !jabber_resource_has_capability(jbr, | |
3041 JINGLE_APP_RTP_SUPPORT_AUDIO) && | |
3042 jabber_resource_has_capability(jbr, | 3039 jabber_resource_has_capability(jbr, |
3043 GOOGLE_VOICE_CAP)) | 3040 GOOGLE_VOICE_CAP)) |
3044 return jabber_google_session_initiate(js, who, type); | 3041 return jabber_google_session_initiate(js, who, type); |
3045 else | 3042 else |
3046 return jingle_rtp_initiate_media(js, who, type); | 3043 return jingle_rtp_initiate_media(js, who, type); |