Mercurial > pidgin
diff libpurple/protocols/jabber/jingle/rtp.c @ 26119:36c7efb85220
Use the correct values for Jingle Ice-Udp's rel-addr and rel-port.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Tue, 24 Feb 2009 23:36:51 +0000 |
parents | 9cda61a15698 |
children | f10034e0321b |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jingle/rtp.c Tue Feb 24 08:25:23 2009 +0000 +++ b/libpurple/protocols/jabber/jingle/rtp.c Tue Feb 24 23:36:51 2009 +0000 @@ -217,6 +217,8 @@ candidate->type == PURPLE_MEDIA_CANDIDATE_TYPE_PRFLX ? "prflx" : candidate->type == PURPLE_MEDIA_CANDIDATE_TYPE_RELAY ? "relay" : "", candidate->username, candidate->password); + iceudp_candidate->reladdr = g_strdup(candidate->base_ip); + iceudp_candidate->relport = candidate->base_port; jingle_iceudp_add_local_candidate(JINGLE_ICEUDP(transport), iceudp_candidate); g_free(id); } @@ -261,6 +263,8 @@ PURPLE_MEDIA_CANDIDATE_TYPE_RELAY : 0, PURPLE_MEDIA_NETWORK_PROTOCOL_UDP, candidate->ip, candidate->port); + new_candidate->base_ip = g_strdup(candidate->reladdr); + new_candidate->base_port = candidate->relport; new_candidate->username = g_strdup(candidate->username); new_candidate->password = g_strdup(candidate->password); new_candidate->priority = candidate->priority;