blob: 2817bf057ab772ab181877057eb9ea23ca599c7c [file] [log] [blame]
James Kuszmaul4a42b182021-01-17 11:32:46 -08001#include "config.h"
2#include <rawrtc/certificate.h>
3#include <rawrtc/ice_server.h>
4#include <re.h>
5
6/*
7 * Default rawrtc configuration.
8 */
9struct rawrtc_config rawrtc_default_config = {
10 .pacing_interval = 20,
11 .ipv4_enable = true,
12 .ipv6_enable = true,
13 .udp_enable = true,
14 .tcp_enable = false, // TODO: true by default
15 .sign_algorithm = RAWRTC_CERTIFICATE_SIGN_ALGORITHM_SHA256,
16 .ice_server_normal_transport = RAWRTC_ICE_SERVER_TRANSPORT_UDP,
17 .ice_server_secure_transport = RAWRTC_ICE_SERVER_TRANSPORT_TLS,
18 .stun_keepalive_interval = 25,
19 .stun_config =
20 {
21 .rto = STUN_DEFAULT_RTO,
22 .rc = STUN_DEFAULT_RC,
23 .rm = STUN_DEFAULT_RM,
24 .ti = STUN_DEFAULT_TI,
25 .tos = 0x00,
26 },
27};