comparison libpurple/protocols/jabber/jabber.c @ 30497:bdc353e65a76

Only revert to Google jingle if using a Google account (since that is when relays will be available) or the other party does _not_ support XEP jingle
author Marcus Lundblad <ml@update.uu.se>
date Mon, 21 Sep 2009 21:28:55 +0000
parents 6fc4df1d12a8
children 7a145934132f
comparison
equal deleted inserted replaced
30496:6fc4df1d12a8 30497:bdc353e65a76
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 /* if we are on a Google Talk connection and the remote supports 3036 /* if we are on a Google Talk connection and the remote supports
3037 Google Jingle, we will go with that */ 3037 Google Jingle, we will go with that */
3038 if (type & PURPLE_MEDIA_AUDIO && 3038 if ((js->googletalk ||
3039 jabber_resource_has_capability(jbr, 3039 !jabber_resource_has_capability(jbr, JINGLE_APP_RTP_SUPPORT_AUDIO))
3040 && type & PURPLE_MEDIA_AUDIO && jabber_resource_has_capability(jbr,
3040 GOOGLE_VOICE_CAP)) 3041 GOOGLE_VOICE_CAP))
3041 return jabber_google_session_initiate(js, who, type); 3042 return jabber_google_session_initiate(js, who, type);
3042 else 3043 else
3043 return jingle_rtp_initiate_media(js, who, type); 3044 return jingle_rtp_initiate_media(js, who, type);
3044 } 3045 }