Debian Codegraph @

configs/samples/rtp.conf.sample

raw
1 ;
2 ; RTP Configuration
3 ;
4 [general]
5 ;
6 ; RTP start and RTP end configure start and end addresses
7 ;
8 ; Defaults are rtpstart=5000 and rtpend=31000
9 ;
10 rtpstart=10000
11 rtpend=20000
12 ;
13 ; Whether to enable or disable UDP checksums on RTP traffic
14 ;
15 ;rtpchecksums=no
16 ;
17 ; The amount of time a DTMF digit with no 'end' marker should be
18 ; allowed to continue (in 'samples', 1/8000 of a second)
19 ;
20 ;dtmftimeout=3000
21 ; rtcpinterval = 5000 ; Milliseconds between rtcp reports
22 ;(min 500, max 60000, default 5000)
23 ;
24 ; Enable strict RTP protection. This will drop RTP packets that do not come
25 ; from the recognized source of the RTP stream. Strict RTP qualifies RTP
26 ; packet stream sources before accepting them upon initial connection and
27 ; when the connection is renegotiated (e.g., transfers and direct media).
28 ; Initial connection and renegotiation starts a learning mode to qualify
29 ; stream source addresses. Once Asterisk has recognized a stream it will
30 ; allow other streams to qualify and replace the current stream for 5
31 ; seconds after starting learning mode. Once learning mode completes the
32 ; current stream is locked in and cannot change until the next
33 ; renegotiation.
34 ; Valid options are "no" to disable strictrtp, "yes" to enable strictrtp,
35 ; and "seqno", which does the same thing as strictrtp=yes, but only checks
36 ; to make sure the sequence number is correct rather than checking the time
37 ; interval as well.
38 ; This option is enabled by default.
39 ; strictrtp=yes
40 ;
41 ; Number of packets containing consecutive sequence values needed
42 ; to change the RTP source socket address. This option only comes
43 ; into play while using strictrtp=yes. Consider changing this value
44 ; if rtp packets are dropped from one or both ends after a call is
45 ; connected. This option is set to 4 by default.
46 ; probation=8
47 ;
48 ; Enable sRTP replay protection. Buggy SIP user agents (UAs) reset the
49 ; sequence number (RTP-SEQ) on a re-INVITE, for example, with Session Timers
50 ; or on Call Hold/Resume, but keep the synchronization source (RTP-SSRC). If
51 ; the new RTP-SEQ is higher than the previous one, the call continues if the
52 ; roll-over counter (sRTP-ROC) is zero (the call lasted less than 22 minutes).
53 ; In all other cases, the call faces one-way audio or even no audio at all.
54 ; "replay check failed (index too old)" gets printed continuously. This is a
55 ; software bug. You have to report this to the creator of that UA. Until it is
56 ; fixed, you could disable sRTP replay protection (see RFC 3711 section 3.3.2).
57 ; This option is enabled by default.
58 ; srtpreplayprotection=yes
59 ;
60 ; Whether to enable or disable ICE support. This option is enabled by default.
61 ; icesupport=false
62 ;
63 ; Hostname or address for the STUN server used when determining the external
64 ; IP address and port an RTP session can be reached at. The port number is
65 ; optional. If omitted the default value of 3478 will be used. This option is
66 ; disabled by default. Name resolution will occur at load time, and if DNS is
67 ; used, name resolution will occur repeatedly after the TTL expires.
68 ;
69 ; e.g. stunaddr=mystun.server.com:3478
70 ;
71 ; stunaddr=
72 ;
73 ; If a hostname is specified for stunaddr periodic DNS resolution is enabled
74 ; based on the TTL returned in the queries. If the TTL returned is 0, it
75 ; means that the next time the IP address is needed, it should be looked up
76 ; again. I.E. Don't cache. Historically (and incorrectly) however, we
77 ; stopped the periodic resolution and never re-resolved the hostname again.
78 ; The stunaddr_reresolve_ttl_0 parameter can address this:
79 ;
80 ; Possible values:
81 ; - 'no': This is the historical (and current default) behavior of not doing
82 ; any further lookups and continuing to use the last successful result until
83 ; Asterisk is restarted or rtp.conf is reloaded.
84 ; - 'yes': Use the last cached result for the current call but trigger
85 ; re-resolution in the background for the benefit of future calls.
86 ; If the result of the background lookup is a ttl > 0, periodic resolution
87 ; will be restarted otherwise the next call will use the new cached value
88 ; and will trigger a background lookup again.
89 ;
90 ; stunaddr_reresolve_ttl_0 = no
91 ;
92 ; Some multihomed servers have IP interfaces that cannot reach the STUN
93 ; server specified by stunaddr. Blacklist those interface subnets from
94 ; trying to send a STUN packet to find the external IP address.
95 ; Attempting to send the STUN packet needlessly delays processing incoming
96 ; and outgoing SIP INVITEs because we will wait for a response that can
97 ; never come until we give up on the response.
98 ; * Multiple subnets may be listed.
99 ; * Blacklisting applies to IPv4 only. STUN isn't needed for IPv6.
100 ; * Blacklisting applies when binding RTP to specific IP addresses and not
101 ; the wildcard 0.0.0.0 address. e.g., A PJSIP endpoint binding RTP to a
102 ; specific address using the bind_rtp_to_media_address and media_address
103 ; options. Or the PJSIP endpoint specifies an explicit transport that binds
104 ; to a specific IP address. Blacklisting is done via ACL infrastructure
105 ; so it's possible to whitelist as well.
106 ;
107
108
109 ; stun_acl = named_acl
110 ; stun_deny = 0.0.0.0/0
111 ; stun_permit = 1.2.3.4/32
112 ;
113 ; For historic reasons stun_blacklist is an alias for stun_deny.
114 ;
115 ; Whether to report the PJSIP version in a SOFTWARE attribute for all
116 ; outgoing STUN packets. This option is enabled by default.
117 ;
118 ; stun_software_attribute=yes
119 ;
120 ; Hostname or address for the TURN server to be used as a relay. The port
121 ; number is optional. If omitted the default value of 3478 will be used.
122 ; This option is disabled by default.
123 ;
124 ; e.g. turnaddr=myturn.server.com:34780
125 ;
126 ; turnaddr=
127 ;
128 ; Username used to authenticate with TURN relay server.
129 ; turnusername=
130 ;
131 ; Password used to authenticate with TURN relay server.
132 ; turnpassword=
133 ;
134 ; An ACL can be used to determine which discovered addresses to include for
135 ; ICE, srflx and relay discovery. This is useful to optimize the ICE process
136 ; where a system has multiple host address ranges and/or physical interfaces
137 ; and certain of them are not expected to be used for RTP. For example, VPNs
138 ; and local interconnections may not be suitable or necessary for ICE. Multiple
139 ; subnets may be listed. If left unconfigured, all discovered host addresses
140 ; are used.
141 ;
142 ; ice_acl = named_acl
143 ; ice_deny = 0.0.0.0/0
144 ; ice_permit = 1.2.3.4/32
145 ;
146 ; For historic reasons ice_blacklist is an alias for ice_deny.
147 ;
148 ; The MTU to use for DTLS packet fragmentation. This option is set to 1200
149 ; by default. The minimum MTU is 256.
150 ; dtls_mtu = 1200
151 ;
152 [ice_host_candidates]
153 ;
154 ; When Asterisk is behind a static one-to-one NAT and ICE is in use, ICE will
155 ; expose the server's internal IP address as one of the host candidates.
156 ; Although using STUN (see the 'stunaddr' configuration option) will provide a
157 ; publicly accessible IP, the internal IP will still be sent to the remote
158 ; peer. To help hide the topology of your internal network, you can override
159 ; the host candidates that Asterisk will send to the remote peer.
160 ;
161 ; IMPORTANT: Only use this functionality when your Asterisk server is behind a
162 ; one-to-one NAT and you know what you're doing. If you do define anything
163 ; here, you almost certainly will NOT want to specify 'stunaddr' or 'turnaddr'
164 ; above.
165 ;
166 ; The format for these overrides is:
167 ;
168 ; <local address> => <advertised address>,[include_local_address]
169 ;
170 ; The following will replace 192.168.1.10 with 1.2.3.4 during ICE
171 ; negotiation:
172 ;
173 ;192.168.1.10 => 1.2.3.4
174 ;
175 ; The following will include BOTH 192.168.1.10 and 1.2.3.4 during ICE
176 ; negotiation instead of replacing 192.168.1.10. This can make it easier
177 ; to serve both local and remote clients.
178 ;
179 ;192.168.1.10 => 1.2.3.4,include_local_address
180 ;
181 ; You can define an override for more than 1 interface if you have a multihomed
182 ; server. Any local interface that is not matched will be passed through
183 ; unaltered. Both IPv4 and IPv6 addresses are supported.