comparison libpurple/media/backend-fs2.c @ 30469:195d034b6cfe

Removed the TCP and TLS TURN relaying options since libnice currently only supports these in Google mode. Added a note about this in fs-backend.c and changed the prefs label to read "UDP Port"
author Marcus Lundblad <ml@update.uu.se>
date Tue, 31 Aug 2010 18:26:04 +0000
parents 797c03de8fa9
children 356a8d472395
comparison
equal deleted inserted replaced
30468:efb82b6b9406 30469:195d034b6cfe
1637 if (port > 0) { 1637 if (port > 0) {
1638 relay_info = append_relay_info(relay_info, turn_ip, port, username, 1638 relay_info = append_relay_info(relay_info, turn_ip, port, username,
1639 password, "udp"); 1639 password, "udp");
1640 } 1640 }
1641 1641
1642 /* TCP */ 1642 /* should add TCP and perhaps TLS relaying options when these are
1643 port = purple_prefs_get_int("/purple/network/turn_port_tcp"); 1643 supported by libnice using non-google mode */
1644 if (port > 0) { 1644
1645 relay_info = append_relay_info(relay_info, turn_ip, port, username,
1646 password, "tcp");
1647 }
1648
1649 /* TLS */
1650 port = purple_prefs_get_int("/purple/network/turn_port_tls");
1651 if (port > 0) {
1652 relay_info = append_relay_info(relay_info, turn_ip, port, username,
1653 password, "tls");
1654 }
1655
1656 purple_debug_info("backend-fs2", 1645 purple_debug_info("backend-fs2",
1657 "Setting relay-info on new stream\n"); 1646 "Setting relay-info on new stream\n");
1658 _params[_num_params].name = "relay-info"; 1647 _params[_num_params].name = "relay-info";
1659 g_value_init(&_params[_num_params].value, 1648 g_value_init(&_params[_num_params].value,
1660 G_TYPE_VALUE_ARRAY); 1649 G_TYPE_VALUE_ARRAY);