diff -r cd16ab43a285 -r c12618793df0 jingle/register.c --- a/jingle/register.c Wed Jul 21 17:43:46 2010 +0200 +++ b/jingle/register.c Fri Jul 23 03:23:23 2010 +0200 @@ -127,7 +127,8 @@ if (g_slist_find_custom(*forbid, thistransport->xmlns, cmp_forbid)) continue; - if (thistransport->priority > bestprio) { + if (thistransport->transtype == requestedtype && + thistransport->priority > bestprio) { bestprio = thistransport->priority; besttransport = thistransport; }