Debian Codegraph @

res/res_pjsip/pjsip_config.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE docs SYSTEM "appdocsxml.dtd">
3 <?xml-stylesheet type="text/xsl" href="appdocsxml.xslt"?>
4 <docs xmlns:xi="http://www.w3.org/2001/XInclude">
5 <configInfo name="res_pjsip" language="en_US">
6 <synopsis>SIP Resource using PJProject</synopsis>
7 <configFile name="pjsip.conf">
8 <configObject name="endpoint">
9 <since>
10 <version>12.0.0</version>
11 </since>
12 <synopsis>Endpoint</synopsis>
13 <description><para>
14 The <emphasis>Endpoint</emphasis> is the primary configuration object.
15 It contains the core SIP related options only, endpoints are <emphasis>NOT</emphasis>
16 dialable entries of their own. Communication with another SIP device is
17 accomplished via Addresses of Record (AoRs) which have one or more
18 contacts associated with them. Endpoints <emphasis>NOT</emphasis> configured to
19 use a <literal>transport</literal> will default to first transport found
20 in <filename>pjsip.conf</filename> that matches its type.
21 </para>
22 <para>Example: An Endpoint has been configured with no transport.
23 When it comes time to call an AoR, PJSIP will find the
24 first transport that matches the type. A SIP URI of <literal>sip:5000@[11::33]</literal>
25 will use the first IPv6 transport and try to send the request.
26 </para>
27 <para>If the anonymous endpoint identifier is in use an endpoint with the name
28 "anonymous@domain" will be searched for as a last resort. If this is not found
29 it will fall back to searching for "anonymous". If neither endpoints are found
30 the anonymous endpoint identifier will not return an endpoint and anonymous
31 calling will not be possible.
32 </para>
33 </description>
34 <configOption name="100rel" default="yes">
35 <since>
36 <version>12.2.0</version>
37 </since>
38 <synopsis>Allow support for RFC3262 provisional ACK tags</synopsis>
39 <description>
40 <enumlist>
41 <enum name="no">
42 <para>If set to <literal>no</literal>, do not support transmission of
43 reliable provisional responses. As UAS, if an incoming request contains 100rel
44 in the Required header, it is rejected with 420 Bad Extension.</para>
45 </enum>
46 <enum name="required">
47 <para>If set to <literal>required</literal>, require provisional responses to
48 be sent and received reliably. As UAS, incoming requests without 100rel
49 in the Supported header are rejected with 421 Extension Required. As UAC,
50 outgoing requests will have 100rel in the Required header.</para>
51 </enum>
52 <enum name="peer_supported">
53 <para>If set to <literal>peer_supported</literal>, send provisional responses
54 reliably if the request by the peer contained 100rel in the Supported or
55 Require header. As UAS, if an incoming request contains 100rel in the Supported
56 header, send 1xx responses reliably. If the request by the peer does not contain 100rel
57 in the Supported and Require header, send responses normally. As UAC, outgoing requests
58 will contain 100rel in the Supported header.</para>
59 </enum>
60 <enum name="yes">
61 <para>If set to <literal>yes</literal>, indicate the support of reliable provisional
62 responses and PRACK them if required by the peer. As UAS, if the incoming request
63 contains 100rel in the Supported header but not in the Required header, send 1xx
64 responses normally. If the incoming request contains 100rel in the Required header,
65 send 1xx responses reliably. As UAC add 100rel to the Supported header and PRACK 1xx
66 responses if required.</para>
67 </enum>
68 </enumlist>
69 </description>
70 </configOption>
71 <configOption name="aggregate_mwi" default="yes">
72 <since>
73 <version>12.0.0</version>
74 </since>
75 <synopsis>Condense MWI notifications into a single NOTIFY.</synopsis>
76 <description><para>When enabled, <replaceable>aggregate_mwi</replaceable> condenses message
77 waiting notifications from multiple mailboxes into a single NOTIFY. If it is disabled,
78 individual NOTIFYs are sent for each mailbox.</para></description>
79 </configOption>
80 <configOption name="allow">
81 <since>
82 <version>13.0.0</version>
83 </since>
84 <synopsis>Media Codec(s) to allow</synopsis>
85 </configOption>
86 <configOption name="codec_prefs_incoming_offer">
87 <since>
88 <version>18.0.0</version>
89 </since>
90 <synopsis>Codec negotiation prefs for incoming offers.</synopsis>
91 <description>
92 <para>
93 This is a string that describes how the codecs
94 specified on an incoming SDP offer (pending) are reconciled with the codecs specified
95 on an endpoint (configured) before being sent to the Asterisk core.
96 The string actually specifies 4 <literal>name:value</literal> pair parameters
97 separated by commas. Whitespace is ignored and they may be specified in any order.
98 Note that this option is reserved for future functionality.
99
100 </para>
101 <para>
102 Parameters:
103 </para>
104 <enumlist>
105 <enum name="prefer: &lt; pending | configured &gt;">
106 <para>
107 </para>
108 <enumlist>
109 <enum name="pending"><para>The codec list from the caller. (default)</para></enum>
110 <enum name="configured"><para>The codec list from the endpoint.</para></enum>
111 </enumlist>
112 </enum>
113 <enum name="operation : &lt; intersect | only_preferred | only_nonpreferred &gt;">
114 <para>
115 </para>
116 <enumlist>
117 <enum name="intersect"><para>Only common codecs with the preferred codecs first. (default)</para></enum>
118 <enum name="only_preferred"><para>Use only the preferred codecs.</para></enum>
119 <enum name="only_nonpreferred"><para>Use only the non-preferred codecs.</para></enum>
120 </enumlist>
121 </enum>
122 <enum name="keep : &lt; all | first &gt;">
123 <para>
124 </para>
125 <enumlist>
126 <enum name="all"><para>After the operation, keep all codecs. (default)</para></enum>
127 <enum name="first"><para>After the operation, keep only the first codec.</para></enum>
128 </enumlist>
129 </enum>
130 <enum name="transcode : &lt; allow | prevent &gt;">
131 <para>
132 </para>
133 <enumlist>
134 <enum name="allow"><para>Allow transcoding. (default)</para></enum>
135 <enum name="prevent"><para>Prevent transcoding.</para></enum>
136 </enumlist>
137 </enum>
138 </enumlist>
139 <para>
140 </para>
141 <example>
142 codec_prefs_incoming_offer = prefer: pending, operation: intersect, keep: all, transcode: allow
143 </example>
144 <para>
145 Prefer the codecs coming from the caller. Use only the ones that are common.
146 keeping the order of the preferred list. Keep all codecs in the result. Allow transcoding.
147 </para>
148 </description>
149 </configOption>
150 <configOption name="codec_prefs_outgoing_offer">
151 <since>
152 <version>18.0.0</version>
153 </since>
154 <synopsis>Codec negotiation prefs for outgoing offers.</synopsis>
155 <description>
156 <para>
157 This is a string that describes how the codecs specified in the topology that
158 comes from the Asterisk core (pending) are reconciled with the codecs specified on an
159 endpoint (configured) when sending an SDP offer.
160 The string actually specifies 4 <literal>name:value</literal> pair parameters
161 separated by commas. Whitespace is ignored and they may be specified in any order.
162 Note that this option is reserved for future functionality.
163
164 </para>
165 <para>
166 Parameters:
167 </para>
168 <enumlist>
169 <enum name="prefer: &lt; pending | configured &gt;">
170 <para>
171 </para>
172 <enumlist>
173 <enum name="pending"><para>The codec list from the core. (default)</para></enum>
174 <enum name="configured"><para>The codec list from the endpoint.</para></enum>
175 </enumlist>
176 </enum>
177 <enum name="operation : &lt; union | intersect | only_preferred | only_nonpreferred &gt;">
178 <para>
179 </para>
180 <enumlist>
181 <enum name="union"><para>Merge the lists with the preferred codecs first. (default)</para></enum>
182 <enum name="intersect"><para>Only common codecs with the preferred codecs first. (default)</para></enum>
183 <enum name="only_preferred"><para>Use only the preferred codecs.</para></enum>
184 <enum name="only_nonpreferred"><para>Use only the non-preferred codecs.</para></enum>
185 </enumlist>
186 </enum>
187 <enum name="keep : &lt; all | first &gt;">
188 <para>
189 </para>
190 <enumlist>
191 <enum name="all"><para>After the operation, keep all codecs. (default)</para></enum>
192 <enum name="first"><para>After the operation, keep only the first codec.</para></enum>
193 </enumlist>
194 </enum>
195 <enum name="transcode : &lt; allow | prevent &gt;">
196 <para>
197 </para>
198 <enumlist>
199 <enum name="allow"><para>Allow transcoding. (default)</para></enum>
200 <enum name="prevent"><para>Prevent transcoding.</para></enum>
201 </enumlist>
202 </enum>
203 </enumlist>
204 <para>
205 </para>
206 <example>
207 codec_prefs_outgoing_offer = prefer: configured, operation: union, keep: first, transcode: prevent
208 </example>
209 <para>
210 Prefer the codecs coming from the endpoint. Merge them with the codecs from the core
211 keeping the order of the preferred list. Keep only the first one. No transcoding allowed.
212 </para>
213 </description>
214 </configOption>
215 <configOption name="codec_prefs_incoming_answer">
216 <since>
217 <version>18.0.0</version>
218 </since>
219 <synopsis>Codec negotiation prefs for incoming answers.</synopsis>
220 <description>
221 <para>
222 This is a string that describes how the codecs specified in an incoming SDP answer
223 (pending) are reconciled with the codecs specified on an endpoint (configured)
224 when receiving an SDP answer.
225 The string actually specifies 4 <literal>name:value</literal> pair parameters
226 separated by commas. Whitespace is ignored and they may be specified in any order.
227 Note that this option is reserved for future functionality.
228
229 </para>
230 <para>
231 Parameters:
232 </para>
233 <enumlist>
234 <enum name="prefer: &lt; pending | configured &gt;">
235 <para>
236 </para>
237 <enumlist>
238 <enum name="pending"><para>The codec list in the received SDP answer. (default)</para></enum>
239 <enum name="configured"><para>The codec list from the endpoint.</para></enum>
240 </enumlist>
241 </enum>
242 <enum name="operation : &lt; union | intersect | only_preferred | only_nonpreferred &gt;">
243 <para>
244 </para>
245 <enumlist>
246 <enum name="union"><para>Merge the lists with the preferred codecs first.</para></enum>
247 <enum name="intersect"><para>Only common codecs with the preferred codecs first. (default)</para></enum>
248 <enum name="only_preferred"><para>Use only the preferred codecs.</para></enum>
249 <enum name="only_nonpreferred"><para>Use only the non-preferred codecs.</para></enum>
250 </enumlist>
251 </enum>
252 <enum name="keep : &lt; all | first &gt;">
253 <para>
254 </para>
255 <enumlist>
256 <enum name="all"><para>After the operation, keep all codecs. (default)</para></enum>
257 <enum name="first"><para>After the operation, keep only the first codec.</para></enum>
258 </enumlist>
259 </enum>
260 <enum name="transcode : &lt; allow | prevent &gt;">
261 <para>
262 The transcode parameter is ignored when processing answers.
263 </para>
264 </enum>
265 </enumlist>
266 <para>
267 </para>
268 <example>
269 codec_prefs_incoming_answer = keep: first
270 </example>
271 <para>
272 Use the defaults but keep oinly the first codec.
273 </para>
274 </description>
275 </configOption>
276 <configOption name="codec_prefs_outgoing_answer">
277 <since>
278 <version>18.0.0</version>
279 </since>
280 <synopsis>Codec negotiation prefs for outgoing answers.</synopsis>
281 <description>
282 <para>
283 This is a string that describes how the codecs that come from the core (pending)
284 are reconciled with the codecs specified on an endpoint (configured)
285 when sending an SDP answer.
286 The string actually specifies 4 <literal>name:value</literal> pair parameters
287 separated by commas. Whitespace is ignored and they may be specified in any order.
288 Note that this option is reserved for future functionality.
289
290 </para>
291 <para>
292 Parameters:
293 </para>
294 <enumlist>
295 <enum name="prefer: &lt; pending | configured &gt;">
296 <para>
297 </para>
298 <enumlist>
299 <enum name="pending"><para>The codec list that came from the core. (default)</para></enum>
300 <enum name="configured"><para>The codec list from the endpoint.</para></enum>
301 </enumlist>
302 </enum>
303 <enum name="operation : &lt; union | intersect | only_preferred | only_nonpreferred &gt;">
304 <para>
305 </para>
306 <enumlist>
307 <enum name="union"><para>Merge the lists with the preferred codecs first.</para></enum>
308 <enum name="intersect"><para>Only common codecs with the preferred codecs first. (default)</para></enum>
309 <enum name="only_preferred"><para>Use only the preferred codecs.</para></enum>
310 <enum name="only_nonpreferred"><para>Use only the non-preferred codecs.</para></enum>
311 </enumlist>
312 </enum>
313 <enum name="keep : &lt; all | first &gt;">
314 <para>
315 </para>
316 <enumlist>
317 <enum name="all"><para>After the operation, keep all codecs. (default)</para></enum>
318 <enum name="first"><para>After the operation, keep only the first codec.</para></enum>
319 </enumlist>
320 </enum>
321 <enum name="transcode : &lt; allow | prevent &gt;">
322 <para>
323 The transcode parameter is ignored when processing answers.
324 </para>
325 </enum>
326 </enumlist>
327 <para>
328 </para>
329 <example>
330 codec_prefs_incoming_answer = keep: first
331 </example>
332 <para>
333 Use the defaults but keep oinly the first codec.
334 </para>
335 </description>
336 </configOption>
337 <configOption name="allow_overlap" default="yes">
338 <since>
339 <version>13.15.0</version>
340 <version>14.4.0</version>
341 </since>
342 <synopsis>Enable RFC3578 overlap dialing support.</synopsis>
343 </configOption>
344 <configOption name="overlap_context">
345 <since>
346 <version>18.17.0</version>
347 <version>20.2.0</version>
348 </since>
349 <synopsis>Dialplan context to use for RFC3578 overlap dialing.</synopsis>
350 <description>
351 <para>Dialplan context to use for overlap dialing extension matching.
352 If not specified, the context configured for the endpoint will be used.
353 If specified, the extensions/patterns in the specified context will be used
354 for determining if a full number has been received from the endpoint.
355 </para>
356 </description>
357 </configOption>
358 <configOption name="aors">
359 <since>
360 <version>12.0.0</version>
361 </since>
362 <synopsis>AoR(s) to be used with the endpoint</synopsis>
363 <description><para>
364 List of comma separated AoRs that the endpoint should be associated with.
365 </para></description>
366 </configOption>
367 <configOption name="auth">
368 <since>
369 <version>12.2.0</version>
370 </since>
371 <synopsis>Authentication Object(s) associated with the endpoint</synopsis>
372 <description><para>
373 This is a comma-delimited list of <replaceable>auth</replaceable> sections defined
374 in <filename>pjsip.conf</filename> to be used to verify inbound connection attempts.
375 </para><para>
376 Endpoints without an authentication object
377 configured will allow connections without verification.</para>
378 <note><para>
379 Using the same auth section for inbound and outbound
380 authentication is not recommended. There is a difference in
381 meaning for an empty realm setting between inbound and outbound
382 authentication uses. See the auth realm description for details.
383 </para></note>
384 </description>
385 </configOption>
386 <configOption name="callerid">
387 <since>
388 <version>12.2.0</version>
389 </since>
390 <synopsis>CallerID information for the endpoint</synopsis>
391 <description><para>
392 Must be in the format <literal>Name &lt;Number&gt;</literal>,
393 or only <literal>&lt;Number&gt;</literal>.
394 </para></description>
395 </configOption>
396 <configOption name="callerid_privacy">
397 <since>
398 <version>12.7.0</version>
399 </since>
400 <synopsis>Default privacy level</synopsis>
401 <description>
402 <enumlist>
403 <enum name="allowed_not_screened" />
404 <enum name="allowed_passed_screen" />
405 <enum name="allowed_failed_screen" />
406 <enum name="allowed" />
407 <enum name="prohib_not_screened" />
408 <enum name="prohib_passed_screen" />
409 <enum name="prohib_failed_screen" />
410 <enum name="prohib" />
411 <enum name="unavailable" />
412 </enumlist>
413 </description>
414 </configOption>
415 <configOption name="callerid_tag">
416 <since>
417 <version>12.2.0</version>
418 </since>
419 <synopsis>Internal id_tag for the endpoint</synopsis>
420 </configOption>
421 <configOption name="context">
422 <since>
423 <version>12.0.0</version>
424 </since>
425 <synopsis>Dialplan context for inbound sessions</synopsis>
426 </configOption>
427 <configOption name="direct_media_glare_mitigation" default="none">
428 <since>
429 <version>12.2.0</version>
430 </since>
431 <synopsis>Mitigation of direct media (re)INVITE glare</synopsis>
432 <description>
433 <para>
434 This setting attempts to avoid creating INVITE glare scenarios
435 by disabling direct media reINVITEs in one direction thereby allowing
436 designated servers (according to this option) to initiate direct
437 media reINVITEs without contention and significantly reducing call
438 setup time.
439 </para>
440 <para>
441 A more detailed description of how this option functions can be found in
442 the Asterisk documentation https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Concepts/SIP-Direct-Media-Reinvite-Glare-Avoidance/
443 </para>
444 <enumlist>
445 <enum name="none" />
446 <enum name="outgoing" />
447 <enum name="incoming" />
448 </enumlist>
449 </description>
450 </configOption>
451 <configOption name="direct_media_method" default="invite">
452 <since>
453 <version>12.2.0</version>
454 </since>
455 <synopsis>Direct Media method type</synopsis>
456 <description>
457 <para>Method for setting up Direct Media between endpoints.</para>
458 <enumlist>
459 <enum name="invite" />
460 <enum name="reinvite">
461 <para>Alias for the <literal>invite</literal> value.</para>
462 </enum>
463 <enum name="update" />
464 </enumlist>
465 </description>
466 </configOption>
467 <configOption name="trust_connected_line">
468 <since>
469 <version>13.24.0</version>
470 <version>16.1.0</version>
471 </since>
472 <synopsis>Accept Connected Line updates from this endpoint</synopsis>
473 </configOption>
474 <configOption name="send_connected_line">
475 <since>
476 <version>13.24.0</version>
477 <version>16.1.0</version>
478 </since>
479 <synopsis>Send Connected Line updates to this endpoint</synopsis>
480 </configOption>
481 <configOption name="connected_line_method" default="invite">
482 <since>
483 <version>12.2.0</version>
484 </since>
485 <synopsis>Connected line method type</synopsis>
486 <description>
487 <para>Method used when updating connected line information.</para>
488 <enumlist>
489 <enum name="invite">
490 <para>When set to <literal>invite</literal>, check the remote's Allow header and
491 if UPDATE is allowed, send UPDATE instead of INVITE to avoid SDP
492 renegotiation. If UPDATE is not Allowed, send INVITE.</para>
493 </enum>
494 <enum name="reinvite">
495 <para>Alias for the <literal>invite</literal> value.</para>
496 </enum>
497 <enum name="update">
498 <para>If set to <literal>update</literal>, send UPDATE regardless of what the remote
499 Allows. </para>
500 </enum>
501 </enumlist>
502 </description>
503 </configOption>
504 <configOption name="direct_media" default="yes">
505 <since>
506 <version>12.0.0</version>
507 </since>
508 <synopsis>Determines whether media may flow directly between endpoints.</synopsis>
509 </configOption>
510 <configOption name="disable_direct_media_on_nat" default="no">
511 <since>
512 <version>12.0.0</version>
513 </since>
514 <synopsis>Disable direct media session refreshes when NAT obstructs the media session</synopsis>
515 </configOption>
516 <configOption name="disallow">
517 <since>
518 <version>13.0.0</version>
519 </since>
520 <synopsis>Media Codec(s) to disallow</synopsis>
521 </configOption>
522 <configOption name="dtmf_mode" default="rfc4733">
523 <since>
524 <version>12.2.0</version>
525 </since>
526 <synopsis>DTMF mode</synopsis>
527 <description>
528 <para>This setting allows to choose the DTMF mode for endpoint communication.</para>
529 <enumlist>
530 <enum name="rfc4733">
531 <para>DTMF is sent out of band of the main audio stream.</para>
532 </enum>
533 <enum name="inband">
534 <para>DTMF is sent as part of audio stream.</para>
535 </enum>
536 <enum name="info">
537 <para>DTMF is sent as SIP INFO packets.</para>
538 </enum>
539 <enum name="auto">
540 <para>DTMF is sent as RFC 4733 if the other side supports it or as INBAND if not.</para>
541 </enum>
542 <enum name="auto_info">
543 <para>DTMF is sent as RFC 4733 if the other side supports it or as SIP INFO if not.</para>
544 </enum>
545 </enumlist>
546 </description>
547 </configOption>
548 <configOption name="media_address">
549 <since>
550 <version>18.22.0</version>
551 <version>20.7.0</version>
552 <version>21.2.0</version>
553 </since>
554 <synopsis>IP address used in SDP for media handling</synopsis>
555 <description><para>
556 At the time of SDP creation, the IP address defined here will be used as
557 the media address for individual streams in the SDP.
558 </para>
559 <note><para>
560 Be aware that the <literal>external_media_address</literal> option, set in Transport
561 configuration, can also affect the final media address used in the SDP.
562 </para></note>
563 </description>
564 </configOption>
565 <configOption name="bind_rtp_to_media_address">
566 <since>
567 <version>13.8.0</version>
568 </since>
569 <synopsis>Bind the RTP instance to the media_address</synopsis>
570 <description><para>
571 If media_address is specified, this option causes the RTP instance to be bound to the
572 specified ip address which causes the packets to be sent from that address.
573 </para>
574 </description>
575 </configOption>
576 <configOption name="force_rport" default="yes">
577 <since>
578 <version>12.0.0</version>
579 </since>
580 <synopsis>Force use of return port</synopsis>
581 </configOption>
582 <configOption name="ice_support" default="no">
583 <since>
584 <version>12.0.0</version>
585 </since>
586 <synopsis>Enable the ICE mechanism to help traverse NAT</synopsis>
587 </configOption>
588 <configOption name="identify_by">
589 <since>
590 <version>13.19.0</version>
591 <version>15.2.0</version>
592 </since>
593 <synopsis>Way(s) for the endpoint to be identified</synopsis>
594 <description>
595 <para>Endpoints and AORs can be identified in multiple ways. This
596 option is a comma separated list of methods the endpoint can be
597 identified.
598 </para>
599 <note><para>
600 This option controls both how an endpoint is matched for incoming
601 traffic and also how an AOR is determined if a registration
602 occurs. You must list at least one method that also matches for
603 AORs or the registration will fail.
604 </para></note>
605 <enumlist>
606 <enum name="username">
607 <para>Matches the endpoint or AOR ID based on the username
608 and domain in the From header (or To header for AORs). If
609 an exact match on both username and domain/realm fails, the
610 match is retried with just the username.
611 </para>
612 </enum>
613 <enum name="auth_username">
614 <para>Matches the endpoint or AOR ID based on the username
615 and realm in the Authentication header. If an exact match
616 on both username and domain/realm fails, the match is
617 retried with just the username.
618 </para>
619 <note><para>This method of identification has some security
620 considerations because an Authentication header is not
621 present on the first message of a dialog when digest
622 authentication is used. The client can't generate it until
623 the server sends the challenge in a 401 response. Since
624 Asterisk normally sends a security event when an incoming
625 request can't be matched to an endpoint, using this method
626 requires that the security event be deferred until a request
627 is received with the Authentication header and only
628 generated if the username doesn't result in a match. This
629 may result in a delay before an attack is recognized. You
630 can control how many unmatched requests are received from
631 a single ip address before a security event is generated
632 using the <literal>unidentified_request</literal>
633 parameters in the "global" configuration object.
634 </para></note>
635 </enum>
636 <enum name="ip">
637 <para>Matches the endpoint based on the source IP address.
638 </para>
639 <para>This method of identification is not configured here
640 but simply allowed by this configuration option. See the
641 documentation for the <literal>identify</literal>
642 configuration section for more details on this method of
643 endpoint identification.
644 </para>
645 </enum>
646 <enum name="header">
647 <para>Matches the endpoint based on a configured SIP header
648 value.
649 </para>
650 <para>This method of identification is not configured here
651 but simply allowed by this configuration option. See the
652 documentation for the <literal>identify</literal>
653 configuration section for more details on this method of
654 endpoint identification.
655 </para>
656 </enum>
657 <enum name="request_uri">
658 <para>Matches the endpoint based on the configured SIP
659 request uri.
660 </para>
661 <para>This method of identification is not configured here
662 but simply allowed by this configuration option.
663 </para>
664 </enum>
665 </enumlist>
666 </description>
667 </configOption>
668 <configOption name="redirect_method">
669 <since>
670 <version>12.2.0</version>
671 </since>
672 <synopsis>How redirects received from an endpoint are handled</synopsis>
673 <description><para>
674 When a redirect is received from an endpoint there are multiple ways it can be handled.
675 If this option is set to <literal>user</literal> the user portion of the redirect target
676 is treated as an extension within the dialplan and dialed using a Local channel. If this option
677 is set to <literal>uri_core</literal> the target URI is returned to the dialing application
678 which dials it using the PJSIP channel driver and endpoint originally used. If this option is
679 set to <literal>uri_pjsip</literal> the redirect occurs within chan_pjsip itself and is not exposed
680 to the core at all. The <literal>uri_pjsip</literal> option has the benefit of being more efficient
681 and also supporting multiple potential redirect targets. The con is that since redirection occurs
682 within chan_pjsip redirecting information is not forwarded and redirection can not be
683 prevented.
684 </para>
685 <enumlist>
686 <enum name="user" />
687 <enum name="uri_core" />
688 <enum name="uri_pjsip" />
689 </enumlist>
690 </description>
691 </configOption>
692 <configOption name="follow_redirect_methods">
693 <since>
694 <version>20.18.0</version>
695 <version>22.8.0</version>
696 <version>23.2.0</version>
697 </since>
698 <synopsis>Follow 3XX redirect responses for the defined SIP methods.</synopsis>
699 <description><para>
700 This is a comma-delimited, case-insensitive list of SIP methods for which redirects are followed.
701 When a redirect response is received for a SIP request, the redirect is only followed if the
702 method is listed in this config option. For example <literal>MESSAGE</literal>. Currently, only
703 <literal>MESSAGE</literal> is supported.
704 </para>
705 </description>
706 </configOption>
707 <configOption name="mailboxes">
708 <since>
709 <version>12.0.0</version>
710 </since>
711 <synopsis>NOTIFY the endpoint when state changes for any of the specified mailboxes</synopsis>
712 <description><para>
713 Asterisk will send unsolicited MWI NOTIFY messages to the endpoint when state
714 changes happen for any of the specified mailboxes. More than one mailbox can be
715 specified with a comma-delimited string. app_voicemail mailboxes must be specified
716 as mailbox@context; for example: mailboxes=6001@default. For mailboxes provided by
717 external sources, such as through the res_mwi_external module, you must specify
718 strings supported by the external system.
719 </para><para>
720 For endpoints that SUBSCRIBE for MWI, use the <literal>mailboxes</literal> option in your AOR
721 configuration.
722 </para></description>
723 </configOption>
724 <configOption name="mwi_subscribe_replaces_unsolicited">
725 <since>
726 <version>13.24.0</version>
727 <version>15.7.0</version>
728 </since>
729 <synopsis>An MWI subscribe will replace sending unsolicited NOTIFYs</synopsis>
730 </configOption>
731 <configOption name="voicemail_extension">
732 <since>
733 <version>13.9.0</version>
734 </since>
735 <synopsis>The voicemail extension to send in the NOTIFY Message-Account header</synopsis>
736 </configOption>
737 <configOption name="moh_suggest" default="default">
738 <since>
739 <version>12.0.0</version>
740 </since>
741 <synopsis>Default Music On Hold class</synopsis>
742 </configOption>
743 <configOption name="outbound_auth">
744 <since>
745 <version>12.2.0</version>
746 </since>
747 <synopsis>Authentication object(s) used for outbound requests</synopsis>
748 <description><para>
749 This is a comma-delimited list of <replaceable>auth</replaceable>
750 sections defined in <filename>pjsip.conf</filename> used to respond
751 to outbound connection authentication challenges.</para>
752 <note><para>
753 Using the same auth section for inbound and outbound
754 authentication is not recommended. There is a difference in
755 meaning for an empty realm setting between inbound and outbound
756 authentication uses. See the auth realm description for details.
757 </para></note>
758 </description>
759 </configOption>
760 <configOption name="outbound_proxy">
761 <since>
762 <version>12.0.0</version>
763 </since>
764 <synopsis>Full SIP URI of the outbound proxy used to send requests</synopsis>
765 <description><para>
766 Proxy through which to send requests, a full SIP URI must be provided (default: "").
767 Consider adding \;lr for loose routing (to keep user@domain in the request URI).
768 </para></description>
769 </configOption>
770 <configOption name="rewrite_contact">
771 <since>
772 <version>12.0.0</version>
773 </since>
774 <synopsis>Allow Contact header to be rewritten with the source IP address-port</synopsis>
775 <description><para>
776 On inbound SIP messages from this endpoint, the Contact header or an
777 appropriate Record-Route header will be changed to have the source IP
778 address and port. This option does not affect outbound messages sent to
779 this endpoint. This option helps servers communicate with endpoints
780 that are behind NATs. This option also helps reuse reliable transport
781 connections such as TCP and TLS.
782 </para></description>
783 </configOption>
784 <configOption name="rtp_ipv6" default="no">
785 <since>
786 <version>12.0.0</version>
787 </since>
788 <synopsis>Allow use of IPv6 for RTP traffic</synopsis>
789 </configOption>
790 <configOption name="rtp_symmetric" default="no">
791 <since>
792 <version>12.0.0</version>
793 </since>
794 <synopsis>Enforce that RTP must be symmetric</synopsis>
795 </configOption>
796 <configOption name="send_diversion" default="yes">
797 <since>
798 <version>12.0.0</version>
799 </since>
800 <synopsis>Send the Diversion header, conveying the diversion
801 information to the called user agent</synopsis>
802 </configOption>
803 <configOption name="send_history_info" default="no">
804 <since>
805 <version>13.38.0</version>
806 <version>16.15.0</version>
807 <version>17.9.0</version>
808 <version>18.1.0</version>
809 </since>
810 <synopsis>Send the History-Info header, conveying the diversion
811 information to the called and calling user agents</synopsis>
812 </configOption>
813 <configOption name="send_pai" default="no">
814 <since>
815 <version>12.0.0</version>
816 </since>
817 <synopsis>Send the P-Asserted-Identity header</synopsis>
818 </configOption>
819 <configOption name="send_rpid" default="no">
820 <since>
821 <version>12.0.0</version>
822 </since>
823 <synopsis>Send the Remote-Party-ID header</synopsis>
824 </configOption>
825 <configOption name="rpid_immediate" default="no">
826 <since>
827 <version>13.4.0</version>
828 </since>
829 <synopsis>Immediately send connected line updates on unanswered incoming calls.</synopsis>
830 <description>
831 <para>When enabled, immediately send <emphasis>180 Ringing</emphasis>
832 or <emphasis>183 Progress</emphasis> response messages to the
833 caller if the connected line information is updated before
834 the call is answered. This can send a <emphasis>180 Ringing</emphasis>
835 response before the call has even reached the far end. The
836 caller can start hearing ringback before the far end even gets
837 the call. Many phones tend to grab the first connected line
838 information and refuse to update the display if it changes. The
839 first information is not likely to be correct if the call
840 goes to an endpoint not under the control of this Asterisk
841 box.</para>
842 <para>When disabled, a connected line update must wait for
843 another reason to send a message with the connected line
844 information to the caller before the call is answered. You can
845 trigger the sending of the information by using an appropriate
846 dialplan application such as <emphasis>Ringing</emphasis>.</para>
847 </description>
848 </configOption>
849 <configOption name="tenantid" default="">
850 <since>
851 <version>18.25.0</version>
852 <version>20.10.0</version>
853 <version>21.5.0</version>
854 </since>
855 <synopsis>The tenant ID for this endpoint.</synopsis>
856 <description><para>
857 Sets the tenant ID for this endpoint. When a channel is created,
858 tenantid will be set to this value. It can be changed via dialplan
859 later if needed.
860 </para></description>
861 </configOption>
862 <configOption name="timers_min_se" default="90">
863 <since>
864 <version>12.0.0</version>
865 </since>
866 <synopsis>Minimum session timers expiration period</synopsis>
867 <description><para>
868 Minimum session timer expiration period. Time in seconds.
869 </para></description>
870 </configOption>
871 <configOption name="timers" default="yes">
872 <since>
873 <version>12.2.0</version>
874 </since>
875 <synopsis>Session timers for SIP packets</synopsis>
876 <description>
877 <enumlist>
878 <enum name="no" />
879 <enum name="yes" />
880 <enum name="required" />
881 <enum name="always" />
882 <enum name="forced"><para>Alias of always</para></enum>
883 </enumlist>
884 </description>
885 </configOption>
886 <configOption name="timers_sess_expires" default="1800">
887 <since>
888 <version>12.0.0</version>
889 </since>
890 <synopsis>Maximum session timer expiration period</synopsis>
891 <description><para>
892 Maximum session timer expiration period. Time in seconds.
893 </para></description>
894 </configOption>
895 <configOption name="transport">
896 <since>
897 <version>12.0.0</version>
898 </since>
899 <synopsis>Explicit transport configuration to use</synopsis>
900 <description>
901 <para>This will <emphasis>force</emphasis> the endpoint to use the
902 specified transport configuration to send SIP messages. You need
903 to already know what kind of transport (UDP/TCP/IPv4/etc) the
904 endpoint device will use.
905 </para>
906 <note><para>Not specifying a transport will select the first
907 configured transport in <filename>pjsip.conf</filename> which is
908 compatible with the URI we are trying to contact.
909 </para></note>
910 <warning><para>Transport configuration is not affected by reloads. In order to
911 change transports, a full Asterisk restart is required</para></warning>
912 </description>
913 </configOption>
914 <configOption name="trust_id_inbound" default="no">
915 <since>
916 <version>12.0.0</version>
917 </since>
918 <synopsis>Accept identification information received from this endpoint</synopsis>
919 <description><para>This option determines whether Asterisk will accept
920 identification from the endpoint from headers such as P-Asserted-Identity
921 or Remote-Party-ID header. This option applies both to calls originating from the
922 endpoint and calls originating from Asterisk. If <literal>no</literal>, the
923 configured Caller-ID from pjsip.conf will always be used as the identity for
924 the endpoint.</para></description>
925 </configOption>
926 <configOption name="trust_id_outbound" default="no">
927 <since>
928 <version>12.0.0</version>
929 </since>
930 <synopsis>Send private identification details to the endpoint.</synopsis>
931 <description><para>This option determines whether res_pjsip will send private
932 identification information to the endpoint. If <literal>no</literal>,
933 private Caller-ID information will not be forwarded to the endpoint.
934 "Private" in this case refers to any method of restricting identification.
935 Example: setting <replaceable>callerid_privacy</replaceable> to any
936 <literal>prohib</literal> variation.
937 Example: If <replaceable>trust_id_inbound</replaceable> is set to
938 <literal>yes</literal>, the presence of a <literal>Privacy: id</literal>
939 header in a SIP request or response would indicate the identification
940 provided in the request is private.</para></description>
941 </configOption>
942 <configOption name="type">
943 <since>
944 <version>12.0.0</version>
945 </since>
946 <synopsis>Must be of type 'endpoint'.</synopsis>
947 </configOption>
948 <configOption name="use_ptime" default="no">
949 <since>
950 <version>12.0.0</version>
951 </since>
952 <synopsis>Use Endpoint's requested packetization interval</synopsis>
953 </configOption>
954 <configOption name="use_avpf" default="no">
955 <since>
956 <version>12.0.0</version>
957 </since>
958 <synopsis>Determines whether res_pjsip will use and enforce usage of AVPF for this
959 endpoint.</synopsis>
960 <description><para>
961 If set to <literal>yes</literal>, res_pjsip will use the AVPF or SAVPF RTP
962 profile for all media offers on outbound calls and media updates and will
963 decline media offers not using the AVPF or SAVPF profile.
964 </para><para>
965 If set to <literal>no</literal>, res_pjsip will use the AVP or SAVP RTP
966 profile for all media offers on outbound calls and media updates, and will
967 decline media offers not using the AVP or SAVP profile.
968 </para></description>
969 </configOption>
970 <configOption name="force_avp" default="no">
971 <since>
972 <version>12.4.0</version>
973 </since>
974 <synopsis>Determines whether res_pjsip will use and enforce usage of AVP,
975 regardless of the RTP profile in use for this endpoint.</synopsis>
976 <description><para>
977 If set to <literal>yes</literal>, res_pjsip will use the AVP, AVPF, SAVP, or
978 SAVPF RTP profile for all media offers on outbound calls and media updates including
979 those for DTLS-SRTP streams.
980 </para><para>
981 If set to <literal>no</literal>, res_pjsip will use the respective RTP profile
982 depending on configuration.
983 </para></description>
984 </configOption>
985 <configOption name="media_use_received_transport" default="no">
986 <since>
987 <version>12.4.0</version>
988 </since>
989 <synopsis>Determines whether res_pjsip will use the media transport received in the
990 offer SDP in the corresponding answer SDP.</synopsis>
991 <description><para>
992 If set to <literal>yes</literal>, res_pjsip will use the received media transport.
993 </para><para>
994 If set to <literal>no</literal>, res_pjsip will use the respective RTP profile
995 depending on configuration.
996 </para></description>
997 </configOption>
998 <configOption name="media_encryption" default="no">
999 <since>
1000 <version>12.2.0</version>
1001 </since>
1002 <synopsis>Determines whether res_pjsip will use and enforce usage of media encryption
1003 for this endpoint.</synopsis>
1004 <description>
1005 <enumlist>
1006 <enum name="no"><para>
1007 res_pjsip will offer no encryption and allow no encryption to be setup.
1008 </para></enum>
1009 <enum name="sdes"><para>
1010 res_pjsip will offer standard SRTP setup via in-SDP keys. Encrypted SIP
1011 transport should be used in conjunction with this option to prevent
1012 exposure of media encryption keys.
1013 </para></enum>
1014 <enum name="dtls"><para>
1015 res_pjsip will offer DTLS-SRTP setup.
1016 </para></enum>
1017 </enumlist>
1018 </description>
1019 </configOption>
1020 <configOption name="media_encryption_optimistic" default="no">
1021 <since>
1022 <version>13.1.0</version>
1023 </since>
1024 <synopsis>Determines whether encryption should be used if possible but does not terminate the
1025 session if not achieved.</synopsis>
1026 <description><para>
1027 This option only applies if <replaceable>media_encryption</replaceable> is
1028 set to <literal>sdes</literal> or <literal>dtls</literal>.
1029 </para></description>
1030 </configOption>
1031 <configOption name="g726_non_standard" default="no">
1032 <since>
1033 <version>13.5.0</version>
1034 </since>
1035 <synopsis>Force g.726 to use AAL2 packing order when negotiating g.726 audio</synopsis>
1036 <description><para>
1037 When set to "yes" and an endpoint negotiates g.726 audio then use g.726 for AAL2
1038 packing order instead of what is recommended by RFC3551. Since this essentially
1039 replaces the underlying 'g726' codec with 'g726aal2' then 'g726aal2' needs to be
1040 specified in the endpoint's allowed codec list.
1041 </para></description>
1042 </configOption>
1043 <configOption name="inband_progress" default="no">
1044 <since>
1045 <version>12.0.0</version>
1046 </since>
1047 <synopsis>Determines whether chan_pjsip will indicate ringing using inband
1048 progress.</synopsis>
1049 <description><para>
1050 If set to <literal>yes</literal>, chan_pjsip will send a 183 Session Progress
1051 when told to indicate ringing and will immediately start sending ringing
1052 as audio.
1053 </para><para>
1054 If set to <literal>no</literal>, chan_pjsip will send a 180 Ringing when told
1055 to indicate ringing and will NOT send it as audio.
1056 </para></description>
1057 </configOption>
1058 <configOption name="call_group">
1059 <since>
1060 <version>12.2.0</version>
1061 </since>
1062 <synopsis>The numeric pickup groups for a channel.</synopsis>
1063 <description><para>
1064 Can be set to a comma separated list of numbers or ranges between the values
1065 of 0-63 (maximum of 64 groups).
1066 </para></description>
1067 </configOption>
1068 <configOption name="pickup_group">
1069 <since>
1070 <version>12.2.0</version>
1071 </since>
1072 <synopsis>The numeric pickup groups that a channel can pickup.</synopsis>
1073 <description><para>
1074 Can be set to a comma separated list of numbers or ranges between the values
1075 of 0-63 (maximum of 64 groups).
1076 </para></description>
1077 </configOption>
1078 <configOption name="named_call_group">
1079 <since>
1080 <version>12.2.0</version>
1081 </since>
1082 <synopsis>The named pickup groups for a channel.</synopsis>
1083 <description><para>
1084 Can be set to a comma separated list of case sensitive strings limited by
1085 supported line length.
1086 </para></description>
1087 </configOption>
1088 <configOption name="named_pickup_group">
1089 <since>
1090 <version>12.2.0</version>
1091 </since>
1092 <synopsis>The named pickup groups that a channel can pickup.</synopsis>
1093 <description><para>
1094 Can be set to a comma separated list of case sensitive strings limited by
1095 supported line length.
1096 </para></description>
1097 </configOption>
1098 <configOption name="device_state_busy_at" default="0">
1099 <since>
1100 <version>12.0.0</version>
1101 </since>
1102 <synopsis>The number of in-use channels which will cause busy to be returned as device state</synopsis>
1103 <description><para>
1104 When the number of in-use channels for the endpoint equal to or greater than the devicestate_busy_at setting
1105 the PJSIP channel driver will return busy as the device state instead of in use.
1106 </para></description>
1107 </configOption>
1108 <configOption name="t38_udptl" default="no">
1109 <since>
1110 <version>12.0.0</version>
1111 </since>
1112 <synopsis>Whether T.38 UDPTL support is enabled or not</synopsis>
1113 <description><para>
1114 If set to yes T.38 UDPTL support will be enabled, and T.38 negotiation requests will be accepted
1115 and relayed.
1116 </para></description>
1117 </configOption>
1118 <configOption name="t38_udptl_ec" default="none">
1119 <since>
1120 <version>12.2.0</version>
1121 </since>
1122 <synopsis>T.38 UDPTL error correction method</synopsis>
1123 <description>
1124 <enumlist>
1125 <enum name="none"><para>
1126 No error correction should be used.
1127 </para></enum>
1128 <enum name="fec"><para>
1129 Forward error correction should be used.
1130 </para></enum>
1131 <enum name="redundancy"><para>
1132 Redundancy error correction should be used.
1133 </para></enum>
1134 </enumlist>
1135 </description>
1136 </configOption>
1137 <configOption name="t38_udptl_maxdatagram" default="0">
1138 <since>
1139 <version>12.0.0</version>
1140 </since>
1141 <synopsis>T.38 UDPTL maximum datagram size</synopsis>
1142 <description><para>
1143 This option can be set to override the maximum datagram of a remote endpoint for broken
1144 endpoints.
1145 </para></description>
1146 </configOption>
1147 <configOption name="fax_detect" default="no">
1148 <since>
1149 <version>12.0.0</version>
1150 </since>
1151 <synopsis>Whether CNG tone detection is enabled</synopsis>
1152 <description><para>
1153 This option can be set to send the session to the fax extension when a CNG tone is
1154 detected.
1155 </para></description>
1156 </configOption>
1157 <configOption name="fax_detect_timeout">
1158 <since>
1159 <version>13.11.0</version>
1160 </since>
1161 <synopsis>How long into a call before fax_detect is disabled for the call</synopsis>
1162 <description><para>
1163 The option determines how many seconds into a call before the
1164 fax_detect option is disabled for the call. Setting the value
1165 to zero disables the timeout.
1166 </para></description>
1167 </configOption>
1168 <configOption name="t38_udptl_nat" default="no">
1169 <since>
1170 <version>12.0.0</version>
1171 </since>
1172 <synopsis>Whether NAT support is enabled on UDPTL sessions</synopsis>
1173 <description><para>
1174 When enabled the UDPTL stack will send UDPTL packets to the source address of
1175 received packets.
1176 </para></description>
1177 </configOption>
1178 <configOption name="t38_udptl_ipv6" default="no">
1179 <since>
1180 <version>12.0.0</version>
1181 </since>
1182 <synopsis>Whether IPv6 is used for UDPTL Sessions</synopsis>
1183 <description><para>
1184 When enabled the UDPTL stack will use IPv6.
1185 </para></description>
1186 </configOption>
1187 <configOption name="t38_bind_udptl_to_media_address" default="no">
1188 <since>
1189 <version>16.22.0</version>
1190 <version>18.8.0</version>
1191 </since>
1192 <synopsis>Bind the UDPTL instance to the media_adress</synopsis>
1193 <description><para>
1194 If media_address is specified, this option causes the UDPTL instance to be bound to
1195 the specified ip address which causes the packets to be sent from that address.
1196 </para></description>
1197 </configOption>
1198 <configOption name="tone_zone">
1199 <since>
1200 <version>12.0.0</version>
1201 </since>
1202 <synopsis>Set which country's indications to use for channels created for this endpoint.</synopsis>
1203 </configOption>
1204 <configOption name="language">
1205 <since>
1206 <version>12.0.0</version>
1207 </since>
1208 <synopsis>Set the default language to use for channels created for this endpoint.</synopsis>
1209 </configOption>
1210 <configOption name="one_touch_recording" default="no">
1211 <since>
1212 <version>12.0.0</version>
1213 </since>
1214 <synopsis>Determines whether one-touch recording is allowed for this endpoint.</synopsis>
1215 <see-also>
1216 <ref type="configOption">record_on_feature</ref>
1217 <ref type="configOption">record_off_feature</ref>
1218 </see-also>
1219 </configOption>
1220 <configOption name="record_on_feature" default="automixmon">
1221 <since>
1222 <version>12.0.0</version>
1223 </since>
1224 <synopsis>The feature to enact when one-touch recording is turned on.</synopsis>
1225 <description>
1226 <para>When an INFO request for one-touch recording arrives with a Record header set to "on", this
1227 feature will be enabled for the channel. The feature designated here can be any built-in
1228 or dynamic feature defined in features.conf.</para>
1229 <note><para>This setting has no effect if the endpoint's one_touch_recording option is disabled</para></note>
1230 </description>
1231 <see-also>
1232 <ref type="configOption">one_touch_recording</ref>
1233 <ref type="configOption">record_off_feature</ref>
1234 </see-also>
1235 </configOption>
1236 <configOption name="record_off_feature" default="automixmon">
1237 <since>
1238 <version>12.0.0</version>
1239 </since>
1240 <synopsis>The feature to enact when one-touch recording is turned off.</synopsis>
1241 <description>
1242 <para>When an INFO request for one-touch recording arrives with a Record header set to "off", this
1243 feature will be enabled for the channel. The feature designated here can be any built-in
1244 or dynamic feature defined in features.conf.</para>
1245 <note><para>This setting has no effect if the endpoint's one_touch_recording option is disabled</para></note>
1246 </description>
1247 <see-also>
1248 <ref type="configOption">one_touch_recording</ref>
1249 <ref type="configOption">record_on_feature</ref>
1250 </see-also>
1251 </configOption>
1252 <configOption name="rtp_engine" default="asterisk">
1253 <since>
1254 <version>12.0.0</version>
1255 </since>
1256 <synopsis>Name of the RTP engine to use for channels created for this endpoint</synopsis>
1257 </configOption>
1258 <configOption name="allow_transfer" default="yes">
1259 <since>
1260 <version>12.0.0</version>
1261 </since>
1262 <synopsis>Determines whether SIP REFER transfers are allowed for this endpoint</synopsis>
1263 </configOption>
1264 <configOption name="user_eq_phone" default="no">
1265 <since>
1266 <version>13.2.0</version>
1267 </since>
1268 <synopsis>Determines whether a user=phone parameter is placed into the request URI if the user is determined to be a phone number</synopsis>
1269 </configOption>
1270 <configOption name="moh_passthrough" default="no">
1271 <since>
1272 <version>13.30.0</version>
1273 </since>
1274 <synopsis>Determines whether hold and unhold will be passed through using re-INVITEs with recvonly and sendrecv to the remote side</synopsis>
1275 </configOption>
1276 <configOption name="sdp_owner" default="-">
1277 <since>
1278 <version>12.0.0</version>
1279 </since>
1280 <synopsis>String placed as the username portion of an SDP origin (o=) line.</synopsis>
1281 <description><para>
1282 The username portion of an SDP origin to be used in the SDP 'o=' line.
1283 Note: If this option is left empty or set only to whitespace, it will
1284 automatically default to a hyphen ('-') to ensure compliance
1285 with RFC 8866.
1286 </para></description>
1287 </configOption>
1288 <configOption name="sdp_session" default="Asterisk">
1289 <since>
1290 <version>12.0.0</version>
1291 </since>
1292 <synopsis>String used for the SDP session (s=) line.</synopsis>
1293 <description><para>
1294 The session name to be used in the SDP 's=' line.
1295 Note: If this option is left empty or set only to whitespace, it will
1296 automatically default to a hyphen ('-') to ensure compliance
1297 with RFC 8866.
1298 </para></description>
1299 </configOption>
1300 <configOption name="tos_audio">
1301 <since>
1302 <version>12.2.0</version>
1303 </since>
1304 <synopsis>DSCP TOS bits for audio streams</synopsis>
1305 <description><para>
1306 See https://docs.asterisk.org/Configuration/Channel-Drivers/IP-Quality-of-Service for more information about QoS settings
1307 </para></description>
1308 </configOption>
1309 <configOption name="tos_video">
1310 <since>
1311 <version>12.2.0</version>
1312 </since>
1313 <synopsis>DSCP TOS bits for video streams</synopsis>
1314 <description><para>
1315 See https://docs.asterisk.org/Configuration/Channel-Drivers/IP-Quality-of-Service for more information about QoS settings
1316 </para></description>
1317 </configOption>
1318 <configOption name="cos_audio">
1319 <since>
1320 <version>12.0.0</version>
1321 </since>
1322 <synopsis>Priority for audio streams</synopsis>
1323 <description><para>
1324 See https://docs.asterisk.org/Configuration/Channel-Drivers/IP-Quality-of-Service for more information about QoS settings
1325 </para></description>
1326 </configOption>
1327 <configOption name="cos_video">
1328 <since>
1329 <version>12.0.0</version>
1330 </since>
1331 <synopsis>Priority for video streams</synopsis>
1332 <description><para>
1333 See https://docs.asterisk.org/Configuration/Channel-Drivers/IP-Quality-of-Service for more information about QoS settings
1334 </para></description>
1335 </configOption>
1336 <configOption name="allow_subscribe" default="yes">
1337 <since>
1338 <version>12.0.0</version>
1339 </since>
1340 <synopsis>Determines if endpoint is allowed to initiate subscriptions with Asterisk.</synopsis>
1341 </configOption>
1342 <configOption name="sub_min_expiry" default="60">
1343 <since>
1344 <version>12.0.0</version>
1345 </since>
1346 <synopsis>The minimum allowed expiry time for subscriptions initiated by the endpoint.</synopsis>
1347 </configOption>
1348 <configOption name="from_user">
1349 <since>
1350 <version>13.18.0</version>
1351 <version>14.7.0</version>
1352 </since>
1353 <synopsis>Username to use in From header for requests to this endpoint.</synopsis>
1354 </configOption>
1355 <configOption name="mwi_from_user">
1356 <since>
1357 <version>12.0.0</version>
1358 </since>
1359 <synopsis>Username to use in From header for unsolicited MWI NOTIFYs to this endpoint.</synopsis>
1360 </configOption>
1361 <configOption name="from_domain">
1362 <since>
1363 <version>12.0.0</version>
1364 </since>
1365 <synopsis>Domain to use in From header for requests to this endpoint.</synopsis>
1366 </configOption>
1367 <configOption name="dtls_verify">
1368 <since>
1369 <version>12.7.0</version>
1370 </since>
1371 <synopsis>Verify that the provided peer certificate is valid</synopsis>
1372 <description><para>
1373 This option only applies if <replaceable>media_encryption</replaceable> is
1374 set to <literal>dtls</literal>.
1375 </para><para>
1376 It can be one of the following values:
1377 </para><enumlist>
1378 <enum name="no"><para>
1379 meaning no verification is done.
1380 </para></enum>
1381 <enum name="fingerprint"><para>
1382 meaning to verify the remote fingerprint.
1383 </para></enum>
1384 <enum name="certificate"><para>
1385 meaning to verify the remote certificate.
1386 </para></enum>
1387 <enum name="yes"><para>
1388 meaning to verify both the remote fingerprint and certificate.
1389 </para></enum>
1390 </enumlist>
1391 </description>
1392 </configOption>
1393 <configOption name="dtls_rekey">
1394 <since>
1395 <version>12.7.0</version>
1396 </since>
1397 <synopsis>Interval at which to renegotiate the TLS session and rekey the SRTP session</synopsis>
1398 <description><para>
1399 This option only applies if <replaceable>media_encryption</replaceable> is
1400 set to <literal>dtls</literal>.
1401 </para><para>
1402 If this is not set or the value provided is 0 rekeying will be disabled.
1403 </para></description>
1404 </configOption>
1405 <configOption name="dtls_auto_generate_cert" default="no">
1406 <since>
1407 <version>15.2.0</version>
1408 </since>
1409 <synopsis>Whether or not to automatically generate an ephemeral X.509 certificate</synopsis>
1410 <description>
1411 <para>
1412 If enabled, Asterisk will generate an X.509 certificate for each DTLS session.
1413 This option only applies if <replaceable>media_encryption</replaceable> is set
1414 to <literal>dtls</literal>. This option will be automatically enabled if
1415 <literal>webrtc</literal> is enabled and <literal>dtls_cert_file</literal> is
1416 not specified.
1417 </para>
1418 </description>
1419 </configOption>
1420 <configOption name="dtls_cert_file">
1421 <since>
1422 <version>12.2.0</version>
1423 </since>
1424 <synopsis>Path to certificate file to present to peer</synopsis>
1425 <description><para>
1426 This option only applies if <replaceable>media_encryption</replaceable> is
1427 set to <literal>dtls</literal>.
1428 </para></description>
1429 </configOption>
1430 <configOption name="dtls_private_key">
1431 <since>
1432 <version>12.2.0</version>
1433 </since>
1434 <synopsis>Path to private key for certificate file</synopsis>
1435 <description><para>
1436 This option only applies if <replaceable>media_encryption</replaceable> is
1437 set to <literal>dtls</literal>.
1438 </para></description>
1439 </configOption>
1440 <configOption name="dtls_cipher">
1441 <since>
1442 <version>12.2.0</version>
1443 </since>
1444 <synopsis>Cipher to use for DTLS negotiation</synopsis>
1445 <description><para>
1446 This option only applies if <replaceable>media_encryption</replaceable> is
1447 set to <literal>dtls</literal>.
1448 </para>
1449 <para>Many options for acceptable ciphers. See link for more:</para>
1450 <para>http://www.openssl.org/docs/apps/ciphers.html#CIPHER_STRINGS
1451 </para></description>
1452 </configOption>
1453 <configOption name="dtls_ca_file">
1454 <since>
1455 <version>12.2.0</version>
1456 </since>
1457 <synopsis>Path to certificate authority certificate</synopsis>
1458 <description><para>
1459 This option only applies if <replaceable>media_encryption</replaceable> is
1460 set to <literal>dtls</literal>.
1461 </para></description>
1462 </configOption>
1463 <configOption name="dtls_ca_path">
1464 <since>
1465 <version>12.2.0</version>
1466 </since>
1467 <synopsis>Path to a directory containing certificate authority certificates</synopsis>
1468 <description><para>
1469 This option only applies if <replaceable>media_encryption</replaceable> is
1470 set to <literal>dtls</literal>.
1471 </para></description>
1472 </configOption>
1473 <configOption name="dtls_setup">
1474 <since>
1475 <version>12.2.0</version>
1476 </since>
1477 <synopsis>Whether we are willing to accept connections, connect to the other party, or both.</synopsis>
1478 <description>
1479 <para>
1480 This option only applies if <replaceable>media_encryption</replaceable> is
1481 set to <literal>dtls</literal>.
1482 </para>
1483 <enumlist>
1484 <enum name="active"><para>
1485 res_pjsip will make a connection to the peer.
1486 </para></enum>
1487 <enum name="passive"><para>
1488 res_pjsip will accept connections from the peer.
1489 </para></enum>
1490 <enum name="actpass"><para>
1491 res_pjsip will offer and accept connections from the peer.
1492 </para></enum>
1493 </enumlist>
1494 </description>
1495 </configOption>
1496 <configOption name="dtls_fingerprint">
1497 <since>
1498 <version>12.7.0</version>
1499 </since>
1500 <synopsis>Type of hash to use for the DTLS fingerprint in the SDP.</synopsis>
1501 <description>
1502 <para>
1503 This option only applies if <replaceable>media_encryption</replaceable> is
1504 set to <literal>dtls</literal>.
1505 </para>
1506 <enumlist>
1507 <enum name="SHA-256"></enum>
1508 <enum name="SHA-1"></enum>
1509 </enumlist>
1510 </description>
1511 </configOption>
1512 <configOption name="srtp_tag_32">
1513 <since>
1514 <version>12.0.0</version>
1515 </since>
1516 <synopsis>Determines whether 32 byte tags should be used instead of 80 byte tags.</synopsis>
1517 <description><para>
1518 This option only applies if <replaceable>media_encryption</replaceable> is
1519 set to <literal>sdes</literal> or <literal>dtls</literal>.
1520 </para></description>
1521 </configOption>
1522 <configOption name="set_var">
1523 <since>
1524 <version>12.2.0</version>
1525 </since>
1526 <synopsis>Variable set on a channel involving the endpoint.</synopsis>
1527 <description><para>
1528 When a new channel is created using the endpoint set the specified
1529 variable(s) on that channel. For multiple channel variables specify
1530 multiple 'set_var'(s).
1531 </para></description>
1532 </configOption>
1533 <configOption name="message_context">
1534 <since>
1535 <version>13.5.0</version>
1536 </since>
1537 <synopsis>Context to route incoming MESSAGE requests to.</synopsis>
1538 <description><para>
1539 If specified, incoming MESSAGE requests will be routed to the indicated
1540 dialplan context. If no <replaceable>message_context</replaceable> is
1541 specified, then the <replaceable>context</replaceable> setting is used.
1542 </para></description>
1543 </configOption>
1544 <configOption name="accountcode">
1545 <since>
1546 <version>13.5.0</version>
1547 </since>
1548 <synopsis>An accountcode to set automatically on any channels created for this endpoint.</synopsis>
1549 <description><para>
1550 If specified, any channel created for this endpoint will automatically
1551 have this accountcode set on it.
1552 </para></description>
1553 </configOption>
1554 <configOption name="preferred_codec_only" default="no">
1555 <since>
1556 <version>15.0.0</version>
1557 </since>
1558 <synopsis>Respond to a SIP invite with the single most preferred codec (DEPRECATED)</synopsis>
1559 <description><para>Respond to a SIP invite with the single most preferred codec
1560 rather than advertising all joint codec capabilities. This limits the other side's codec
1561 choice to exactly what we prefer.</para>
1562 <warning><para>This option has been deprecated in favor of
1563 <literal>incoming_call_offer_pref</literal>. Setting both options is unsupported.</para>
1564 </warning>
1565 </description>
1566 <see-also>
1567 <ref type="configOption">incoming_call_offer_pref</ref>
1568 </see-also>
1569 </configOption>
1570 <configOption name="incoming_call_offer_pref" default="local">
1571 <since>
1572 <version>18.0.0</version>
1573 </since>
1574 <synopsis>Preferences for selecting codecs for an incoming call.</synopsis>
1575 <description>
1576 <para>Based on this setting, a joint list of preferred codecs between those
1577 received in an incoming SDP offer (remote), and those specified in the
1578 endpoint's "allow" parameter (local) es created and is passed to the Asterisk
1579 core. </para>
1580 <note><para>This list will consist of only those codecs found in both lists.</para></note>
1581 <enumlist>
1582 <enum name="local"><para>
1583 Include all codecs in the local list that are also in the remote list
1584 preserving the local order. (default).
1585 </para></enum>
1586 <enum name="local_first"><para>
1587 Include only the first codec in the local list that is also in the remote list.
1588 </para></enum>
1589 <enum name="remote"><para>
1590 Include all codecs in the remote list that are also in the local list
1591 preserving the remote order.
1592 </para></enum>
1593 <enum name="remote_first"><para>
1594 Include only the first codec in the remote list that is also in the local list.
1595 </para></enum>
1596 </enumlist>
1597 </description>
1598 </configOption>
1599 <configOption name="outgoing_call_offer_pref" default="remote_merge">
1600 <since>
1601 <version>18.0.0</version>
1602 </since>
1603 <synopsis>Preferences for selecting codecs for an outgoing call.</synopsis>
1604 <description>
1605 <para>Based on this setting, a joint list of preferred codecs between
1606 those received from the Asterisk core (remote), and those specified in
1607 the endpoint's "allow" parameter (local) is created and is used to create
1608 the outgoing SDP offer.</para>
1609 <enumlist>
1610 <enum name="local"><para>
1611 Include all codecs in the local list that are also in the remote list
1612 preserving the local order.
1613 </para></enum>
1614 <enum name="local_merge"><para>
1615 Include all codecs in the local list preserving the local order.
1616 </para></enum>
1617 <enum name="local_first"><para>
1618 Include only the first codec in the local list.
1619 </para></enum>
1620 <enum name="remote"><para>
1621 Include all codecs in the remote list that are also in the local list
1622 preserving the remote order.
1623 </para></enum>
1624 <enum name="remote_merge"><para>
1625 Include all codecs in the local list preserving the remote order. (default)
1626 </para></enum>
1627 <enum name="remote_first"><para>
1628 Include only the first codec in the remote list that is also in the local list.
1629 </para></enum>
1630 </enumlist>
1631 </description>
1632 </configOption>
1633 <configOption name="rtp_keepalive">
1634 <since>
1635 <version>13.5.0</version>
1636 </since>
1637 <synopsis>Number of seconds between RTP comfort noise keepalive packets.</synopsis>
1638 <description><para>
1639 At the specified interval, Asterisk will send an RTP comfort noise frame. This may
1640 be useful for situations where Asterisk is behind a NAT or firewall and must keep
1641 a hole open in order to allow for media to arrive at Asterisk.
1642 </para></description>
1643 </configOption>
1644 <configOption name="rtp_timeout" default="0">
1645 <since>
1646 <version>13.5.0</version>
1647 </since>
1648 <synopsis>Maximum number of seconds without receiving RTP (while off hold) before terminating call.</synopsis>
1649 <description><para>
1650 This option configures the number of seconds without RTP (while off hold) before
1651 considering a channel as dead. When the number of seconds is reached the underlying
1652 channel is hung up. By default this option is set to 0, which means do not check.
1653 </para></description>
1654 </configOption>
1655 <configOption name="rtp_timeout_hold" default="0">
1656 <since>
1657 <version>13.5.0</version>
1658 </since>
1659 <synopsis>Maximum number of seconds without receiving RTP (while on hold) before terminating call.</synopsis>
1660 <description><para>
1661 This option configures the number of seconds without RTP (while on hold) before
1662 considering a channel as dead. When the number of seconds is reached the underlying
1663 channel is hung up. By default this option is set to 0, which means do not check.
1664 </para></description>
1665 </configOption>
1666 <configOption name="rtp_port_start" default="0">
1667 <since>
1668 <version>20.20.0</version>
1669 <version>22.10.0</version>
1670 <version>23.4.0</version>
1671 </since>
1672 <synopsis>Per-endpoint starting RTP port number.</synopsis>
1673 <description><para>
1674 Defines the starting port number for a dedicated per-endpoint RTP port
1675 range, overriding the global rtp.conf setting. Must be used together
1676 with <literal>rtp_port_end</literal>. When set to 0, the global
1677 rtp.conf range is used. The value must be between 1024 and 65535.
1678 </para></description>
1679 </configOption>
1680 <configOption name="rtp_port_end" default="0">
1681 <since>
1682 <version>20.20.0</version>
1683 <version>22.10.0</version>
1684 <version>23.4.0</version>
1685 </since>
1686 <synopsis>Per-endpoint ending RTP port number.</synopsis>
1687 <description><para>
1688 Defines the ending port number for a dedicated per-endpoint RTP port
1689 range, overriding the global rtp.conf setting. Must be used together
1690 with <literal>rtp_port_start</literal>. When set to 0, the global
1691 rtp.conf range is used. The value must be greater than
1692 <literal>rtp_port_start</literal> and between 1024 and 65535.
1693 </para></description>
1694 </configOption>
1695 <configOption name="acl">
1696 <since>
1697 <version>13.10.0</version>
1698 </since>
1699 <synopsis>List of IP ACL section names in acl.conf</synopsis>
1700 <description><para>
1701 This matches sections configured in <literal>acl.conf</literal>. The value is
1702 defined as a list of comma-delimited section names.
1703 </para></description>
1704 </configOption>
1705 <configOption name="deny">
1706 <since>
1707 <version>13.10.0</version>
1708 </since>
1709 <synopsis>List of IP addresses to deny access from</synopsis>
1710 <description><para>
1711 The value is a comma-delimited list of IP addresses. IP addresses may
1712 have a subnet mask appended. The subnet mask may be written in either
1713 CIDR or dotted-decimal notation. Separate the IP address and subnet
1714 mask with a slash ('/')
1715 </para></description>
1716 </configOption>
1717 <configOption name="permit">
1718 <since>
1719 <version>13.10.0</version>
1720 </since>
1721 <synopsis>List of IP addresses to permit access from</synopsis>
1722 <description><para>
1723 The value is a comma-delimited list of IP addresses. IP addresses may
1724 have a subnet mask appended. The subnet mask may be written in either
1725 CIDR or dotted-decimal notation. Separate the IP address and subnet
1726 mask with a slash ('/')
1727 </para></description>
1728 </configOption>
1729 <configOption name="contact_acl">
1730 <since>
1731 <version>13.10.0</version>
1732 </since>
1733 <synopsis>List of Contact ACL section names in acl.conf</synopsis>
1734 <description><para>
1735 This matches sections configured in <literal>acl.conf</literal>. The value is
1736 defined as a list of comma-delimited section names.
1737 </para></description>
1738 </configOption>
1739 <configOption name="contact_deny">
1740 <since>
1741 <version>13.10.0</version>
1742 </since>
1743 <synopsis>List of Contact header addresses to deny</synopsis>
1744 <description><para>
1745 The value is a comma-delimited list of IP addresses. IP addresses may
1746 have a subnet mask appended. The subnet mask may be written in either
1747 CIDR or dotted-decimal notation. Separate the IP address and subnet
1748 mask with a slash ('/')
1749 </para></description>
1750 </configOption>
1751 <configOption name="contact_permit">
1752 <since>
1753 <version>13.10.0</version>
1754 </since>
1755 <synopsis>List of Contact header addresses to permit</synopsis>
1756 <description><para>
1757 The value is a comma-delimited list of IP addresses. IP addresses may
1758 have a subnet mask appended. The subnet mask may be written in either
1759 CIDR or dotted-decimal notation. Separate the IP address and subnet
1760 mask with a slash ('/')
1761 </para></description>
1762 </configOption>
1763 <configOption name="subscribe_context">
1764 <since>
1765 <version>13.11.0</version>
1766 </since>
1767 <synopsis>Context for incoming MESSAGE requests.</synopsis>
1768 <description><para>
1769 If specified, incoming SUBSCRIBE requests will be searched for the matching
1770 extension in the indicated context.
1771 If no <replaceable>subscribe_context</replaceable> is specified,
1772 then the <replaceable>context</replaceable> setting is used.
1773 </para></description>
1774 </configOption>
1775 <configOption name="contact_user" default="">
1776 <since>
1777 <version>13.12.0</version>
1778 <version>14.1.0</version>
1779 </since>
1780 <synopsis>Force the user on the outgoing Contact header to this value.</synopsis>
1781 <description><para>
1782 On outbound requests, force the user portion of the Contact header to this value.
1783 </para></description>
1784 </configOption>
1785 <configOption name="asymmetric_rtp_codec" default="no">
1786 <since>
1787 <version>13.13.0</version>
1788 <version>14.2.0</version>
1789 </since>
1790 <synopsis>Allow the sending and receiving RTP codec to differ</synopsis>
1791 <description><para>
1792 When set to "yes" the codec in use for sending will be allowed to differ from
1793 that of the received one. PJSIP will not automatically switch the sending one
1794 to the receiving one.
1795 </para></description>
1796 </configOption>
1797 <configOption name="rtcp_mux" default="no">
1798 <since>
1799 <version>13.15.0</version>
1800 <version>14.4.0</version>
1801 </since>
1802 <synopsis>Enable RFC 5761 RTCP multiplexing on the RTP port</synopsis>
1803 <description><para>
1804 With this option enabled, Asterisk will attempt to negotiate the use of the "rtcp-mux"
1805 attribute on all media streams. This will result in RTP and RTCP being sent and received
1806 on the same port. This shifts the demultiplexing logic to the application rather than
1807 the transport layer. This option is useful when interoperating with WebRTC endpoints
1808 since they mandate this option's use.
1809 </para></description>
1810 </configOption>
1811 <configOption name="refer_blind_progress" default="yes">
1812 <since>
1813 <version>13.17.0</version>
1814 <version>14.6.0</version>
1815 </since>
1816 <synopsis>Whether to notifies all the progress details on blind transfer</synopsis>
1817 <description><para>
1818 Some SIP phones (Mitel/Aastra, Snom) expect a sip/frag "200 OK"
1819 after REFER has been accepted. If set to <literal>no</literal> then asterisk
1820 will not send the progress details, but immediately will send "200 OK".
1821 </para></description>
1822 </configOption>
1823 <configOption name="notify_early_inuse_ringing" default="no">
1824 <since>
1825 <version>13.17.0</version>
1826 <version>14.6.0</version>
1827 </since>
1828 <synopsis>Whether to notifies dialog-info 'early' on InUse&amp;Ringing state</synopsis>
1829 <description><para>
1830 Control whether dialog-info subscriptions get 'early' state
1831 on Ringing when already INUSE.
1832 </para></description>
1833 </configOption>
1834 <configOption name="max_audio_streams" default="1">
1835 <since>
1836 <version>15.0.0</version>
1837 </since>
1838 <synopsis>The maximum number of allowed audio streams for the endpoint</synopsis>
1839 <description><para>
1840 This option enforces a limit on the maximum simultaneous negotiated audio
1841 streams allowed for the endpoint.
1842 </para></description>
1843 </configOption>
1844 <configOption name="max_video_streams" default="1">
1845 <since>
1846 <version>15.0.0</version>
1847 </since>
1848 <synopsis>The maximum number of allowed video streams for the endpoint</synopsis>
1849 <description><para>
1850 This option enforces a limit on the maximum simultaneous negotiated video
1851 streams allowed for the endpoint.
1852 </para></description>
1853 </configOption>
1854 <configOption name="bundle" default="no">
1855 <since>
1856 <version>15.0.0</version>
1857 </since>
1858 <synopsis>Enable RTP bundling</synopsis>
1859 <description><para>
1860 With this option enabled, Asterisk will attempt to negotiate the use of bundle.
1861 If negotiated this will result in multiple RTP streams being carried over the same
1862 underlying transport. Note that enabling bundle will also enable the rtcp_mux option.
1863 </para></description>
1864 </configOption>
1865 <configOption name="webrtc" default="no">
1866 <since>
1867 <version>15.0.0</version>
1868 </since>
1869 <synopsis>Defaults and enables some options that are relevant to WebRTC</synopsis>
1870 <description><para>
1871 When set to "yes" this also enables the following values that are needed in
1872 order for basic WebRTC support to work: rtcp_mux, use_avpf, ice_support, and
1873 use_received_transport. The following configuration settings also get defaulted
1874 as follows:</para>
1875 <para>media_encryption=dtls</para>
1876 <para>dtls_auto_generate_cert=yes (if dtls_cert_file is not set)</para>
1877 <para>dtls_verify=fingerprint</para>
1878 <para>dtls_setup=actpass</para>
1879 </description>
1880 </configOption>
1881 <configOption name="incoming_mwi_mailbox">
1882 <since>
1883 <version>13.18.0</version>
1884 <version>14.7.0</version>
1885 <version>15.1.0</version>
1886 </since>
1887 <synopsis>Mailbox name to use when incoming MWI NOTIFYs are received</synopsis>
1888 <description><para>
1889 If an MWI NOTIFY is received <emphasis>from</emphasis> this endpoint,
1890 this mailbox will be used when notifying other modules of MWI status
1891 changes. If not set, incoming MWI NOTIFYs are ignored.
1892 </para></description>
1893 </configOption>
1894 <configOption name="follow_early_media_fork">
1895 <since>
1896 <version>13.22.0</version>
1897 <version>15.5.0</version>
1898 </since>
1899 <synopsis>Follow SDP forked media when To tag is different</synopsis>
1900 <description><para>
1901 On outgoing calls, if the UAS responds with different SDP attributes
1902 on subsequent 18X or 2XX responses (such as a port update) AND the
1903 To tag on the subsequent response is different than that on the previous
1904 one, follow it. This usually happens when the INVITE is forked to multiple
1905 UASs and more than one sends an SDP answer.
1906 </para>
1907 <note><para>
1908 This option must also be enabled in the <literal>system</literal>
1909 section for it to take effect here.
1910 </para></note>
1911 </description>
1912 </configOption>
1913 <configOption name="accept_multiple_sdp_answers" default="no">
1914 <since>
1915 <version>13.22.0</version>
1916 <version>15.5.0</version>
1917 </since>
1918 <synopsis>Accept multiple SDP answers on non-100rel responses</synopsis>
1919 <description><para>
1920 On outgoing calls, if the UAS responds with different SDP attributes
1921 on non-100rel 18X or 2XX responses (such as a port update) AND the
1922 To tag on the subsequent response is the same as that on the previous one,
1923 process the updated SDP. This can happen when the UAS needs to change ports
1924 for some reason such as using a separate port for custom ringback.
1925 </para>
1926 <note><para>
1927 This option must also be enabled in the <literal>system</literal>
1928 section for it to take effect here.
1929 </para></note>
1930 </description>
1931 </configOption>
1932 <configOption name="suppress_q850_reason_headers" default="no">
1933 <since>
1934 <version>13.23.0</version>
1935 <version>15.6.0</version>
1936 </since>
1937 <synopsis>Suppress Q.850 Reason headers for this endpoint</synopsis>
1938 <description><para>
1939 Some devices can't accept multiple Reason headers and get confused
1940 when both 'SIP' and 'Q.850' Reason headers are received. This
1941 option allows the 'Q.850' Reason header to be suppressed.</para>
1942 </description>
1943 </configOption>
1944 <configOption name="ignore_183_without_sdp" default="no">
1945 <since>
1946 <version>13.26.0</version>
1947 <version>16.3.0</version>
1948 </since>
1949 <synopsis>Do not forward 183 when it doesn't contain SDP</synopsis>
1950 <description><para>
1951 Certain SS7 internetworking scenarios can result in a 183
1952 to be generated for reasons other than early media. Forwarding
1953 this 183 can cause loss of ringback tone. This flag emulates
1954 the behavior of chan_sip and prevents these 183 responses from
1955 being forwarded.</para>
1956 </description>
1957 </configOption>
1958 <configOption name="stir_shaken" default="no">
1959 <since>
1960 <version>18.22.0</version>
1961 <version>20.7.0</version>
1962 <version>21.2.0</version>
1963 </since>
1964 <synopsis>Enable STIR/SHAKEN support on this endpoint</synopsis>
1965 <description><para>
1966 Enable STIR/SHAKEN support on this endpoint. On incoming INVITEs,
1967 the Identity header will be checked for validity. On outgoing
1968 INVITEs, an Identity header will be added.</para>
1969 </description>
1970 </configOption>
1971 <configOption name="stir_shaken_profile" default="">
1972 <since>
1973 <version>16.26.0</version>
1974 <version>18.12.0</version>
1975 <version>19.4.0</version>
1976 </since>
1977 <synopsis>STIR/SHAKEN profile containing additional configuration options</synopsis>
1978 <description><para>
1979 A STIR/SHAKEN profile that is defined in stir_shaken.conf. Contains
1980 several options and rules used for STIR/SHAKEN.</para>
1981 </description>
1982 </configOption>
1983 <configOption name="allow_unauthenticated_options" default="no">
1984 <since>
1985 <version>16.18.0</version>
1986 <version>18.4.0</version>
1987 </since>
1988 <synopsis>Skip authentication when receiving OPTIONS requests</synopsis>
1989 <description><para>
1990 RFC 3261 says that the response to an OPTIONS request MUST be the
1991 same had the request been an INVITE. Some UAs use OPTIONS requests
1992 like a 'ping' and the expectation is that they will return a
1993 200 OK.</para>
1994 <para>Enabling <literal>allow_unauthenticated_options</literal>
1995 will skip authentication of OPTIONS requests for the given
1996 endpoint.</para>
1997 <para>There are security implications to enabling this setting as
1998 it can allow information disclosure to occur - specifically, if
1999 enabled, an external party could enumerate and find the endpoint
2000 name by sending OPTIONS requests and examining the
2001 responses.</para>
2002 </description>
2003 </configOption>
2004 <configOption name="security_negotiation" default="no">
2005 <since>
2006 <version>21.0.0</version>
2007 </since>
2008 <synopsis>The kind of security agreement negotiation to use. Currently, only mediasec is supported.</synopsis>
2009 <description>
2010 <enumlist>
2011 <enum name="no" />
2012 <enum name="mediasec" />
2013 </enumlist>
2014 </description>
2015 </configOption>
2016 <configOption name="security_mechanisms">
2017 <since>
2018 <version>21.0.0</version>
2019 </since>
2020 <synopsis>List of security mechanisms supported.</synopsis>
2021 <description><para>
2022 This is a comma-delimited list of security mechanisms to use. Each security mechanism
2023 must be in the form defined by RFC 3329 section 2.2.
2024 </para></description>
2025 </configOption>
2026 <configOption name="geoloc_incoming_call_profile" default="">
2027 <since>
2028 <version>16.28.0</version>
2029 <version>18.14.0</version>
2030 <version>19.6.0</version>
2031 </since>
2032 <synopsis>Geolocation profile to apply to incoming calls</synopsis>
2033 <description><para>
2034 This geolocation profile will be applied to all calls received
2035 by the channel driver from the remote endpoint before they're
2036 forwarded to the dialplan.
2037 </para>
2038 </description>
2039 </configOption>
2040 <configOption name="geoloc_outgoing_call_profile" default="">
2041 <since>
2042 <version>16.28.0</version>
2043 <version>18.14.0</version>
2044 <version>19.6.0</version>
2045 </since>
2046 <synopsis>Geolocation profile to apply to outgoing calls</synopsis>
2047 <description><para>
2048 This geolocation profile will be applied to all calls received
2049 by the channel driver from the dialplan before they're forwarded
2050 the remote endpoint.
2051 </para>
2052 </description>
2053 </configOption>
2054 <configOption name="send_aoc" default="no">
2055 <since>
2056 <version>18.16.0</version>
2057 <version>20.1.0</version>
2058 </since>
2059 <synopsis>Send Advice-of-Charge messages</synopsis>
2060 </configOption>
2061 <configOption name="suppress_moh_on_sendonly" default="no">
2062 <since>
2063 <version>20.11.0</version>
2064 <version>21.6.0</version>
2065 <version>22.1.0</version>
2066 </since>
2067 <synopsis>Suppress playing MOH to party A if party B sends
2068 "sendonly" or "inactive" in an SDP</synopsis>
2069 <description><para>
2070 Normally, when one party in a call sends Asterisk an SDP with a "sendonly"
2071 or "inactive" attribute it means "hold" and causes Asterisk to start
2072 playing MOH back to the other party. This can be problematic if it happens at
2073 certain times, such as in a 183 Progress message, because the MOH will
2074 replace any early media you may be playing to the calling party. If you set
2075 this option to "yes" on an endpoint and the endpoint receives an SDP
2076 with "sendonly" or "inactive", Asterisk will NOT play MOH back to the other
2077 party.
2078 </para>
2079 <note><para>
2080 This doesn't just apply to 183 responses. MOH will be suppressed when
2081 the attribute appears in any SDP received including INVITEs, re-INVITES,
2082 and other responses.
2083 </para>
2084 </note>
2085 </description>
2086 </configOption>
2087 </configObject>
2088 <configObject name="auth">
2089 <since>
2090 <version>12.0.0</version>
2091 </since>
2092 <!--
2093 Be sure to update the following documentation page when making changes to this object:
2094 https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/PJSIP-Authentication
2095 -->
2096 <synopsis>Authentication type</synopsis>
2097 <description><para>
2098 Authentication objects hold the authentication information for use
2099 by other objects such as <literal>endpoints</literal> or <literal>registrations</literal>.
2100 This also allows for multiple objects to use a single auth object. See
2101 the <literal>auth_type</literal> config option for security mechanism choices.
2102 </para>
2103 <note><para>
2104 See the link below for detailed discussion of this object especially concerning
2105 realms and digest hash algorithms.
2106 </para>
2107 <para>
2108 https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/PJSIP-Authentication
2109 </para>
2110 </note>
2111 </description>
2112 <see-also>
2113 <ref type="link">https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/PJSIP-Authentication</ref>
2114 </see-also>
2115 <configOption name="auth_type" default="digest">
2116 <since>
2117 <version>12.0.0</version>
2118 </since>
2119 <synopsis>Authentication type</synopsis>
2120 <description><para>
2121 If set to <literal>google_oauth</literal> then we'll read from the
2122 refresh_token/oauth_clientid/oauth_secret parameters.
2123 If set to <literal>digest</literal> then we'll read from the
2124 <literal>password</literal> and/or <literal>password_digest</literal>
2125 parameters. The older <literal>md5</literal> and <literal>userpass</literal>
2126 values are deprecated and converted to <literal>digest</literal>.
2127 </para>
2128 <enumlist>
2129 <enum name="userpass"><para>Deprecated. Use <literal>digest</literal>.</para></enum>
2130 <enum name="md5"><para>Deprecated. Use <literal>digest</literal>.</para></enum>
2131 <enum name="google_oauth"><para>If selected, the <literal>refresh_token</literal>,
2132 <literal>oauth_clientid</literal> and <literal>oauth_secret</literal>
2133 parameters must be provided.</para></enum>
2134 <enum name="digest"><para>If selected, the <literal>password</literal>
2135 and/or one or more <literal>password_digest</literal>
2136 parameters must be provided.</para></enum>
2137 </enumlist>
2138 <para>
2139 </para>
2140 </description>
2141 </configOption>
2142 <configOption name="username">
2143 <since>
2144 <version>12.0.0</version>
2145 </since>
2146 <synopsis>Username to use for account</synopsis>
2147 </configOption>
2148 <configOption name="password">
2149 <since>
2150 <version>12.0.0</version>
2151 </since>
2152 <synopsis>Plain text password used for authentication.</synopsis>
2153 <description><para>Only used when auth_type is <literal>digest</literal>.</para></description>
2154 </configOption>
2155 <configOption name="password_digest" default="">
2156 <since>
2157 <version>20.12.0</version>
2158 <version>21.7.0</version>
2159 <version>22.2.0</version>
2160 </since>
2161 <synopsis>One or more pre-computed hashes used for authentication.</synopsis>
2162 <description><para>Only used when auth_type is <literal>digest</literal>.
2163 As an alternative to specifying a plain text password,
2164 you can specify one or more pre-computed digests separated by
2165 commas.
2166 </para>
2167 <para>
2168 <literal>password_digest= &lt;digest-spec&gt;[,&lt;digest_spec&gt;]...</literal>
2169 </para>
2170 <enumlist>
2171 <enum name="&lt;digest-spec&gt;"><para>&lt;hash-algorithm&gt;:&lt;hashed-credential&gt;</para></enum>
2172 <enum name="&lt;hash-algorithm&gt;"><para>One of the supported hash algorithms
2173 which currently are</para>
2174 <enumlist>
2175 <enum name="MD5"><para>Supported by all versions of OpenSSL and pjproject</para></enum>
2176 <enum name="SHA-256"><para>Supported by OpenSSL versions &gt;> 1.0.0 and pjproject versions &gt;= 2.15.1</para></enum>
2177 <enum name="SHA-512-256"><para>Supported by OpenSSL versions &gt;= 1.1.1 and pjproject versions &gt;= 2.15.1</para></enum>
2178 </enumlist>
2179 <para>You can see the current list by running the CLI command
2180 <literal>pjproject show buildopts</literal>.
2181 </para></enum>
2182 <enum name="&lt;hashed-credential&gt;">
2183 <para>The result of passing the following string through
2184 the selected hash algorithm:
2185 <literal>&lt;username&gt;:&lt;realm&gt;:&lt;password&gt;</literal>
2186 </para>
2187 </enum>
2188 </enumlist>
2189 <para>You can create the hash by piping the string into the appropriate
2190 hash/checksum program. See the description for the <literal>realm</literal>
2191 parameter for info on how to set it.</para>
2192 <example>
2193 $ echo -n "myname:myrealm:mypassword" | openssl dgst -md5
2194 MD5(stdin)= dce9ccd0a69e3ef90d8b9bf725053e78
2195 </example>
2196 <para>You would then set:</para>
2197 <example>
2198 password_digest = md5:dce9ccd0a69e3ef90d8b9bf725053e78
2199 </example>
2200 </description>
2201 </configOption>
2202 <configOption name="md5_cred" default="">
2203 <since>
2204 <version>12.0.0</version>
2205 </since>
2206 <synopsis>MD5 Hash used for authentication. (deprecated)</synopsis>
2207 <description><para>Use the <literal>password_digest</literal> parameter instead.
2208 If supplied, a <literal>password_digest</literal> parameter will be created
2209 for it.
2210 </para></description>
2211 </configOption>
2212 <configOption name="supported_algorithms_uac">
2213 <since>
2214 <version>20.12.0</version>
2215 <version>21.7.0</version>
2216 <version>22.2.0</version>
2217 </since>
2218 <synopsis>Comma separated list of algorithms to support when this auth is used as a UAC</synopsis>
2219 <description><para>Valid values:</para>
2220 <enumlist>
2221 <enum name="md5"><para>Supported by all versions of OpenSSL and pjproject</para></enum>
2222 <enum name="sha-256"><para>Supported by all versions of OpenSSL but only pjproject versions &gt; 2.14.1</para></enum>
2223 <enum name="sha-512-256"><para>Supported by OpenSSL versions &gt;= 1.1.1 and pjproject versions &gt; 2.14.1</para></enum>
2224 </enumlist>
2225 <para>
2226 The default may be specified by the
2227 <literal>default_auth_algorithms_uac</literal> parameter in
2228 the global object. If that's not specified, the default is "MD5".
2229 </para>
2230 </description>
2231 </configOption>
2232 <configOption name="supported_algorithms_uas">
2233 <since>
2234 <version>20.12.0</version>
2235 <version>21.7.0</version>
2236 <version>22.2.0</version>
2237 </since>
2238 <synopsis>Comma separated list of algorithms to support when this auth is used as a UAS</synopsis>
2239 <description><para>Valid values:</para>
2240 <enumlist>
2241 <enum name="md5"><para>Supported by all versions of OpenSSL and pjproject</para></enum>
2242 <enum name="sha-256"><para>Supported by all versions of OpenSSL but only pjproject versions &gt; 2.14.1</para></enum>
2243 <enum name="sha-512-256"><para>Supported by OpenSSL versions &gt;= 1.1.1 and pjproject versions &gt; 2.14.1</para></enum>
2244 </enumlist>
2245 <para>
2246 The default may be specified by the
2247 <literal>default_auth_algorithms_uas</literal> parameter in
2248 the global object. If that's not specified, the default is "MD5".
2249 </para>
2250 </description>
2251 </configOption>
2252 <configOption name="refresh_token">
2253 <since>
2254 <version>17.0.0</version>
2255 </since>
2256 <synopsis>OAuth 2.0 refresh token</synopsis>
2257 </configOption>
2258 <configOption name="oauth_clientid">
2259 <since>
2260 <version>17.0.0</version>
2261 </since>
2262 <synopsis>OAuth 2.0 application's client id</synopsis>
2263 </configOption>
2264 <configOption name="oauth_secret">
2265 <since>
2266 <version>17.0.0</version>
2267 </since>
2268 <synopsis>OAuth 2.0 application's secret</synopsis>
2269 </configOption>
2270 <configOption name="realm" default="">
2271 <since>
2272 <version>12.0.0</version>
2273 </since>
2274 <synopsis>SIP realm for endpoint</synopsis>
2275 <description><para>
2276 For incoming authentication (asterisk is the UAS),
2277 this is the realm to be sent on WWW-Authenticate
2278 headers. If not specified, the <replaceable>global</replaceable>
2279 object's <variable>default_realm</variable> will be used.
2280 </para>
2281 <para>
2282 </para>
2283 <para>
2284 For outgoing authentication (asterisk is the UAC), this
2285 must either be the realm the server is expected to send,
2286 or left blank or contain a single '*' to automatically
2287 use the realm sent by the server. If you have multiple
2288 auth objects for an endpoint, the realm is also used to
2289 match the auth object to the realm the server sent.
2290 </para>
2291 <para>
2292 </para>
2293 <note>
2294 <para>
2295 Using the same auth section for inbound and outbound
2296 authentication is not recommended. There is a difference in
2297 meaning for an empty realm setting between inbound and outbound
2298 authentication uses.
2299 </para>
2300 </note>
2301 <para>
2302 </para>
2303 <note>
2304 <para>
2305 If more than one auth object with the same realm or
2306 more than one wildcard auth object is associated to
2307 an endpoint, only the first one of each defined on
2308 the endpoint will be used.
2309 </para>
2310 </note>
2311 </description>
2312 </configOption>
2313 <configOption name="nonce_lifetime" default="32">
2314 <since>
2315 <version>12.0.0</version>
2316 </since>
2317 <synopsis>Lifetime of a nonce associated with this authentication config.</synopsis>
2318 </configOption>
2319 <configOption name="type">
2320 <since>
2321 <version>12.0.0</version>
2322 </since>
2323 <synopsis>Must be 'auth'</synopsis>
2324 </configOption>
2325 </configObject>
2326 <configObject name="domain_alias">
2327 <since>
2328 <version>13.20.0</version>
2329 <version>15.3.0</version>
2330 </since>
2331 <synopsis>Domain Alias</synopsis>
2332 <description><para>
2333 Signifies that a domain is an alias. If the domain on a session is
2334 not found to match an AoR then this object is used to see if we have
2335 an alias for the AoR to which the endpoint is binding. This objects
2336 name as defined in configuration should be the domain alias and a
2337 config option is provided to specify the domain to be aliased.
2338 </para></description>
2339 <configOption name="type">
2340 <since>
2341 <version>12.0.0</version>
2342 </since>
2343 <synopsis>Must be of type 'domain_alias'.</synopsis>
2344 </configOption>
2345 <configOption name="domain">
2346 <since>
2347 <version>12.0.0</version>
2348 </since>
2349 <synopsis>Domain to be aliased</synopsis>
2350 </configOption>
2351 </configObject>
2352 <configObject name="transport">
2353 <since>
2354 <version>13.8.0</version>
2355 </since>
2356 <synopsis>SIP Transport</synopsis>
2357 <description><para>
2358 <emphasis>Transports</emphasis>
2359 </para>
2360 <para>There are different transports and protocol derivatives
2361 supported by <literal>res_pjsip</literal>. They are in order of
2362 preference: UDP, TCP, and WebSocket (WS).</para>
2363 <note><para>Changes to transport configuration in pjsip.conf will only be
2364 effected on a complete restart of Asterisk. A module reload
2365 will not suffice.</para></note>
2366 </description>
2367 <configOption name="async_operations" default="1">
2368 <since>
2369 <version>12.0.0</version>
2370 </since>
2371 <synopsis>Number of simultaneous Asynchronous Operations, can no longer be set, always set to 1</synopsis>
2372 </configOption>
2373 <configOption name="bind">
2374 <since>
2375 <version>12.2.0</version>
2376 </since>
2377 <synopsis>IP Address and optional port to bind to for this transport</synopsis>
2378 </configOption>
2379 <configOption name="ca_list_file">
2380 <since>
2381 <version>13.8.0</version>
2382 </since>
2383 <synopsis>File containing a list of certificates to read (TLS ONLY, not WSS)</synopsis>
2384 </configOption>
2385 <configOption name="ca_list_path">
2386 <since>
2387 <version>13.8.0</version>
2388 </since>
2389 <synopsis>Path to directory containing a list of certificates to read (TLS ONLY, not WSS)</synopsis>
2390 </configOption>
2391 <configOption name="cert_file">
2392 <since>
2393 <version>13.8.0</version>
2394 </since>
2395 <synopsis>Certificate file for endpoint (TLS ONLY, not WSS)</synopsis>
2396 <description><para>
2397 A path to a .crt or .pem file can be provided. However, only
2398 the certificate is read from the file, not the private key.
2399 The <literal>priv_key_file</literal> option must supply a
2400 matching key file. The certificate file can be reloaded if
2401 the filename in configuration remains unchanged.
2402 </para></description>
2403 </configOption>
2404 <configOption name="cipher">
2405 <since>
2406 <version>12.2.0</version>
2407 </since>
2408 <synopsis>Preferred cryptography cipher names (TLS ONLY, not WSS)</synopsis>
2409 <description>
2410 <para>Comma separated list of cipher names or numeric equivalents.
2411 Numeric equivalents can be either decimal or hexadecimal (0xX).
2412 </para>
2413 <para>There are many cipher names. Use the CLI command
2414 <literal>pjsip list ciphers</literal> to see a list of cipher
2415 names available for your installation. See link for more:</para>
2416 <para>http://www.openssl.org/docs/apps/ciphers.html#CIPHER_SUITE_NAMES
2417 </para>
2418 </description>
2419 </configOption>
2420 <configOption name="domain">
2421 <since>
2422 <version>12.0.0</version>
2423 </since>
2424 <synopsis>Domain the transport comes from</synopsis>
2425 </configOption>
2426 <configOption name="external_media_address">
2427 <since>
2428 <version>12.0.0</version>
2429 </since>
2430 <synopsis>External IP address to use in RTP handling</synopsis>
2431 <description><para>
2432 When a request or response is sent out, if the destination of the
2433 message is outside the IP network defined in the option <literal>localnet</literal>,
2434 and the media address in the SDP is within the localnet network, then the
2435 media address in the SDP will be rewritten to the value defined for
2436 <literal>external_media_address</literal>.
2437 </para></description>
2438 </configOption>
2439 <configOption name="external_signaling_address">
2440 <since>
2441 <version>12.0.0</version>
2442 </since>
2443 <synopsis>External address for SIP signalling</synopsis>
2444 </configOption>
2445 <configOption name="external_signaling_port" default="0">
2446 <since>
2447 <version>12.0.0</version>
2448 </since>
2449 <synopsis>External port for SIP signalling</synopsis>
2450 </configOption>
2451 <configOption name="method">
2452 <since>
2453 <version>12.2.0</version>
2454 </since>
2455 <synopsis>Method of SSL transport (TLS ONLY, not WSS)</synopsis>
2456 <description>
2457 <para>The availability of each of these options is dependent on the
2458 version and configuration of the underlying PJSIP library.</para>
2459 <enumlist>
2460 <enum name="default">
2461 <para>The default as defined by PJSIP. This is currently TLSv1, but may change with future releases.</para>
2462 </enum>
2463 <enum name="unspecified">
2464 <para>This option is equivalent to setting 'default'</para>
2465 </enum>
2466 <enum name="tlsv1" />
2467 <enum name="tlsv1_1" />
2468 <enum name="tlsv1_2" />
2469 <enum name="tlsv1_3" />
2470 <enum name="sslv2" />
2471 <enum name="sslv3" />
2472 <enum name="sslv23" />
2473 </enumlist>
2474 </description>
2475 </configOption>
2476 <configOption name="local_net">
2477 <since>
2478 <version>12.2.0</version>
2479 </since>
2480 <synopsis>Network to consider local (used for NAT purposes).</synopsis>
2481 <description><para>This must be in CIDR or dotted decimal format with the IP
2482 and mask separated with a slash ('/').</para></description>
2483 </configOption>
2484 <configOption name="password">
2485 <since>
2486 <version>12.0.0</version>
2487 </since>
2488 <synopsis>Password required for transport</synopsis>
2489 </configOption>
2490 <configOption name="priv_key_file">
2491 <since>
2492 <version>13.8.0</version>
2493 </since>
2494 <synopsis>Private key file (TLS ONLY, not WSS)</synopsis>
2495 <description><para>
2496 A path to a key file can be provided. The private key file
2497 can be reloaded if the filename in configuration remains
2498 unchanged.
2499 </para></description>
2500 </configOption>
2501 <configOption name="protocol" default="udp">
2502 <since>
2503 <version>12.2.0</version>
2504 </since>
2505 <synopsis>Protocol to use for SIP traffic</synopsis>
2506 <description>
2507 <enumlist>
2508 <enum name="udp" />
2509 <enum name="tcp" />
2510 <enum name="tls" />
2511 <enum name="ws" />
2512 <enum name="wss" />
2513 <enum name="flow" />
2514 </enumlist>
2515 </description>
2516 </configOption>
2517 <configOption name="require_client_cert" default="false">
2518 <since>
2519 <version>12.2.0</version>
2520 </since>
2521 <synopsis>Require client certificate (TLS ONLY, not WSS)</synopsis>
2522 </configOption>
2523 <configOption name="tcp_keepalive_enable" default="no">
2524 <since>
2525 <version>18.23.0</version>
2526 <version>20.8.0</version>
2527 <version>21.3.0</version>
2528 </since>
2529 <synopsis>Enable TCP keepalive</synopsis>
2530 <description><para>
2531 When set to 'yes', TCP keepalive messages are sent to verify that the endpoint is still reachable. This can help detect dead TCP connections in environments where connections may be silently dropped (e.g., NAT timeouts).
2532 </para></description>
2533 </configOption>
2534 <configOption name="tcp_keepalive_idle_time" default="30">
2535 <since>
2536 <version>18.23.0</version>
2537 <version>20.8.0</version>
2538 <version>21.3.0</version>
2539 </since>
2540 <synopsis>Idle time before the first TCP keepalive probe is sent</synopsis>
2541 <description><para>
2542 Specifies the amount of time in seconds that the connection must be idle before the first TCP keepalive probe is sent. An idle connection is defined as a connection in which no data has been sent or received by the application.
2543 </para></description>
2544 </configOption>
2545 <configOption name="tcp_keepalive_interval_time" default="10">
2546 <since>
2547 <version>18.23.0</version>
2548 <version>20.8.0</version>
2549 <version>21.3.0</version>
2550 </since>
2551 <synopsis>Interval between TCP keepalive probes</synopsis>
2552 <description><para>
2553 Specifies the interval in seconds between individual TCP keepalive probes, once the first probe is sent. This interval is used for subsequent probes if the peer does not respond to the previous probe.
2554 </para></description>
2555 </configOption>
2556 <configOption name="tcp_keepalive_probe_count" default="5">
2557 <since>
2558 <version>18.23.0</version>
2559 <version>20.8.0</version>
2560 <version>21.3.0</version>
2561 </since>
2562 <synopsis>Maximum number of TCP keepalive probes</synopsis>
2563 <description><para>
2564 Specifies the maximum number of TCP keepalive probes to send before considering the connection dead and notifying the application. If the peer does not respond after this many probes, the connection is considered broken.
2565 </para></description>
2566 </configOption>
2567 <configOption name="type">
2568 <since>
2569 <version>13.8.0</version>
2570 </since>
2571 <synopsis>Must be of type 'transport'.</synopsis>
2572 </configOption>
2573 <configOption name="verify_client" default="false">
2574 <since>
2575 <version>12.2.0</version>
2576 </since>
2577 <synopsis>Require verification of client certificate (TLS ONLY, not WSS)</synopsis>
2578 </configOption>
2579 <configOption name="verify_server" default="false">
2580 <since>
2581 <version>12.2.0</version>
2582 </since>
2583 <synopsis>Require verification of server certificate (TLS ONLY, not WSS)</synopsis>
2584 </configOption>
2585 <configOption name="tos" default="false">
2586 <since>
2587 <version>12.2.0</version>
2588 </since>
2589 <synopsis>Enable TOS for the signalling sent over this transport</synopsis>
2590 <description>
2591 <para>See <literal>https://docs.asterisk.org/Configuration/Channel-Drivers/IP-Quality-of-Service</literal>
2592 for more information on this parameter.</para>
2593 <note><para>This option does not apply to the <replaceable>ws</replaceable>
2594 or the <replaceable>wss</replaceable> protocols.</para></note>
2595 </description>
2596 </configOption>
2597 <configOption name="cos" default="false">
2598 <since>
2599 <version>12.0.0</version>
2600 </since>
2601 <synopsis>Enable COS for the signalling sent over this transport</synopsis>
2602 <description>
2603 <para>See <literal>https://docs.asterisk.org/Configuration/Channel-Drivers/IP-Quality-of-Service</literal>
2604 for more information on this parameter.</para>
2605 <note><para>This option does not apply to the <replaceable>ws</replaceable>
2606 or the <replaceable>wss</replaceable> protocols.</para></note>
2607 </description>
2608 </configOption>
2609 <configOption name="websocket_write_timeout" default="100">
2610 <since>
2611 <version>11.11.0</version>
2612 <version>12.4.0</version>
2613 </since>
2614 <synopsis>The timeout (in milliseconds) to set on WebSocket connections.</synopsis>
2615 <description>
2616 <para>If a websocket connection accepts input slowly, the timeout
2617 for writes to it can be increased to keep it from being disconnected.
2618 Value is in milliseconds.</para>
2619 </description>
2620 </configOption>
2621 <configOption name="allow_reload" default="no">
2622 <since>
2623 <version>13.8.0</version>
2624 </since>
2625 <synopsis>Allow this transport to be reloaded.</synopsis>
2626 <description>
2627 <para>Allow this transport to be reloaded when res_pjsip is reloaded.
2628 This option defaults to "no" because reloading a transport may disrupt
2629 in-progress calls.</para>
2630 </description>
2631 </configOption>
2632 <configOption name="allow_wildcard_certs" default="false">
2633 <since>
2634 <version>16.28.0</version>
2635 <version>18.14.0</version>
2636 <version>19.6.0</version>
2637 </since>
2638 <synopsis>Allow use of wildcards in certificates (TLS ONLY)</synopsis>
2639 <description>
2640 <para>In combination with verify_server, when enabled allow use of wildcards,
2641 i.e. '*.' in certs for common,and subject alt names of type DNS for TLS
2642 transport types. Names must start with the wildcard. Partial wildcards, e.g.
2643 'f*.example.com' and 'foo.*.com' are not allowed. As well, names only match
2644 against a single level meaning '*.example.com' matches 'foo.example.com',
2645 but not 'foo.bar.example.com'.
2646 </para>
2647 </description>
2648 </configOption>
2649 <configOption name="symmetric_transport" default="no">
2650 <since>
2651 <version>13.15.0</version>
2652 <version>14.4.0</version>
2653 </since>
2654 <synopsis>Use the same transport for outgoing requests as incoming ones.</synopsis>
2655 <description>
2656 <para>When a request from a dynamic contact
2657 comes in on a transport with this option set to 'yes',
2658 the transport name will be saved and used for subsequent
2659 outgoing requests like OPTIONS, NOTIFY and INVITE. It's
2660 saved as a contact uri parameter named 'x-ast-txp' and will
2661 display with the contact uri in CLI, AMI, and ARI output.
2662 On the outgoing request, if a transport wasn't explicitly
2663 set on the endpoint AND the request URI is not a hostname,
2664 the saved transport will be used and the 'x-ast-txp'
2665 parameter stripped from the outgoing packet.
2666 </para>
2667 </description>
2668 </configOption>
2669 </configObject>
2670 <configObject name="contact">
2671 <synopsis>A way of creating an aliased name to a SIP URI</synopsis>
2672 <description><para>
2673 Contacts are a way to hide SIP URIs from the dialplan directly.
2674 They are also used to make a group of contactable parties when
2675 in use with <literal>AoR</literal> lists.
2676 </para></description>
2677 <configOption name="type">
2678 <synopsis>Must be of type 'contact'.</synopsis>
2679 </configOption>
2680 <configOption name="uri">
2681 <synopsis>SIP URI to contact peer</synopsis>
2682 </configOption>
2683 <configOption name="expiration_time">
2684 <synopsis>Time to keep alive a contact</synopsis>
2685 <description><para>
2686 Time to keep alive a contact. String style specification.
2687 </para></description>
2688 </configOption>
2689 <configOption name="qualify_frequency" default="0">
2690 <synopsis>Interval at which to qualify a contact</synopsis>
2691 <description><para>
2692 Interval between attempts to qualify the contact for reachability.
2693 If <literal>0</literal> never qualify. Time in seconds.
2694 </para></description>
2695 </configOption>
2696 <configOption name="qualify_timeout" default="3.0">
2697 <synopsis>Timeout for qualify</synopsis>
2698 <description><para>
2699 If the contact doesn't respond to the OPTIONS request before the timeout,
2700 the contact is marked unavailable. This includes time spent performing
2701 any required DNS lookup(s) prior to sending the OPTIONS.
2702 If <literal>0</literal> no timeout. Time in fractional seconds.
2703 </para></description>
2704 </configOption>
2705 <configOption name="qualify_2xx_only">
2706 <synopsis>Only qualify contact if OPTIONS request returns 2XX</synopsis>
2707 <description>
2708 <para>If true only mark a contact as available if the qualify OPTIONS
2709 request receives a 2XX response.
2710 </para>
2711 </description>
2712 </configOption>
2713 <configOption name="authenticate_qualify">
2714 <synopsis>Authenticates a qualify challenge response if needed</synopsis>
2715 <description>
2716 <para>If true and a qualify request receives a challenge response then
2717 authentication is attempted before declaring the contact available.
2718 </para>
2719 <note><para>This option does nothing as we will always complete
2720 the challenge response authentication if the qualify request is
2721 challenged.
2722 </para></note>
2723 </description>
2724 </configOption>
2725 <configOption name="outbound_proxy">
2726 <synopsis>Outbound proxy used when sending OPTIONS request</synopsis>
2727 <description><para>
2728 If set the provided URI will be used as the outbound proxy when an
2729 OPTIONS request is sent to a contact for qualify purposes.
2730 </para></description>
2731 </configOption>
2732 <configOption name="path">
2733 <synopsis>Stored Path vector for use in Route headers on outgoing requests.</synopsis>
2734 </configOption>
2735 <configOption name="user_agent">
2736 <synopsis>User-Agent header from registration.</synopsis>
2737 <description><para>
2738 The User-Agent is automatically stored based on data present in incoming SIP
2739 REGISTER requests and is not intended to be configured manually.
2740 </para></description>
2741 </configOption>
2742 <configOption name="endpoint">
2743 <synopsis>Endpoint name</synopsis>
2744 <description><para>
2745 The name of the endpoint this contact belongs to
2746 </para></description>
2747 </configOption>
2748 <configOption name="reg_server">
2749 <synopsis>Asterisk Server name</synopsis>
2750 <description><para>
2751 Asterisk Server name on which SIP endpoint registered.
2752 </para></description>
2753 </configOption>
2754 <configOption name="via_addr">
2755 <synopsis>IP-address of the last Via header from registration.</synopsis>
2756 <description><para>
2757 The last Via header should contain the address of UA which sent the request.
2758 The IP-address of the last Via header is automatically stored based on data present
2759 in incoming SIP REGISTER requests and is not intended to be configured manually.
2760 </para></description>
2761 </configOption>
2762 <configOption name="via_port">
2763 <synopsis>IP-port of the last Via header from registration.</synopsis>
2764 <description><para>
2765 The IP-port of the last Via header is automatically stored based on data present
2766 in incoming SIP REGISTER requests and is not intended to be configured manually.
2767 </para></description>
2768 </configOption>
2769 <configOption name="call_id">
2770 <synopsis>Call-ID header from registration.</synopsis>
2771 <description><para>
2772 The Call-ID header is automatically stored based on data present
2773 in incoming SIP REGISTER requests and is not intended to be configured manually.
2774 </para></description>
2775 </configOption>
2776 <configOption name="prune_on_boot">
2777 <synopsis>A contact that cannot survive a restart/boot.</synopsis>
2778 <description><para>
2779 The option is set if the incoming SIP REGISTER contact is rewritten
2780 on a reliable transport and is not intended to be configured manually.
2781 </para></description>
2782 </configOption>
2783 </configObject>
2784 <configObject name="aor">
2785 <since>
2786 <version>13.35.0</version>
2787 <version>16.12.0</version>
2788 <version>17.6.0</version>
2789 </since>
2790 <synopsis>The configuration for a location of an endpoint</synopsis>
2791 <description><para>
2792 An AoR is what allows Asterisk to contact an endpoint via res_pjsip. If no
2793 AoRs are specified, an endpoint will not be reachable by Asterisk.
2794 Beyond that, an AoR has other uses within Asterisk, such as inbound
2795 registration.
2796 </para><para>
2797 An <literal>AoR</literal> is a way to allow dialing a group
2798 of <literal>Contacts</literal> that all use the same
2799 <literal>endpoint</literal> for calls.
2800 </para><para>
2801 This can be used as another way of grouping a list of contacts to dial
2802 rather than specifying them each directly when dialing via the dialplan.
2803 This must be used in conjunction with the <literal>PJSIP_DIAL_CONTACTS</literal>.
2804 </para><para>
2805 Registrations: For Asterisk to match an inbound registration to an endpoint,
2806 the AoR object name must match the user portion of the SIP URI in the "To:"
2807 header of the inbound SIP registration. That will usually be equivalent
2808 to the "user name" set in your hard or soft phones configuration.
2809 </para></description>
2810 <configOption name="contact">
2811 <since>
2812 <version>12.2.0</version>
2813 </since>
2814 <synopsis>Permanent contacts assigned to AoR</synopsis>
2815 <description><para>
2816 Contacts specified will be called whenever referenced
2817 by <literal>chan_pjsip</literal>.
2818 </para><para>
2819 Use a separate "contact=" entry for each contact required. Contacts
2820 are specified using a SIP URI.
2821 </para></description>
2822 </configOption>
2823 <configOption name="default_expiration" default="3600">
2824 <since>
2825 <version>12.0.0</version>
2826 </since>
2827 <synopsis>Default expiration time in seconds for contacts that are dynamically bound to an AoR.</synopsis>
2828 </configOption>
2829 <configOption name="mailboxes">
2830 <since>
2831 <version>12.0.0</version>
2832 </since>
2833 <synopsis>Allow subscriptions for the specified mailbox(es)</synopsis>
2834 <description><para>This option applies when an external entity subscribes to an AoR
2835 for Message Waiting Indications. The mailboxes specified will be subscribed to.
2836 More than one mailbox can be specified with a comma-delimited string.
2837 app_voicemail mailboxes must be specified as mailbox@context;
2838 for example: mailboxes=6001@default. For mailboxes provided by external sources,
2839 such as through the res_mwi_external module, you must specify strings supported by
2840 the external system.
2841 </para><para>
2842 For endpoints that cannot SUBSCRIBE for MWI, you can set the <literal>mailboxes</literal> option in your
2843 endpoint configuration section to enable unsolicited MWI NOTIFYs to the endpoint.
2844 </para></description>
2845 </configOption>
2846 <configOption name="voicemail_extension">
2847 <since>
2848 <version>13.9.0</version>
2849 </since>
2850 <synopsis>The voicemail extension to send in the NOTIFY Message-Account header</synopsis>
2851 </configOption>
2852 <configOption name="maximum_expiration" default="7200">
2853 <since>
2854 <version>12.0.0</version>
2855 </since>
2856 <synopsis>Maximum time to keep an AoR</synopsis>
2857 <description><para>
2858 Maximum time to keep a peer with explicit expiration. Time in seconds.
2859 </para></description>
2860 </configOption>
2861 <configOption name="max_contacts" default="0">
2862 <since>
2863 <version>12.0.0</version>
2864 </since>
2865 <synopsis>Maximum number of contacts that can bind to an AoR</synopsis>
2866 <description><para>
2867 Maximum number of contacts that can associate with this AoR. This value does
2868 not affect the number of contacts that can be added with the "contact" option.
2869 It only limits contacts added through external interaction, such as
2870 registration.
2871 </para>
2872 <note><para>The <replaceable>rewrite_contact</replaceable> option
2873 registers the source address as the contact address to help with
2874 NAT and reusing connection oriented transports such as TCP and
2875 TLS. Unfortunately, refreshing a registration may register a
2876 different contact address and exceed
2877 <replaceable>max_contacts</replaceable>. The
2878 <replaceable>remove_existing</replaceable> and
2879 <replaceable>remove_unavailable</replaceable> options can help by
2880 removing either the soonest to expire or unavailable contact(s) over
2881 <replaceable>max_contacts</replaceable> which is likely the
2882 old <replaceable>rewrite_contact</replaceable> contact source
2883 address being refreshed.
2884 </para></note>
2885 <note><para>This should be set to <literal>1</literal> and
2886 <replaceable>remove_existing</replaceable> set to <literal>yes</literal> if you
2887 wish to stick with the older <literal>chan_sip</literal> behaviour.
2888 </para></note>
2889 </description>
2890 </configOption>
2891 <configOption name="minimum_expiration" default="60">
2892 <since>
2893 <version>12.0.0</version>
2894 </since>
2895 <synopsis>Minimum keep alive time for an AoR</synopsis>
2896 <description><para>
2897 Minimum time to keep a peer with an explicit expiration. Time in seconds.
2898 </para></description>
2899 </configOption>
2900 <configOption name="remove_existing" default="no">
2901 <since>
2902 <version>12.0.0</version>
2903 </since>
2904 <synopsis>Determines whether new contacts replace existing ones.</synopsis>
2905 <description><para>
2906 On receiving a new registration to the AoR should it remove enough
2907 existing contacts not added or updated by the registration to
2908 satisfy <replaceable>max_contacts</replaceable>? Any removed
2909 contacts will expire the soonest.
2910 </para>
2911 <note><para>The <replaceable>rewrite_contact</replaceable> option
2912 registers the source address as the contact address to help with
2913 NAT and reusing connection oriented transports such as TCP and
2914 TLS. Unfortunately, refreshing a registration may register a
2915 different contact address and exceed
2916 <replaceable>max_contacts</replaceable>. The
2917 <replaceable>remove_existing</replaceable> option can help by
2918 removing the soonest to expire contact(s) over
2919 <replaceable>max_contacts</replaceable> which is likely the
2920 old <replaceable>rewrite_contact</replaceable> contact source
2921 address being refreshed.
2922 </para></note>
2923 <note><para>This should be set to <literal>yes</literal> and
2924 <replaceable>max_contacts</replaceable> set to <literal>1</literal> if you
2925 wish to stick with the older <literal>chan_sip</literal> behaviour.
2926 </para></note>
2927 </description>
2928 </configOption>
2929 <configOption name="remove_unavailable" default="no">
2930 <since>
2931 <version>16.22.0</version>
2932 <version>18.8.0</version>
2933 </since>
2934 <synopsis>Determines whether new contacts should replace unavailable ones.</synopsis>
2935 <description><para>
2936 The effect of this setting depends on the setting of
2937 <replaceable>remove_existing</replaceable>.</para>
2938 <para>If <replaceable>remove_existing</replaceable> is set to
2939 <literal>no</literal> (default), setting remove_unavailable to
2940 <literal>yes</literal> will remove only unavailable contacts that exceed
2941 <replaceable>max_contacts</replaceable> to allow an incoming
2942 REGISTER to complete sucessfully.</para>
2943 <para>If <replaceable>remove_existing</replaceable> is set to
2944 <literal>yes</literal>, setting remove_unavailable to
2945 <literal>yes</literal> will prioritize unavailable contacts for removal
2946 instead of just removing the contact that expires the soonest.</para>
2947 <note><para>See <replaceable>remove_existing</replaceable> and
2948 <replaceable>max_contacts</replaceable> for further information about how
2949 these 3 settings interact.
2950 </para></note>
2951 </description>
2952 </configOption>
2953 <configOption name="type">
2954 <since>
2955 <version>12.0.0</version>
2956 </since>
2957 <synopsis>Must be of type 'aor'.</synopsis>
2958 </configOption>
2959 <configOption name="qualify_frequency" default="0">
2960 <since>
2961 <version>12.0.0</version>
2962 </since>
2963 <synopsis>Interval at which to qualify an AoR</synopsis>
2964 <description><para>
2965 Interval between attempts to qualify the AoR for reachability.
2966 If <literal>0</literal> never qualify. Time in seconds.
2967 </para></description>
2968 </configOption>
2969 <configOption name="qualify_timeout" default="3.0">
2970 <since>
2971 <version>13.4.0</version>
2972 </since>
2973 <synopsis>Timeout for qualify</synopsis>
2974 <description><para>
2975 If the contact doesn't respond to the OPTIONS request before the timeout,
2976 the contact is marked unavailable. This includes time spent performing
2977 any required DNS lookup(s) prior to sending the OPTIONS.
2978 If <literal>0</literal> no timeout. Time in fractional seconds.
2979 </para></description>
2980 </configOption>
2981 <configOption name="qualify_2xx_only">
2982 <since>
2983 <version>20.12.0</version>
2984 <version>21.7.0</version>
2985 <version>22.2.0</version>
2986 </since>
2987 <synopsis>Only qualify contact if OPTIONS request returns 2XX</synopsis>
2988 <description>
2989 <para>If true only mark a contact as available if the qualify OPTIONS
2990 request receives a 2XX response.
2991 </para>
2992 </description>
2993 </configOption>
2994 <configOption name="authenticate_qualify">
2995 <since>
2996 <version>12.0.0</version>
2997 </since>
2998 <synopsis>Authenticates a qualify challenge response if needed</synopsis>
2999 <description>
3000 <para>If true and a qualify request receives a challenge response then
3001 authentication is attempted before declaring the contact available.
3002 </para>
3003 <note><para>This option does nothing as we will always complete
3004 the challenge response authentication if the qualify request is
3005 challenged.
3006 </para></note>
3007 </description>
3008 </configOption>
3009 <configOption name="outbound_proxy">
3010 <since>
3011 <version>12.0.0</version>
3012 </since>
3013 <synopsis>Outbound proxy used when sending OPTIONS request</synopsis>
3014 <description><para>
3015 If set the provided URI will be used as the outbound proxy when an
3016 OPTIONS request is sent to a contact for qualify purposes.
3017 </para></description>
3018 </configOption>
3019 <configOption name="support_path">
3020 <since>
3021 <version>12.1.0</version>
3022 </since>
3023 <synopsis>Enables Path support for REGISTER requests and Route support for other requests.</synopsis>
3024 <description><para>
3025 When this option is enabled, the Path headers in register requests will be saved
3026 and its contents will be used in Route headers for outbound out-of-dialog requests
3027 and in Path headers for outbound 200 responses. Path support will also be indicated
3028 in the Supported header.
3029 </para></description>
3030 </configOption>
3031 </configObject>
3032 <configObject name="system">
3033 <since>
3034 <version>12.2.0</version>
3035 </since>
3036 <synopsis>Options that apply to the SIP stack as well as other system-wide settings</synopsis>
3037 <description><para>
3038 The settings in this section are global. In addition to being global, the values will
3039 not be re-evaluated when a reload is performed. This is because the values must be set
3040 before the SIP stack is initialized. The only way to reset these values is to either
3041 restart Asterisk, or unload res_pjsip.so and then load it again.
3042 </para></description>
3043 <configOption name="timer_t1" default="500">
3044 <since>
3045 <version>12.0.0</version>
3046 </since>
3047 <synopsis>Set transaction timer T1 value (milliseconds).</synopsis>
3048 <description><para>
3049 Timer T1 is the base for determining how long to wait before retransmitting
3050 requests that receive no response when using an unreliable transport (e.g. UDP).
3051 For more information on this timer, see RFC 3261, Section 17.1.1.1.
3052 </para></description>
3053 </configOption>
3054 <configOption name="timer_b" default="32000">
3055 <since>
3056 <version>12.0.0</version>
3057 </since>
3058 <synopsis>Set transaction timer B value (milliseconds).</synopsis>
3059 <description><para>
3060 Timer B determines the maximum amount of time to wait after sending an INVITE
3061 request before terminating the transaction. It is recommended that this be set
3062 to 64 * Timer T1, but it may be set higher if desired. For more information on
3063 this timer, see RFC 3261, Section 17.1.1.1.
3064 </para></description>
3065 </configOption>
3066 <configOption name="compact_headers" default="no">
3067 <since>
3068 <version>12.0.0</version>
3069 </since>
3070 <synopsis>Use the short forms of common SIP header names.</synopsis>
3071 </configOption>
3072 <configOption name="taskpool_minimum_size" default="4">
3073 <since>
3074 <version>23.2.0</version>
3075 <version>22.8.0</version>
3076 <version>20.18.0</version>
3077 </since>
3078 <synopsis>Minimum number of taskprocessors in the res_pjsip taskpool.</synopsis>
3079 </configOption>
3080 <configOption name="taskpool_initial_size" default="4">
3081 <since>
3082 <version>23.2.0</version>
3083 <version>22.8.0</version>
3084 <version>20.18.0</version>
3085 </since>
3086 <synopsis>Initial number of taskprocessors in the res_pjsip taskpool.</synopsis>
3087 </configOption>
3088 <configOption name="taskpool_auto_increment" default="1">
3089 <since>
3090 <version>23.2.0</version>
3091 <version>22.8.0</version>
3092 <version>20.18.0</version>
3093 </since>
3094 <synopsis>The amount by which the number of taskprocessors is incremented when necessary.</synopsis>
3095 </configOption>
3096 <configOption name="taskpool_idle_timeout" default="60">
3097 <since>
3098 <version>23.2.0</version>
3099 <version>22.8.0</version>
3100 <version>20.18.0</version>
3101 </since>
3102 <synopsis>Number of seconds before an idle taskprocessor should be disposed of.</synopsis>
3103 </configOption>
3104 <configOption name="taskpool_max_size" default="50">
3105 <since>
3106 <version>23.2.0</version>
3107 <version>22.8.0</version>
3108 <version>20.18.0</version>
3109 </since>
3110 <synopsis>Maximum number of taskprocessors in the res_pjsip taskpool.
3111 A value of 0 indicates no maximum.</synopsis>
3112 </configOption>
3113 <configOption name="threadpool_initial_size" default="4">
3114 <since>
3115 <version>12.0.0</version>
3116 </since>
3117 <synopsis>Initial number of threads in the res_pjsip taskpool.
3118 Deprecated in favor of taskpool_initial_size.</synopsis>
3119 </configOption>
3120 <configOption name="threadpool_auto_increment" default="1">
3121 <since>
3122 <version>12.0.0</version>
3123 </since>
3124 <synopsis>The amount by which the number of threads is incremented when necessary.
3125 Deprecated in favor of taskpool_auto_increment.</synopsis>
3126 </configOption>
3127 <configOption name="threadpool_idle_timeout" default="60">
3128 <since>
3129 <version>12.0.0</version>
3130 </since>
3131 <synopsis>Number of seconds before an idle taskprocessor should be disposed of.
3132 Deprecated in favor of taskpool_idle_timeout.</synopsis>
3133 </configOption>
3134 <configOption name="threadpool_max_size" default="50">
3135 <since>
3136 <version>13.7.0</version>
3137 </since>
3138 <synopsis>Maximum number of taskprocessors in the res_pjsip taskpool.
3139 A value of 0 indicates no maximum.
3140 Deprecated in favor of taskpool_max_size.</synopsis>
3141 </configOption>
3142 <configOption name="disable_tcp_switch" default="yes">
3143 <since>
3144 <version>13.1.0</version>
3145 </since>
3146 <synopsis>Disable automatic switching from UDP to TCP transports.</synopsis>
3147 <description><para>
3148 Disable automatic switching from UDP to TCP transports if outgoing
3149 request is too large. See RFC 3261 section 18.1.1.
3150 </para></description>
3151 </configOption>
3152 <configOption name="follow_early_media_fork">
3153 <since>
3154 <version>13.22.0</version>
3155 <version>15.5.0</version>
3156 </since>
3157 <synopsis>Follow SDP forked media when To tag is different</synopsis>
3158 <description><para>
3159 On outgoing calls, if the UAS responds with different SDP attributes
3160 on subsequent 18X or 2XX responses (such as a port update) AND the
3161 To tag on the subsequent response is different than that on the previous
3162 one, follow it.
3163 </para>
3164 <note><para>
3165 This option must also be enabled on endpoints that require
3166 this functionality.
3167 </para></note>
3168 </description>
3169 </configOption>
3170 <configOption name="accept_multiple_sdp_answers">
3171 <since>
3172 <version>13.22.0</version>
3173 <version>15.5.0</version>
3174 </since>
3175 <synopsis>Follow SDP forked media when To tag is the same</synopsis>
3176 <description><para>
3177 On outgoing calls, if the UAS responds with different SDP attributes
3178 on non-100rel 18X or 2XX responses (such as a port update) AND the
3179 To tag on the subsequent response is the same as that on the previous one,
3180 process the updated SDP.
3181 </para>
3182 <note><para>
3183 This option must also be enabled on endpoints that require
3184 this functionality.
3185 </para></note>
3186 </description>
3187 </configOption>
3188 <configOption name="disable_rport" default="no">
3189 <since>
3190 <version>13.35.0</version>
3191 <version>16.12.0</version>
3192 <version>17.6.0</version>
3193 </since>
3194 <synopsis>Disable the use of rport in outgoing requests.</synopsis>
3195 <description><para>
3196 Remove "rport" parameter from the outgoing requests.
3197 </para></description>
3198 </configOption>
3199 <configOption name="type">
3200 <since>
3201 <version>12.0.0</version>
3202 </since>
3203 <synopsis>Must be of type 'system' UNLESS the object name is 'system'.</synopsis>
3204 </configOption>
3205 </configObject>
3206 <configObject name="global">
3207 <since>
3208 <version>12.0.0</version>
3209 </since>
3210 <synopsis>Options that apply globally to all SIP communications</synopsis>
3211 <description><para>
3212 The settings in this section are global. Unlike options in the <literal>system</literal>
3213 section, these options can be refreshed by performing a reload.
3214 </para></description>
3215 <configOption name="max_forwards" default="70">
3216 <since>
3217 <version>13.3.0</version>
3218 </since>
3219 <synopsis>Value used in Max-Forwards header for SIP requests.</synopsis>
3220 </configOption>
3221 <configOption name="keep_alive_interval" default="90">
3222 <since>
3223 <version>13.3.0</version>
3224 </since>
3225 <synopsis>The interval (in seconds) to send keepalives to active connection-oriented transports.</synopsis>
3226 </configOption>
3227 <configOption name="contact_expiration_check_interval" default="30">
3228 <since>
3229 <version>13.9.0</version>
3230 </since>
3231 <synopsis>The interval (in seconds) to check for expired contacts.</synopsis>
3232 </configOption>
3233 <configOption name="disable_multi_domain" default="no">
3234 <since>
3235 <version>13.12.0</version>
3236 <version>14.1.0</version>
3237 </since>
3238 <synopsis>Disable Multi Domain support</synopsis>
3239 <description><para>
3240 If disabled it can improve realtime performance by reducing the number of database requests.
3241 </para></description>
3242 </configOption>
3243 <configOption name="max_initial_qualify_time" default="0">
3244 <since>
3245 <version>13.4.0</version>
3246 </since>
3247 <synopsis>The maximum amount of time from startup that qualifies should be attempted on all contacts.
3248 If greater than the qualify_frequency for an aor, qualify_frequency will be used instead.</synopsis>
3249 </configOption>
3250 <configOption name="unidentified_request_period" default="5">
3251 <since>
3252 <version>13.10.0</version>
3253 </since>
3254 <synopsis>The number of seconds over which to accumulate unidentified requests.</synopsis>
3255 <description><para>
3256 If <literal>unidentified_request_count</literal> unidentified requests are received
3257 during <literal>unidentified_request_period</literal>, a security event will be generated.
3258 </para></description>
3259 </configOption>
3260 <configOption name="unidentified_request_count" default="5">
3261 <since>
3262 <version>13.10.0</version>
3263 </since>
3264 <synopsis>The number of unidentified requests from a single IP to allow.</synopsis>
3265 <description><para>
3266 If <literal>unidentified_request_count</literal> unidentified requests are received
3267 during <literal>unidentified_request_period</literal>, a security event will be generated.
3268 </para></description>
3269 </configOption>
3270 <configOption name="unidentified_request_prune_interval" default="30">
3271 <since>
3272 <version>13.10.0</version>
3273 </since>
3274 <synopsis>The interval at which unidentified requests are older than
3275 twice the unidentified_request_period are pruned.</synopsis>
3276 </configOption>
3277 <configOption name="type">
3278 <since>
3279 <version>12.0.0</version>
3280 </since>
3281 <synopsis>Must be of type 'global' UNLESS the object name is 'global'.</synopsis>
3282 </configOption>
3283 <configOption name="user_agent" default="Asterisk &lt;Asterisk Version&gt;">
3284 <since>
3285 <version>12.0.0</version>
3286 </since>
3287 <synopsis>Value used in User-Agent header for SIP requests and Server header for SIP responses.</synopsis>
3288 </configOption>
3289 <configOption name="regcontext" default="">
3290 <since>
3291 <version>13.8.0</version>
3292 </since>
3293 <synopsis>When set, Asterisk will dynamically create and destroy a NoOp priority 1 extension for a given
3294 peer who registers or unregisters with us.</synopsis>
3295 </configOption>
3296 <configOption name="default_outbound_endpoint" default="default_outbound_endpoint">
3297 <since>
3298 <version>13.3.0</version>
3299 </since>
3300 <synopsis>Endpoint to use when sending an outbound request to a URI without a specified endpoint.</synopsis>
3301 </configOption>
3302 <configOption name="default_voicemail_extension">
3303 <since>
3304 <version>13.9.0</version>
3305 </since>
3306 <synopsis>The voicemail extension to send in the NOTIFY Message-Account header if not specified on endpoint or aor</synopsis>
3307 </configOption>
3308 <configOption name="debug" default="no">
3309 <since>
3310 <version>13.3.0</version>
3311 </since>
3312 <synopsis>Enable/Disable SIP debug logging. Valid options include yes, no, or
3313 a host address</synopsis>
3314 </configOption>
3315 <configOption name="endpoint_identifier_order">
3316 <since>
3317 <version>13.3.0</version>
3318 </since>
3319 <synopsis>The order by which endpoint identifiers are processed and checked.
3320 Identifier names are usually derived from and can be found in the endpoint
3321 identifier module itself (res_pjsip_endpoint_identifier_*).
3322 You can use the CLI command "pjsip show identifiers" to see the
3323 identifiers currently available.</synopsis>
3324 <description>
3325 <note><para>
3326 One of the identifiers is "auth_username" which matches on the username in
3327 an Authentication header. This method has some security considerations because an
3328 Authentication header is not present on the first message of a dialog when
3329 digest authentication is used. The client can't generate it until the server
3330 sends the challenge in a 401 response. Since Asterisk normally sends a security
3331 event when an incoming request can't be matched to an endpoint, using auth_username
3332 requires that the security event be deferred until a request is received with
3333 the Authentication header and only generated if the username doesn't result in a
3334 match. This may result in a delay before an attack is recognized. You can control
3335 how many unmatched requests are received from a single ip address before a security
3336 event is generated using the unidentified_request parameters.
3337 </para></note>
3338 </description>
3339 </configOption>
3340 <configOption name="default_from_user" default="asterisk">
3341 <since>
3342 <version>13.6.0</version>
3343 </since>
3344 <synopsis>When Asterisk generates an outgoing SIP request, the From header username will be
3345 set to this value if there is no better option (such as CallerID) to be
3346 used.</synopsis>
3347 </configOption>
3348 <configOption name="default_realm" default="asterisk">
3349 <since>
3350 <version>13.10.0</version>
3351 </since>
3352 <synopsis>When Asterisk generates a challenge, the digest realm will be
3353 set to this value if there is no better option (such as auth/realm) to be
3354 used.</synopsis>
3355 </configOption>
3356 <configOption name="mwi_tps_queue_high" default="500">
3357 <since>
3358 <version>13.12.0</version>
3359 <version>14.1.0</version>
3360 </since>
3361 <synopsis>MWI taskprocessor high water alert trigger level.</synopsis>
3362 <description>
3363 <para>On a heavily loaded system you may need to adjust the
3364 taskprocessor queue limits. If any taskprocessor queue size
3365 reaches its high water level then pjsip will stop processing
3366 new requests until the alert is cleared. The alert clears
3367 when all alerting taskprocessor queues have dropped to their
3368 low water clear level.
3369 </para>
3370 </description>
3371 </configOption>
3372 <configOption name="mwi_tps_queue_low" default="-1">
3373 <since>
3374 <version>13.12.0</version>
3375 <version>14.1.0</version>
3376 </since>
3377 <synopsis>MWI taskprocessor low water clear alert level.</synopsis>
3378 <description>
3379 <para>On a heavily loaded system you may need to adjust the
3380 taskprocessor queue limits. If any taskprocessor queue size
3381 reaches its high water level then pjsip will stop processing
3382 new requests until the alert is cleared. The alert clears
3383 when all alerting taskprocessor queues have dropped to their
3384 low water clear level.
3385 </para>
3386 <note><para>Set to -1 for the low water level to be 90% of
3387 the high water level.</para></note>
3388 </description>
3389 </configOption>
3390 <configOption name="mwi_disable_initial_unsolicited" default="no">
3391 <since>
3392 <version>13.12.0</version>
3393 <version>14.1.0</version>
3394 </since>
3395 <synopsis>Enable/Disable sending unsolicited MWI to all endpoints on startup.</synopsis>
3396 <description>
3397 <para>When the initial unsolicited MWI notification are
3398 enabled on startup then the initial notifications
3399 get sent at startup. If you have a lot of endpoints
3400 (thousands) that use unsolicited MWI then you may
3401 want to consider disabling the initial startup
3402 notifications.
3403 </para>
3404 <para>When the initial unsolicited MWI notifications are
3405 disabled on startup then the notifications will start
3406 on the endpoint's next contact update.
3407 </para>
3408 </description>
3409 </configOption>
3410 <configOption name="ignore_uri_user_options">
3411 <since>
3412 <version>13.12.0</version>
3413 <version>14.1.0</version>
3414 </since>
3415 <synopsis>Enable/Disable ignoring SIP URI user field options.</synopsis>
3416 <description>
3417 <para>If you have this option enabled and there are semicolons
3418 in the user field of a SIP URI then the field is truncated
3419 at the first semicolon. This effectively makes the semicolon
3420 a non-usable character for PJSIP endpoint names, extensions,
3421 and AORs. This can be useful for improving compatibility with
3422 an ITSP that likes to use user options for whatever reason.
3423 </para>
3424 <example title="Sample SIP URI">
3425 sip:1235557890;[email protected];user=phone
3426 </example>
3427 <example title="Sample SIP URI user field">
3428 1235557890;phone-context=national
3429 </example>
3430 <example title="Sample SIP URI user field truncated">
3431 1235557890
3432 </example>
3433 <note><para>The caller-id and redirecting number strings
3434 obtained from incoming SIP URI user fields are always truncated
3435 at the first semicolon.</para></note>
3436 </description>
3437 </configOption>
3438 <configOption name="use_callerid_contact" default="no">
3439 <since>
3440 <version>13.24.0</version>
3441 <version>16.1.0</version>
3442 </since>
3443 <synopsis>Place caller-id information into Contact header</synopsis>
3444 <description><para>
3445 This option will cause Asterisk to place caller-id information into
3446 generated Contact headers.</para>
3447 </description>
3448 </configOption>
3449 <configOption name="send_contact_status_on_update_registration" default="no">
3450 <since>
3451 <version>16.2.0</version>
3452 </since>
3453 <synopsis>Enable sending AMI ContactStatus event when a device refreshes its registration.</synopsis>
3454 </configOption>
3455 <configOption name="taskprocessor_overload_trigger">
3456 <since>
3457 <version>13.26.0</version>
3458 <version>16.3.0</version>
3459 </since>
3460 <synopsis>Trigger scope for taskprocessor overloads</synopsis>
3461 <description><para>
3462 This option specifies the trigger the distributor will use for
3463 detecting taskprocessor overloads. When it detects an overload condition,
3464 the distrubutor will stop accepting new requests until the overload is
3465 cleared.
3466 </para>
3467 <enumlist>
3468 <enum name="global"><para>(default) Any taskprocessor overload will trigger.</para></enum>
3469 <enum name="pjsip_only"><para>Only pjsip taskprocessor overloads will trigger.</para></enum>
3470 <enum name="none"><para>No overload detection will be performed.</para></enum>
3471 </enumlist>
3472 <warning><para>
3473 The "none" and "pjsip_only" options should be used
3474 with extreme caution and only to mitigate specific issues.
3475 Under certain conditions they could make things worse.
3476 </para></warning>
3477 </description>
3478 </configOption>
3479 <configOption name="norefersub" default="yes">
3480 <since>
3481 <version>13.27.0</version>
3482 <version>16.4.0</version>
3483 </since>
3484 <synopsis>Advertise support for RFC4488 REFER subscription suppression</synopsis>
3485 </configOption>
3486 <configOption name="allow_sending_180_after_183" default="no">
3487 <since>
3488 <version>16.26.0</version>
3489 <version>18.12.0</version>
3490 <version>19.4.0</version>
3491 </since>
3492 <synopsis>Allow 180 after 183</synopsis>
3493 <description><para>
3494 Allow Asterisk to send 180 Ringing to an endpoint
3495 after 183 Session Progress has been send.
3496 If disabled Asterisk will instead send only a
3497 183 Session Progress to the endpoint.
3498 (default: "no")
3499 </para>
3500 </description>
3501 </configOption>
3502 <configOption name="all_codecs_on_empty_reinvite" default="no">
3503 <since>
3504 <version>16.30.0</version>
3505 <version>18.16.0</version>
3506 <version>19.8.0</version>
3507 <version>20.1.0</version>
3508 </since>
3509 <synopsis>If we should return all codecs on re-INVITE without SDP</synopsis>
3510 <description><para>
3511 On reception of a re-INVITE without SDP Asterisk will send an SDP
3512 offer in the 200 OK response containing all configured codecs on the
3513 endpoint, instead of simply those that have already been negotiated.
3514 RFC 3261 specifies this as a SHOULD requirement.
3515 </para></description>
3516 </configOption>
3517 <configOption name="default_auth_algorithms_uas" default="no">
3518 <since>
3519 <version>20.12.0</version>
3520 <version>21.7.0</version>
3521 <version>22.2.0</version>
3522 </since>
3523 <synopsis>List of default authentication algorithms to support when Asterisk is UAS</synopsis>
3524 <description><para>Valid values:</para>
3525 <enumlist>
3526 <enum name="md5"><para>Supported by all versions of OpenSSL and pjproject</para></enum>
3527 <enum name="sha-256"><para>Supported by all versions of OpenSSL but only pjproject versions > 2.14.1</para></enum>
3528 <enum name="sha-512-256"><para>Supported by OpenSSL versions >= 1.1.1 and pjproject versions > 2.14.1</para></enum>
3529 </enumlist>
3530 <para>If not specified, the default is <literal>MD5</literal> only.</para>
3531 </description>
3532 </configOption>
3533 <configOption name="default_auth_algorithms_uac" default="no">
3534 <since>
3535 <version>20.12.0</version>
3536 <version>21.7.0</version>
3537 <version>22.2.0</version>
3538 </since>
3539 <synopsis>List of default authentication algorithms to support when Asterisk is UAC</synopsis>
3540 <description><para>Valid values:</para>
3541 <enumlist>
3542 <enum name="md5"><para>Supported by all versions of OpenSSL and pjproject</para></enum>
3543 <enum name="sha-256"><para>Supported by all versions of OpenSSL but only pjproject versions > 2.14.1</para></enum>
3544 <enum name="sha-512-256"><para>Supported by OpenSSL versions >= 1.1.1 and pjproject versions > 2.14.1</para></enum>
3545 </enumlist>
3546 <para>If not specified, the default is <literal>MD5</literal> only.</para>
3547 </description>
3548 </configOption>
3549 </configObject>
3550 </configFile>
3551 </configInfo>
3552 </docs>