Mercurial > pidgin
diff libpurple/protocols/jabber/jingle/rtp.c @ 26097:84ea07648377
Add the id attribute to ice-udp according to the XEP.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Thu, 05 Feb 2009 09:36:23 +0000 |
parents | 88f183f7dfc7 |
children | 4a245ffb4051 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle/rtp.c Thu Feb 05 08:52:52 2009 +0000 +++ b/libpurple/protocols/jabber/jingle/rtp.c Thu Feb 05 09:36:23 2009 +0000 @@ -207,8 +207,10 @@ JingleIceUdpCandidate *iceudp_candidate; for (; candidates; candidates = g_list_next(candidates)) { PurpleMediaCandidate *candidate = candidates->data; + gchar *id = jabber_get_next_id( + jingle_session_get_js(session)); iceudp_candidate = jingle_iceudp_candidate_new(candidate->component_id, - candidate->foundation, generation, candidate->ip, + candidate->foundation, generation, id, candidate->ip, 0, candidate->port, candidate->priority, "udp", candidate->type == PURPLE_MEDIA_CANDIDATE_TYPE_HOST ? "host" : candidate->type == PURPLE_MEDIA_CANDIDATE_TYPE_SRFLX ? "srflx" : @@ -216,6 +218,7 @@ candidate->type == PURPLE_MEDIA_CANDIDATE_TYPE_RELAY ? "relay" : "", candidate->username, candidate->password); jingle_iceudp_add_local_candidate(JINGLE_ICEUDP(transport), iceudp_candidate); + g_free(id); } return transport; } else {