Mercurial > pidgin
diff libpurple/protocols/jabber/jabber.c @ 24970:99055b8db16b
Choose the transport type according to the responder's caps.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Sat, 06 Dec 2008 02:20:09 +0000 |
parents | adf153852bcf |
children | 25e2ab1fff1d |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Tue Nov 25 02:59:47 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sat Dec 06 02:20:09 2008 +0000 @@ -2431,6 +2431,15 @@ purple_debug_error("jabber", "Could not find buddy\n"); return FALSE; } + + if (!jabber_buddy_has_capability(jb, JINGLE_TRANSPORT_ICEUDP) && + !jabber_buddy_has_capability(jb, + JINGLE_TRANSPORT_RAWUDP)) { + purple_debug_error("jingle-rtp", "Buddy doesn't support " + "the same transport types\n"); + return FALSE; + } + /* XMPP will only support two-way media, AFAIK... */ if (type == (PURPLE_MEDIA_AUDIO | PURPLE_MEDIA_VIDEO)) { purple_debug_info("jabber",