Merge "res_pjsip: Add AMI action 'PJSIPShowContacts'"
[asterisk/asterisk.git] / res / res_pjsip.c
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 2013, Digium, Inc.
5  *
6  * Mark Michelson <mmichelson@digium.com>
7  *
8  * See http://www.asterisk.org for more information about
9  * the Asterisk project. Please do not directly contact
10  * any of the maintainers of this project for assistance;
11  * the project provides a web site, mailing lists and IRC
12  * channels for your use.
13  *
14  * This program is free software, distributed under the terms of
15  * the GNU General Public License Version 2. See the LICENSE file
16  * at the top of the source tree.
17  */
18
19 #include "asterisk.h"
20
21 #include <pjsip.h>
22 /* Needed for SUBSCRIBE, NOTIFY, and PUBLISH method definitions */
23 #include <pjsip_simple.h>
24 #include <pjsip/sip_transaction.h>
25 #include <pj/timer.h>
26 #include <pjlib.h>
27 #include <pjmedia/errno.h>
28
29 #include "asterisk/res_pjsip.h"
30 #include "res_pjsip/include/res_pjsip_private.h"
31 #include "asterisk/linkedlists.h"
32 #include "asterisk/logger.h"
33 #include "asterisk/lock.h"
34 #include "asterisk/utils.h"
35 #include "asterisk/astobj2.h"
36 #include "asterisk/module.h"
37 #include "asterisk/threadpool.h"
38 #include "asterisk/taskprocessor.h"
39 #include "asterisk/uuid.h"
40 #include "asterisk/sorcery.h"
41 #include "asterisk/file.h"
42 #include "asterisk/cli.h"
43 #include "asterisk/res_pjsip_cli.h"
44 #include "asterisk/test.h"
45 #include "asterisk/res_pjsip_presence_xml.h"
46 #include "asterisk/res_pjproject.h"
47
48 /*** MODULEINFO
49         <depend>pjproject</depend>
50         <depend>res_pjproject</depend>
51         <depend>res_sorcery_config</depend>
52         <depend>res_sorcery_memory</depend>
53         <depend>res_sorcery_astdb</depend>
54         <use type="module">res_statsd</use>
55         <support_level>core</support_level>
56  ***/
57
58 /*** DOCUMENTATION
59         <configInfo name="res_pjsip" language="en_US">
60                 <synopsis>SIP Resource using PJProject</synopsis>
61                 <configFile name="pjsip.conf">
62                         <configObject name="endpoint">
63                                 <synopsis>Endpoint</synopsis>
64                                 <description><para>
65                                         The <emphasis>Endpoint</emphasis> is the primary configuration object.
66                                         It contains the core SIP related options only, endpoints are <emphasis>NOT</emphasis>
67                                         dialable entries of their own. Communication with another SIP device is
68                                         accomplished via Addresses of Record (AoRs) which have one or more
69                                         contacts assicated with them. Endpoints <emphasis>NOT</emphasis> configured to
70                                         use a <literal>transport</literal> will default to first transport found
71                                         in <filename>pjsip.conf</filename> that matches its type.
72                                         </para>
73                                         <para>Example: An Endpoint has been configured with no transport.
74                                         When it comes time to call an AoR, PJSIP will find the
75                                         first transport that matches the type. A SIP URI of <literal>sip:5000@[11::33]</literal>
76                                         will use the first IPv6 transport and try to send the request.
77                                         </para>
78                                         <para>If the anonymous endpoint identifier is in use an endpoint with the name
79                                         "anonymous@domain" will be searched for as a last resort. If this is not found
80                                         it will fall back to searching for "anonymous". If neither endpoints are found
81                                         the anonymous endpoint identifier will not return an endpoint and anonymous
82                                         calling will not be possible.
83                                         </para>
84                                 </description>
85                                 <configOption name="100rel" default="yes">
86                                         <synopsis>Allow support for RFC3262 provisional ACK tags</synopsis>
87                                         <description>
88                                                 <enumlist>
89                                                         <enum name="no" />
90                                                         <enum name="required" />
91                                                         <enum name="yes" />
92                                                 </enumlist>
93                                         </description>
94                                 </configOption>
95                                 <configOption name="aggregate_mwi" default="yes">
96                                         <synopsis>Condense MWI notifications into a single NOTIFY.</synopsis>
97                                         <description><para>When enabled, <replaceable>aggregate_mwi</replaceable> condenses message
98                                         waiting notifications from multiple mailboxes into a single NOTIFY. If it is disabled,
99                                         individual NOTIFYs are sent for each mailbox.</para></description>
100                                 </configOption>
101                                 <configOption name="allow">
102                                         <synopsis>Media Codec(s) to allow</synopsis>
103                                 </configOption>
104                                 <configOption name="allow_overlap" default="yes">
105                                         <synopsis>Enable RFC3578 overlap dialing support.</synopsis>
106                                 </configOption>
107                                 <configOption name="aors">
108                                         <synopsis>AoR(s) to be used with the endpoint</synopsis>
109                                         <description><para>
110                                                 List of comma separated AoRs that the endpoint should be associated with.
111                                         </para></description>
112                                 </configOption>
113                                 <configOption name="auth">
114                                         <synopsis>Authentication Object(s) associated with the endpoint</synopsis>
115                                         <description><para>
116                                                 This is a comma-delimited list of <replaceable>auth</replaceable> sections defined
117                                                 in <filename>pjsip.conf</filename> to be used to verify inbound connection attempts.
118                                                 </para><para>
119                                                 Endpoints without an authentication object
120                                                 configured will allow connections without verification.</para>
121                                                 <note><para>
122                                                 Using the same auth section for inbound and outbound
123                                                 authentication is not recommended.  There is a difference in
124                                                 meaning for an empty realm setting between inbound and outbound
125                                                 authentication uses.  See the auth realm description for details.
126                                                 </para></note>
127                                         </description>
128                                 </configOption>
129                                 <configOption name="callerid">
130                                         <synopsis>CallerID information for the endpoint</synopsis>
131                                         <description><para>
132                                                 Must be in the format <literal>Name &lt;Number&gt;</literal>,
133                                                 or only <literal>&lt;Number&gt;</literal>.
134                                         </para></description>
135                                 </configOption>
136                                 <configOption name="callerid_privacy">
137                                         <synopsis>Default privacy level</synopsis>
138                                         <description>
139                                                 <enumlist>
140                                                         <enum name="allowed_not_screened" />
141                                                         <enum name="allowed_passed_screen" />
142                                                         <enum name="allowed_failed_screen" />
143                                                         <enum name="allowed" />
144                                                         <enum name="prohib_not_screened" />
145                                                         <enum name="prohib_passed_screen" />
146                                                         <enum name="prohib_failed_screen" />
147                                                         <enum name="prohib" />
148                                                         <enum name="unavailable" />
149                                                 </enumlist>
150                                         </description>
151                                 </configOption>
152                                 <configOption name="callerid_tag">
153                                         <synopsis>Internal id_tag for the endpoint</synopsis>
154                                 </configOption>
155                                 <configOption name="context">
156                                         <synopsis>Dialplan context for inbound sessions</synopsis>
157                                 </configOption>
158                                 <configOption name="direct_media_glare_mitigation" default="none">
159                                         <synopsis>Mitigation of direct media (re)INVITE glare</synopsis>
160                                         <description>
161                                                 <para>
162                                                 This setting attempts to avoid creating INVITE glare scenarios
163                                                 by disabling direct media reINVITEs in one direction thereby allowing
164                                                 designated servers (according to this option) to initiate direct
165                                                 media reINVITEs without contention and significantly reducing call
166                                                 setup time.
167                                                 </para>
168                                                 <para>
169                                                 A more detailed description of how this option functions can be found on
170                                                 the Asterisk wiki https://wiki.asterisk.org/wiki/display/AST/SIP+Direct+Media+Reinvite+Glare+Avoidance
171                                                 </para>
172                                                 <enumlist>
173                                                         <enum name="none" />
174                                                         <enum name="outgoing" />
175                                                         <enum name="incoming" />
176                                                 </enumlist>
177                                         </description>
178                                 </configOption>
179                                 <configOption name="direct_media_method" default="invite">
180                                         <synopsis>Direct Media method type</synopsis>
181                                         <description>
182                                                 <para>Method for setting up Direct Media between endpoints.</para>
183                                                 <enumlist>
184                                                         <enum name="invite" />
185                                                         <enum name="reinvite">
186                                                                 <para>Alias for the <literal>invite</literal> value.</para>
187                                                         </enum>
188                                                         <enum name="update" />
189                                                 </enumlist>
190                                         </description>
191                                 </configOption>
192                                 <configOption name="connected_line_method" default="invite">
193                                         <synopsis>Connected line method type</synopsis>
194                                         <description>
195                                                 <para>Method used when updating connected line information.</para>
196                                                 <enumlist>
197                                                         <enum name="invite">
198                                                         <para>When set to <literal>invite</literal>, check the remote's Allow header and
199                                                         if UPDATE is allowed, send UPDATE instead of INVITE to avoid SDP
200                                                         renegotiation.  If UPDATE is not Allowed, send INVITE.</para>
201                                                         </enum>
202                                                         <enum name="reinvite">
203                                                                 <para>Alias for the <literal>invite</literal> value.</para>
204                                                         </enum>
205                                                         <enum name="update">
206                                                         <para>If set to <literal>update</literal>, send UPDATE regardless of what the remote
207                                                         Allows. </para>
208                                                         </enum>
209                                                 </enumlist>
210                                         </description>
211                                 </configOption>
212                                 <configOption name="direct_media" default="yes">
213                                         <synopsis>Determines whether media may flow directly between endpoints.</synopsis>
214                                 </configOption>
215                                 <configOption name="disable_direct_media_on_nat" default="no">
216                                         <synopsis>Disable direct media session refreshes when NAT obstructs the media session</synopsis>
217                                 </configOption>
218                                 <configOption name="disallow">
219                                         <synopsis>Media Codec(s) to disallow</synopsis>
220                                 </configOption>
221                                 <configOption name="dtmf_mode" default="rfc4733">
222                                         <synopsis>DTMF mode</synopsis>
223                                         <description>
224                                                 <para>This setting allows to choose the DTMF mode for endpoint communication.</para>
225                                                 <enumlist>
226                                                         <enum name="rfc4733">
227                                                                 <para>DTMF is sent out of band of the main audio stream.  This
228                                                                 supercedes the older <emphasis>RFC-2833</emphasis> used within
229                                                                 the older <literal>chan_sip</literal>.</para>
230                                                         </enum>
231                                                         <enum name="inband">
232                                                                 <para>DTMF is sent as part of audio stream.</para>
233                                                         </enum>
234                                                         <enum name="info">
235                                                                 <para>DTMF is sent as SIP INFO packets.</para>
236                                                         </enum>
237                                                         <enum name="auto">
238                                                                 <para>DTMF is sent as RFC 4733 if the other side supports it or as INBAND if not.</para>
239                                                         </enum>
240                                                         <enum name="auto_info">
241                                                                 <para>DTMF is sent as RFC 4733 if the other side supports it or as SIP INFO if not.</para>
242                                                         </enum>
243                                                 </enumlist>
244                                         </description>
245                                 </configOption>
246                                 <configOption name="media_address">
247                                         <synopsis>IP address used in SDP for media handling</synopsis>
248                                         <description><para>
249                                                 At the time of SDP creation, the IP address defined here will be used as
250                                                 the media address for individual streams in the SDP.
251                                         </para>
252                                         <note><para>
253                                                 Be aware that the <literal>external_media_address</literal> option, set in Transport
254                                                 configuration, can also affect the final media address used in the SDP.
255                                         </para></note>
256                                         </description>
257                                 </configOption>
258                                 <configOption name="bind_rtp_to_media_address">
259                                         <synopsis>Bind the RTP instance to the media_address</synopsis>
260                                         <description><para>
261                                                 If media_address is specified, this option causes the RTP instance to be bound to the
262                                                 specified ip address which causes the packets to be sent from that address.
263                                         </para>
264                                         </description>
265                                 </configOption>
266                                 <configOption name="force_rport" default="yes">
267                                         <synopsis>Force use of return port</synopsis>
268                                 </configOption>
269                                 <configOption name="ice_support" default="no">
270                                         <synopsis>Enable the ICE mechanism to help traverse NAT</synopsis>
271                                 </configOption>
272                                 <configOption name="identify_by">
273                                         <synopsis>Way(s) for the endpoint to be identified</synopsis>
274                                         <description>
275                                                 <para>Endpoints and AORs can be identified in multiple ways.  This
276                                                 option is a comma separated list of methods the endpoint can be
277                                                 identified.
278                                                 </para>
279                                                 <note><para>
280                                                 This option controls both how an endpoint is matched for incoming
281                                                 traffic and also how an AOR is determined if a registration
282                                                 occurs.  You must list at least one method that also matches for
283                                                 AORs or the registration will fail.
284                                                 </para></note>
285                                                 <enumlist>
286                                                         <enum name="username">
287                                                                 <para>Matches the endpoint or AOR ID based on the username
288                                                                 and domain in the From header (or To header for AORs).  If
289                                                                 an exact match on both username and domain/realm fails, the
290                                                                 match is retried with just the username.
291                                                                 </para>
292                                                         </enum>
293                                                         <enum name="auth_username">
294                                                                 <para>Matches the endpoint or AOR ID based on the username
295                                                                 and realm in the Authentication header.  If an exact match
296                                                                 on both username and domain/realm fails, the match is
297                                                                 retried with just the username.
298                                                                 </para>
299                                                                 <note><para>This method of identification has some security
300                                                                 considerations because an Authentication header is not
301                                                                 present on the first message of a dialog when digest
302                                                                 authentication is used.  The client can't generate it until
303                                                                 the server sends the challenge in a 401 response.  Since
304                                                                 Asterisk normally sends a security event when an incoming
305                                                                 request can't be matched to an endpoint, using this method
306                                                                 requires that the security event be deferred until a request
307                                                                 is received with the Authentication header and only
308                                                                 generated if the username doesn't result in a match.  This
309                                                                 may result in a delay before an attack is recognized.  You
310                                                                 can control how many unmatched requests are received from
311                                                                 a single ip address before a security event is generated
312                                                                 using the <literal>unidentified_request</literal>
313                                                                 parameters in the "global" configuration object.
314                                                                 </para></note>
315                                                         </enum>
316                                                         <enum name="ip">
317                                                                 <para>Matches the endpoint based on the source IP address.
318                                                                 </para>
319                                                                 <para>This method of identification is not configured here
320                                                                 but simply allowed by this configuration option.  See the
321                                                                 documentation for the <literal>identify</literal>
322                                                                 configuration section for more details on this method of
323                                                                 endpoint identification.
324                                                                 </para>
325                                                         </enum>
326                                                         <enum name="header">
327                                                                 <para>Matches the endpoint based on a configured SIP header
328                                                                 value.
329                                                                 </para>
330                                                                 <para>This method of identification is not configured here
331                                                                 but simply allowed by this configuration option.  See the
332                                                                 documentation for the <literal>identify</literal>
333                                                                 configuration section for more details on this method of
334                                                                 endpoint identification.
335                                                                 </para>
336                                                         </enum>
337                                                 </enumlist>
338                                         </description>
339                                 </configOption>
340                                 <configOption name="redirect_method">
341                                         <synopsis>How redirects received from an endpoint are handled</synopsis>
342                                         <description><para>
343                                                 When a redirect is received from an endpoint there are multiple ways it can be handled.
344                                                 If this option is set to <literal>user</literal> the user portion of the redirect target
345                                                 is treated as an extension within the dialplan and dialed using a Local channel. If this option
346                                                 is set to <literal>uri_core</literal> the target URI is returned to the dialing application
347                                                 which dials it using the PJSIP channel driver and endpoint originally used. If this option is
348                                                 set to <literal>uri_pjsip</literal> the redirect occurs within chan_pjsip itself and is not exposed
349                                                 to the core at all. The <literal>uri_pjsip</literal> option has the benefit of being more efficient
350                                                 and also supporting multiple potential redirect targets. The con is that since redirection occurs
351                                                 within chan_pjsip redirecting information is not forwarded and redirection can not be
352                                                 prevented.
353                                                 </para>
354                                                 <enumlist>
355                                                         <enum name="user" />
356                                                         <enum name="uri_core" />
357                                                         <enum name="uri_pjsip" />
358                                                 </enumlist>
359                                         </description>
360                                 </configOption>
361                                 <configOption name="mailboxes">
362                                         <synopsis>NOTIFY the endpoint when state changes for any of the specified mailboxes</synopsis>
363                                         <description><para>
364                                                 Asterisk will send unsolicited MWI NOTIFY messages to the endpoint when state
365                                                 changes happen for any of the specified mailboxes. More than one mailbox can be
366                                                 specified with a comma-delimited string. app_voicemail mailboxes must be specified
367                                                 as mailbox@context; for example: mailboxes=6001@default. For mailboxes provided by
368                                                 external sources, such as through the res_external_mwi module, you must specify
369                                                 strings supported by the external system.
370                                         </para><para>
371                                                 For endpoints that SUBSCRIBE for MWI, use the <literal>mailboxes</literal> option in your AOR
372                                                 configuration.
373                                         </para></description>
374                                 </configOption>
375                                 <configOption name="mwi_subscribe_replaces_unsolicited">
376                                         <synopsis>An MWI subscribe will replace sending unsolicited NOTIFYs</synopsis>
377                                 </configOption>
378                                 <configOption name="voicemail_extension">
379                                         <synopsis>The voicemail extension to send in the NOTIFY Message-Account header</synopsis>
380                                 </configOption>
381                                 <configOption name="moh_suggest" default="default">
382                                         <synopsis>Default Music On Hold class</synopsis>
383                                 </configOption>
384                                 <configOption name="outbound_auth">
385                                         <synopsis>Authentication object(s) used for outbound requests</synopsis>
386                                         <description><para>
387                                                 This is a comma-delimited list of <replaceable>auth</replaceable>
388                                                 sections defined in <filename>pjsip.conf</filename> used to respond
389                                                 to outbound connection authentication challenges.</para>
390                                                 <note><para>
391                                                 Using the same auth section for inbound and outbound
392                                                 authentication is not recommended.  There is a difference in
393                                                 meaning for an empty realm setting between inbound and outbound
394                                                 authentication uses.  See the auth realm description for details.
395                                                 </para></note>
396                                         </description>
397                                 </configOption>
398                                 <configOption name="outbound_proxy">
399                                         <synopsis>Full SIP URI of the outbound proxy used to send requests</synopsis>
400                                 </configOption>
401                                 <configOption name="rewrite_contact">
402                                         <synopsis>Allow Contact header to be rewritten with the source IP address-port</synopsis>
403                                         <description><para>
404                                                 On inbound SIP messages from this endpoint, the Contact header or an
405                                                 appropriate Record-Route header will be changed to have the source IP
406                                                 address and port.  This option does not affect outbound messages sent to
407                                                 this endpoint.  This option helps servers communicate with endpoints
408                                                 that are behind NATs.  This option also helps reuse reliable transport
409                                                 connections such as TCP and TLS.
410                                         </para></description>
411                                 </configOption>
412                                 <configOption name="rtp_ipv6" default="no">
413                                         <synopsis>Allow use of IPv6 for RTP traffic</synopsis>
414                                 </configOption>
415                                 <configOption name="rtp_symmetric" default="no">
416                                         <synopsis>Enforce that RTP must be symmetric</synopsis>
417                                 </configOption>
418                                 <configOption name="send_diversion" default="yes">
419                                         <synopsis>Send the Diversion header, conveying the diversion
420                                         information to the called user agent</synopsis>
421                                 </configOption>
422                                 <configOption name="send_pai" default="no">
423                                         <synopsis>Send the P-Asserted-Identity header</synopsis>
424                                 </configOption>
425                                 <configOption name="send_rpid" default="no">
426                                         <synopsis>Send the Remote-Party-ID header</synopsis>
427                                 </configOption>
428                                 <configOption name="rpid_immediate" default="no">
429                                         <synopsis>Immediately send connected line updates on unanswered incoming calls.</synopsis>
430                                         <description>
431                                                 <para>When enabled, immediately send <emphasis>180 Ringing</emphasis>
432                                                 or <emphasis>183 Progress</emphasis> response messages to the
433                                                 caller if the connected line information is updated before
434                                                 the call is answered.  This can send a <emphasis>180 Ringing</emphasis>
435                                                 response before the call has even reached the far end.  The
436                                                 caller can start hearing ringback before the far end even gets
437                                                 the call.  Many phones tend to grab the first connected line
438                                                 information and refuse to update the display if it changes.  The
439                                                 first information is not likely to be correct if the call
440                                                 goes to an endpoint not under the control of this Asterisk
441                                                 box.</para>
442                                                 <para>When disabled, a connected line update must wait for
443                                                 another reason to send a message with the connected line
444                                                 information to the caller before the call is answered.  You can
445                                                 trigger the sending of the information by using an appropriate
446                                                 dialplan application such as <emphasis>Ringing</emphasis>.</para>
447                                         </description>
448                                 </configOption>
449                                 <configOption name="timers_min_se" default="90">
450                                         <synopsis>Minimum session timers expiration period</synopsis>
451                                         <description><para>
452                                                 Minimium session timer expiration period. Time in seconds.
453                                         </para></description>
454                                 </configOption>
455                                 <configOption name="timers" default="yes">
456                                         <synopsis>Session timers for SIP packets</synopsis>
457                                         <description>
458                                                 <enumlist>
459                                                         <enum name="no" />
460                                                         <enum name="yes" />
461                                                         <enum name="required" />
462                                                         <enum name="always" />
463                                                         <enum name="forced"><para>Alias of always</para></enum>
464                                                 </enumlist>
465                                         </description>
466                                 </configOption>
467                                 <configOption name="timers_sess_expires" default="1800">
468                                         <synopsis>Maximum session timer expiration period</synopsis>
469                                         <description><para>
470                                                 Maximium session timer expiration period. Time in seconds.
471                                         </para></description>
472                                 </configOption>
473                                 <configOption name="transport">
474                                         <synopsis>Desired transport configuration</synopsis>
475                                         <description><para>
476                                                 This will set the desired transport configuration to send SIP data through.
477                                                 </para>
478                                                 <warning><para>Not specifying a transport will <emphasis>DEFAULT</emphasis>
479                                                 to the first configured transport in <filename>pjsip.conf</filename> which is
480                                                 valid for the URI we are trying to contact.
481                                                 </para></warning>
482                                                 <warning><para>Transport configuration is not affected by reloads. In order to
483                                                 change transports, a full Asterisk restart is required</para></warning>
484                                         </description>
485                                 </configOption>
486                                 <configOption name="trust_id_inbound" default="no">
487                                         <synopsis>Accept identification information received from this endpoint</synopsis>
488                                         <description><para>This option determines whether Asterisk will accept
489                                         identification from the endpoint from headers such as P-Asserted-Identity
490                                         or Remote-Party-ID header. This option applies both to calls originating from the
491                                         endpoint and calls originating from Asterisk. If <literal>no</literal>, the
492                                         configured Caller-ID from pjsip.conf will always be used as the identity for
493                                         the endpoint.</para></description>
494                                 </configOption>
495                                 <configOption name="trust_id_outbound" default="no">
496                                         <synopsis>Send private identification details to the endpoint.</synopsis>
497                                         <description><para>This option determines whether res_pjsip will send private
498                                         identification information to the endpoint. If <literal>no</literal>,
499                                         private Caller-ID information will not be forwarded to the endpoint.
500                                         "Private" in this case refers to any method of restricting identification.
501                                         Example: setting <replaceable>callerid_privacy</replaceable> to any
502                                         <literal>prohib</literal> variation.
503                                         Example: If <replaceable>trust_id_inbound</replaceable> is set to
504                                         <literal>yes</literal>, the presence of a <literal>Privacy: id</literal>
505                                         header in a SIP request or response would indicate the identification
506                                         provided in the request is private.</para></description>
507                                 </configOption>
508                                 <configOption name="type">
509                                         <synopsis>Must be of type 'endpoint'.</synopsis>
510                                 </configOption>
511                                 <configOption name="use_ptime" default="no">
512                                         <synopsis>Use Endpoint's requested packetisation interval</synopsis>
513                                 </configOption>
514                                 <configOption name="use_avpf" default="no">
515                                         <synopsis>Determines whether res_pjsip will use and enforce usage of AVPF for this
516                                         endpoint.</synopsis>
517                                         <description><para>
518                                                 If set to <literal>yes</literal>, res_pjsip will use the AVPF or SAVPF RTP
519                                                 profile for all media offers on outbound calls and media updates and will
520                                                 decline media offers not using the AVPF or SAVPF profile.
521                                         </para><para>
522                                                 If set to <literal>no</literal>, res_pjsip will use the AVP or SAVP RTP
523                                                 profile for all media offers on outbound calls and media updates, and will
524                                                 decline media offers not using the AVP or SAVP profile.
525                                         </para></description>
526                                 </configOption>
527                                 <configOption name="force_avp" default="no">
528                                         <synopsis>Determines whether res_pjsip will use and enforce usage of AVP,
529                                         regardless of the RTP profile in use for this endpoint.</synopsis>
530                                         <description><para>
531                                                 If set to <literal>yes</literal>, res_pjsip will use the AVP, AVPF, SAVP, or
532                                                 SAVPF RTP profile for all media offers on outbound calls and media updates including
533                                                 those for DTLS-SRTP streams.
534                                         </para><para>
535                                                 If set to <literal>no</literal>, res_pjsip will use the respective RTP profile
536                                                 depending on configuration.
537                                         </para></description>
538                                 </configOption>
539                                 <configOption name="media_use_received_transport" default="no">
540                                         <synopsis>Determines whether res_pjsip will use the media transport received in the
541                                         offer SDP in the corresponding answer SDP.</synopsis>
542                                         <description><para>
543                                                 If set to <literal>yes</literal>, res_pjsip will use the received media transport.
544                                         </para><para>
545                                                 If set to <literal>no</literal>, res_pjsip will use the respective RTP profile
546                                                 depending on configuration.
547                                         </para></description>
548                                 </configOption>
549                                 <configOption name="media_encryption" default="no">
550                                         <synopsis>Determines whether res_pjsip will use and enforce usage of media encryption
551                                         for this endpoint.</synopsis>
552                                         <description>
553                                                 <enumlist>
554                                                         <enum name="no"><para>
555                                                                 res_pjsip will offer no encryption and allow no encryption to be setup.
556                                                         </para></enum>
557                                                         <enum name="sdes"><para>
558                                                                 res_pjsip will offer standard SRTP setup via in-SDP keys. Encrypted SIP
559                                                                 transport should be used in conjunction with this option to prevent
560                                                                 exposure of media encryption keys.
561                                                         </para></enum>
562                                                         <enum name="dtls"><para>
563                                                                 res_pjsip will offer DTLS-SRTP setup.
564                                                         </para></enum>
565                                                 </enumlist>
566                                         </description>
567                                 </configOption>
568                                 <configOption name="media_encryption_optimistic" default="no">
569                                         <synopsis>Determines whether encryption should be used if possible but does not terminate the
570                                         session if not achieved.</synopsis>
571                                         <description><para>
572                                                 This option only applies if <replaceable>media_encryption</replaceable> is
573                                                 set to <literal>sdes</literal> or <literal>dtls</literal>.
574                                         </para></description>
575                                 </configOption>
576                                 <configOption name="g726_non_standard" default="no">
577                                         <synopsis>Force g.726 to use AAL2 packing order when negotiating g.726 audio</synopsis>
578                                         <description><para>
579                                                 When set to "yes" and an endpoint negotiates g.726 audio then use g.726 for AAL2
580                                                 packing order instead of what is recommended by RFC3551. Since this essentially
581                                                 replaces the underlying 'g726' codec with 'g726aal2' then 'g726aal2' needs to be
582                                                 specified in the endpoint's allowed codec list.
583                                         </para></description>
584                                 </configOption>
585                                 <configOption name="inband_progress" default="no">
586                                         <synopsis>Determines whether chan_pjsip will indicate ringing using inband
587                                                 progress.</synopsis>
588                                         <description><para>
589                                                 If set to <literal>yes</literal>, chan_pjsip will send a 183 Session Progress
590                                                 when told to indicate ringing and will immediately start sending ringing
591                                                 as audio.
592                                         </para><para>
593                                                 If set to <literal>no</literal>, chan_pjsip will send a 180 Ringing when told
594                                                 to indicate ringing and will NOT send it as audio.
595                                         </para></description>
596                                 </configOption>
597                                 <configOption name="call_group">
598                                         <synopsis>The numeric pickup groups for a channel.</synopsis>
599                                         <description><para>
600                                                 Can be set to a comma separated list of numbers or ranges between the values
601                                                 of 0-63 (maximum of 64 groups).
602                                         </para></description>
603                                 </configOption>
604                                 <configOption name="pickup_group">
605                                         <synopsis>The numeric pickup groups that a channel can pickup.</synopsis>
606                                         <description><para>
607                                                 Can be set to a comma separated list of numbers or ranges between the values
608                                                 of 0-63 (maximum of 64 groups).
609                                         </para></description>
610                                 </configOption>
611                                 <configOption name="named_call_group">
612                                         <synopsis>The named pickup groups for a channel.</synopsis>
613                                         <description><para>
614                                                 Can be set to a comma separated list of case sensitive strings limited by
615                                                 supported line length.
616                                         </para></description>
617                                 </configOption>
618                                 <configOption name="named_pickup_group">
619                                         <synopsis>The named pickup groups that a channel can pickup.</synopsis>
620                                         <description><para>
621                                                 Can be set to a comma separated list of case sensitive strings limited by
622                                                 supported line length.
623                                         </para></description>
624                                 </configOption>
625                                 <configOption name="device_state_busy_at" default="0">
626                                         <synopsis>The number of in-use channels which will cause busy to be returned as device state</synopsis>
627                                         <description><para>
628                                                 When the number of in-use channels for the endpoint matches the devicestate_busy_at setting the
629                                                 PJSIP channel driver will return busy as the device state instead of in use.
630                                         </para></description>
631                                 </configOption>
632                                 <configOption name="t38_udptl" default="no">
633                                         <synopsis>Whether T.38 UDPTL support is enabled or not</synopsis>
634                                         <description><para>
635                                                 If set to yes T.38 UDPTL support will be enabled, and T.38 negotiation requests will be accepted
636                                                 and relayed.
637                                         </para></description>
638                                 </configOption>
639                                 <configOption name="t38_udptl_ec" default="none">
640                                         <synopsis>T.38 UDPTL error correction method</synopsis>
641                                         <description>
642                                                 <enumlist>
643                                                         <enum name="none"><para>
644                                                                 No error correction should be used.
645                                                         </para></enum>
646                                                         <enum name="fec"><para>
647                                                                 Forward error correction should be used.
648                                                         </para></enum>
649                                                         <enum name="redundancy"><para>
650                                                                 Redundacy error correction should be used.
651                                                         </para></enum>
652                                                 </enumlist>
653                                         </description>
654                                 </configOption>
655                                 <configOption name="t38_udptl_maxdatagram" default="0">
656                                         <synopsis>T.38 UDPTL maximum datagram size</synopsis>
657                                         <description><para>
658                                                 This option can be set to override the maximum datagram of a remote endpoint for broken
659                                                 endpoints.
660                                         </para></description>
661                                 </configOption>
662                                 <configOption name="fax_detect" default="no">
663                                         <synopsis>Whether CNG tone detection is enabled</synopsis>
664                                         <description><para>
665                                                 This option can be set to send the session to the fax extension when a CNG tone is
666                                                 detected.
667                                         </para></description>
668                                 </configOption>
669                                 <configOption name="fax_detect_timeout">
670                                         <synopsis>How long into a call before fax_detect is disabled for the call</synopsis>
671                                         <description><para>
672                                                 The option determines how many seconds into a call before the
673                                                 fax_detect option is disabled for the call.  Setting the value
674                                                 to zero disables the timeout.
675                                         </para></description>
676                                 </configOption>
677                                 <configOption name="t38_udptl_nat" default="no">
678                                         <synopsis>Whether NAT support is enabled on UDPTL sessions</synopsis>
679                                         <description><para>
680                                                 When enabled the UDPTL stack will send UDPTL packets to the source address of
681                                                 received packets.
682                                         </para></description>
683                                 </configOption>
684                                 <configOption name="t38_udptl_ipv6" default="no">
685                                         <synopsis>Whether IPv6 is used for UDPTL Sessions</synopsis>
686                                         <description><para>
687                                                 When enabled the UDPTL stack will use IPv6.
688                                         </para></description>
689                                 </configOption>
690                                 <configOption name="tone_zone">
691                                         <synopsis>Set which country's indications to use for channels created for this endpoint.</synopsis>
692                                 </configOption>
693                                 <configOption name="language">
694                                         <synopsis>Set the default language to use for channels created for this endpoint.</synopsis>
695                                 </configOption>
696                                 <configOption name="one_touch_recording" default="no">
697                                         <synopsis>Determines whether one-touch recording is allowed for this endpoint.</synopsis>
698                                         <see-also>
699                                                 <ref type="configOption">record_on_feature</ref>
700                                                 <ref type="configOption">record_off_feature</ref>
701                                         </see-also>
702                                 </configOption>
703                                 <configOption name="record_on_feature" default="automixmon">
704                                         <synopsis>The feature to enact when one-touch recording is turned on.</synopsis>
705                                         <description>
706                                                 <para>When an INFO request for one-touch recording arrives with a Record header set to "on", this
707                                                 feature will be enabled for the channel. The feature designated here can be any built-in
708                                                 or dynamic feature defined in features.conf.</para>
709                                                 <note><para>This setting has no effect if the endpoint's one_touch_recording option is disabled</para></note>
710                                         </description>
711                                         <see-also>
712                                                 <ref type="configOption">one_touch_recording</ref>
713                                                 <ref type="configOption">record_off_feature</ref>
714                                         </see-also>
715                                 </configOption>
716                                 <configOption name="record_off_feature" default="automixmon">
717                                         <synopsis>The feature to enact when one-touch recording is turned off.</synopsis>
718                                         <description>
719                                                 <para>When an INFO request for one-touch recording arrives with a Record header set to "off", this
720                                                 feature will be enabled for the channel. The feature designated here can be any built-in
721                                                 or dynamic feature defined in features.conf.</para>
722                                                 <note><para>This setting has no effect if the endpoint's one_touch_recording option is disabled</para></note>
723                                         </description>
724                                         <see-also>
725                                                 <ref type="configOption">one_touch_recording</ref>
726                                                 <ref type="configOption">record_on_feature</ref>
727                                         </see-also>
728                                 </configOption>
729                                 <configOption name="rtp_engine" default="asterisk">
730                                         <synopsis>Name of the RTP engine to use for channels created for this endpoint</synopsis>
731                                 </configOption>
732                                 <configOption name="allow_transfer" default="yes">
733                                         <synopsis>Determines whether SIP REFER transfers are allowed for this endpoint</synopsis>
734                                 </configOption>
735                                 <configOption name="user_eq_phone" default="no">
736                                         <synopsis>Determines whether a user=phone parameter is placed into the request URI if the user is determined to be a phone number</synopsis>
737                                 </configOption>
738                                 <configOption name="moh_passthrough" default="no">
739                                         <synopsis>Determines whether hold and unhold will be passed through using re-INVITEs with recvonly and sendrecv to the remote side</synopsis>
740                                 </configOption>
741                                 <configOption name="sdp_owner" default="-">
742                                         <synopsis>String placed as the username portion of an SDP origin (o=) line.</synopsis>
743                                 </configOption>
744                                 <configOption name="sdp_session" default="Asterisk">
745                                         <synopsis>String used for the SDP session (s=) line.</synopsis>
746                                 </configOption>
747                                 <configOption name="tos_audio">
748                                         <synopsis>DSCP TOS bits for audio streams</synopsis>
749                                         <description><para>
750                                                 See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for more information about QoS settings
751                                         </para></description>
752                                 </configOption>
753                                 <configOption name="tos_video">
754                                         <synopsis>DSCP TOS bits for video streams</synopsis>
755                                         <description><para>
756                                                 See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for more information about QoS settings
757                                         </para></description>
758                                 </configOption>
759                                 <configOption name="cos_audio">
760                                         <synopsis>Priority for audio streams</synopsis>
761                                         <description><para>
762                                                 See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for more information about QoS settings
763                                         </para></description>
764                                 </configOption>
765                                 <configOption name="cos_video">
766                                         <synopsis>Priority for video streams</synopsis>
767                                         <description><para>
768                                                 See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for more information about QoS settings
769                                         </para></description>
770                                 </configOption>
771                                 <configOption name="allow_subscribe" default="yes">
772                                         <synopsis>Determines if endpoint is allowed to initiate subscriptions with Asterisk.</synopsis>
773                                 </configOption>
774                                 <configOption name="sub_min_expiry" default="60">
775                                         <synopsis>The minimum allowed expiry time for subscriptions initiated by the endpoint.</synopsis>
776                                 </configOption>
777                                 <configOption name="from_user">
778                                         <synopsis>Username to use in From header for requests to this endpoint.</synopsis>
779                                 </configOption>
780                                 <configOption name="mwi_from_user">
781                                         <synopsis>Username to use in From header for unsolicited MWI NOTIFYs to this endpoint.</synopsis>
782                                 </configOption>
783                                 <configOption name="from_domain">
784                                         <synopsis>Domain to user in From header for requests to this endpoint.</synopsis>
785                                 </configOption>
786                                 <configOption name="dtls_verify">
787                                         <synopsis>Verify that the provided peer certificate is valid</synopsis>
788                                         <description><para>
789                                                 This option only applies if <replaceable>media_encryption</replaceable> is
790                                                 set to <literal>dtls</literal>.
791                                         </para></description>
792                                 </configOption>
793                                 <configOption name="dtls_rekey">
794                                         <synopsis>Interval at which to renegotiate the TLS session and rekey the SRTP session</synopsis>
795                                         <description><para>
796                                                 This option only applies if <replaceable>media_encryption</replaceable> is
797                                                 set to <literal>dtls</literal>.
798                                         </para><para>
799                                                 If this is not set or the value provided is 0 rekeying will be disabled.
800                                         </para></description>
801                                 </configOption>
802                                 <configOption name="dtls_auto_generate_cert" default="no">
803                                         <synopsis>Whether or not to automatically generate an ephemeral X.509 certificate</synopsis>
804                                         <description>
805                                                 <para>
806                                                         If enabled, Asterisk will generate an X.509 certificate for each DTLS session.
807                                                         This option only applies if <replaceable>media_encryption</replaceable> is set
808                                                         to <literal>dtls</literal>. This option will be automatically enabled if
809                                                         <literal>webrtc</literal> is enabled and <literal>dtls_cert_file</literal> is
810                                                         not specified.
811                                                 </para>
812                                         </description>
813                                 </configOption>
814                                 <configOption name="dtls_cert_file">
815                                         <synopsis>Path to certificate file to present to peer</synopsis>
816                                         <description><para>
817                                                 This option only applies if <replaceable>media_encryption</replaceable> is
818                                                 set to <literal>dtls</literal>.
819                                         </para></description>
820                                 </configOption>
821                                 <configOption name="dtls_private_key">
822                                         <synopsis>Path to private key for certificate file</synopsis>
823                                         <description><para>
824                                                 This option only applies if <replaceable>media_encryption</replaceable> is
825                                                 set to <literal>dtls</literal>.
826                                         </para></description>
827                                 </configOption>
828                                 <configOption name="dtls_cipher">
829                                         <synopsis>Cipher to use for DTLS negotiation</synopsis>
830                                         <description><para>
831                                                 This option only applies if <replaceable>media_encryption</replaceable> is
832                                                 set to <literal>dtls</literal>.
833                                         </para>
834                                         <para>Many options for acceptable ciphers. See link for more:</para>
835                                         <para>http://www.openssl.org/docs/apps/ciphers.html#CIPHER_STRINGS
836                                         </para></description>
837                                 </configOption>
838                                 <configOption name="dtls_ca_file">
839                                         <synopsis>Path to certificate authority certificate</synopsis>
840                                         <description><para>
841                                                 This option only applies if <replaceable>media_encryption</replaceable> is
842                                                 set to <literal>dtls</literal>.
843                                         </para></description>
844                                 </configOption>
845                                 <configOption name="dtls_ca_path">
846                                         <synopsis>Path to a directory containing certificate authority certificates</synopsis>
847                                         <description><para>
848                                                 This option only applies if <replaceable>media_encryption</replaceable> is
849                                                 set to <literal>dtls</literal>.
850                                         </para></description>
851                                 </configOption>
852                                 <configOption name="dtls_setup">
853                                         <synopsis>Whether we are willing to accept connections, connect to the other party, or both.</synopsis>
854                                         <description>
855                                                 <para>
856                                                         This option only applies if <replaceable>media_encryption</replaceable> is
857                                                         set to <literal>dtls</literal>.
858                                                 </para>
859                                                 <enumlist>
860                                                         <enum name="active"><para>
861                                                                 res_pjsip will make a connection to the peer.
862                                                         </para></enum>
863                                                         <enum name="passive"><para>
864                                                                 res_pjsip will accept connections from the peer.
865                                                         </para></enum>
866                                                         <enum name="actpass"><para>
867                                                                 res_pjsip will offer and accept connections from the peer.
868                                                         </para></enum>
869                                                 </enumlist>
870                                         </description>
871                                 </configOption>
872                                 <configOption name="dtls_fingerprint">
873                                         <synopsis>Type of hash to use for the DTLS fingerprint in the SDP.</synopsis>
874                                         <description>
875                                                 <para>
876                                                         This option only applies if <replaceable>media_encryption</replaceable> is
877                                                         set to <literal>dtls</literal>.
878                                                 </para>
879                                                 <enumlist>
880                                                         <enum name="SHA-256"></enum>
881                                                         <enum name="SHA-1"></enum>
882                                                 </enumlist>
883                                         </description>
884                                 </configOption>
885                                 <configOption name="srtp_tag_32">
886                                         <synopsis>Determines whether 32 byte tags should be used instead of 80 byte tags.</synopsis>
887                                         <description><para>
888                                                 This option only applies if <replaceable>media_encryption</replaceable> is
889                                                 set to <literal>sdes</literal> or <literal>dtls</literal>.
890                                         </para></description>
891                                 </configOption>
892                                 <configOption name="set_var">
893                                         <synopsis>Variable set on a channel involving the endpoint.</synopsis>
894                                         <description><para>
895                                                 When a new channel is created using the endpoint set the specified
896                                                 variable(s) on that channel. For multiple channel variables specify
897                                                 multiple 'set_var'(s).
898                                         </para></description>
899                                 </configOption>
900                                 <configOption name="message_context">
901                                         <synopsis>Context to route incoming MESSAGE requests to.</synopsis>
902                                         <description><para>
903                                                 If specified, incoming MESSAGE requests will be routed to the indicated
904                                                 dialplan context. If no <replaceable>message_context</replaceable> is
905                                                 specified, then the <replaceable>context</replaceable> setting is used.
906                                         </para></description>
907                                 </configOption>
908                                 <configOption name="accountcode">
909                                         <synopsis>An accountcode to set automatically on any channels created for this endpoint.</synopsis>
910                                         <description><para>
911                                                 If specified, any channel created for this endpoint will automatically
912                                                 have this accountcode set on it.
913                                         </para></description>
914                                 </configOption>
915                                 <configOption name="preferred_codec_only" default="no">
916                                         <synopsis>Respond to a SIP invite with the single most preferred codec rather than advertising all joint codec capabilities. This limits the other side's codec choice to exactly what we prefer.</synopsis>
917                                 </configOption>
918                                 <configOption name="rtp_keepalive">
919                                         <synopsis>Number of seconds between RTP comfort noise keepalive packets.</synopsis>
920                                         <description><para>
921                                                 At the specified interval, Asterisk will send an RTP comfort noise frame. This may
922                                                 be useful for situations where Asterisk is behind a NAT or firewall and must keep
923                                                 a hole open in order to allow for media to arrive at Asterisk.
924                                         </para></description>
925                                 </configOption>
926                                 <configOption name="rtp_timeout" default="0">
927                                         <synopsis>Maximum number of seconds without receiving RTP (while off hold) before terminating call.</synopsis>
928                                         <description><para>
929                                                 This option configures the number of seconds without RTP (while off hold) before
930                                                 considering a channel as dead. When the number of seconds is reached the underlying
931                                                 channel is hung up. By default this option is set to 0, which means do not check.
932                                         </para></description>
933                                 </configOption>
934                                 <configOption name="rtp_timeout_hold" default="0">
935                                         <synopsis>Maximum number of seconds without receiving RTP (while on hold) before terminating call.</synopsis>
936                                         <description><para>
937                                                 This option configures the number of seconds without RTP (while on hold) before
938                                                 considering a channel as dead. When the number of seconds is reached the underlying
939                                                 channel is hung up. By default this option is set to 0, which means do not check.
940                                         </para></description>
941                                 </configOption>
942                                 <configOption name="acl">
943                                         <synopsis>List of IP ACL section names in acl.conf</synopsis>
944                                         <description><para>
945                                                 This matches sections configured in <literal>acl.conf</literal>. The value is
946                                                 defined as a list of comma-delimited section names.
947                                         </para></description>
948                                 </configOption>
949                                 <configOption name="deny">
950                                         <synopsis>List of IP addresses to deny access from</synopsis>
951                                         <description><para>
952                                                 The value is a comma-delimited list of IP addresses. IP addresses may
953                                                 have a subnet mask appended. The subnet mask may be written in either
954                                                 CIDR or dotted-decimal notation. Separate the IP address and subnet
955                                                 mask with a slash ('/')
956                                         </para></description>
957                                 </configOption>
958                                 <configOption name="permit">
959                                         <synopsis>List of IP addresses to permit access from</synopsis>
960                                         <description><para>
961                                                 The value is a comma-delimited list of IP addresses. IP addresses may
962                                                 have a subnet mask appended. The subnet mask may be written in either
963                                                 CIDR or dotted-decimal notation. Separate the IP address and subnet
964                                                 mask with a slash ('/')
965                                         </para></description>
966                                 </configOption>
967                                 <configOption name="contact_acl">
968                                         <synopsis>List of Contact ACL section names in acl.conf</synopsis>
969                                         <description><para>
970                                                 This matches sections configured in <literal>acl.conf</literal>. The value is
971                                                 defined as a list of comma-delimited section names.
972                                         </para></description>
973                                 </configOption>
974                                 <configOption name="contact_deny">
975                                         <synopsis>List of Contact header addresses to deny</synopsis>
976                                         <description><para>
977                                                 The value is a comma-delimited list of IP addresses. IP addresses may
978                                                 have a subnet mask appended. The subnet mask may be written in either
979                                                 CIDR or dotted-decimal notation. Separate the IP address and subnet
980                                                 mask with a slash ('/')
981                                         </para></description>
982                                 </configOption>
983                                 <configOption name="contact_permit">
984                                         <synopsis>List of Contact header addresses to permit</synopsis>
985                                         <description><para>
986                                                 The value is a comma-delimited list of IP addresses. IP addresses may
987                                                 have a subnet mask appended. The subnet mask may be written in either
988                                                 CIDR or dotted-decimal notation. Separate the IP address and subnet
989                                                 mask with a slash ('/')
990                                         </para></description>
991                                 </configOption>
992                                 <configOption name="subscribe_context">
993                                         <synopsis>Context for incoming MESSAGE requests.</synopsis>
994                                         <description><para>
995                                                 If specified, incoming SUBSCRIBE requests will be searched for the matching
996                                                 extension in the indicated context.
997                                                 If no <replaceable>subscribe_context</replaceable> is specified,
998                                                 then the <replaceable>context</replaceable> setting is used.
999                                         </para></description>
1000                                 </configOption>
1001                                 <configOption name="contact_user" default="">
1002                                         <synopsis>Force the user on the outgoing Contact header to this value.</synopsis>
1003                                         <description><para>
1004                                                 On outbound requests, force the user portion of the Contact header to this value.
1005                                         </para></description>
1006                                 </configOption>
1007                                 <configOption name="asymmetric_rtp_codec" default="no">
1008                                         <synopsis>Allow the sending and receiving RTP codec to differ</synopsis>
1009                                         <description><para>
1010                                                 When set to "yes" the codec in use for sending will be allowed to differ from
1011                                                 that of the received one. PJSIP will not automatically switch the sending one
1012                                                 to the receiving one.
1013                                         </para></description>
1014                                 </configOption>
1015                                 <configOption name="rtcp_mux" default="no">
1016                                         <synopsis>Enable RFC 5761 RTCP multiplexing on the RTP port</synopsis>
1017                                         <description><para>
1018                                                 With this option enabled, Asterisk will attempt to negotiate the use of the "rtcp-mux"
1019                                                 attribute on all media streams. This will result in RTP and RTCP being sent and received
1020                                                 on the same port. This shifts the demultiplexing logic to the application rather than
1021                                                 the transport layer. This option is useful when interoperating with WebRTC endpoints
1022                                                 since they mandate this option's use.
1023                                         </para></description>
1024                                 </configOption>
1025                                 <configOption name="refer_blind_progress" default="yes">
1026                                         <synopsis>Whether to notifies all the progress details on blind transfer</synopsis>
1027                                         <description><para>
1028                                                 Some SIP phones (Mitel/Aastra, Snom) expect a sip/frag "200 OK"
1029                                                 after REFER has been accepted. If set to <literal>no</literal> then asterisk
1030                                                 will not send the progress details, but immediately will send "200 OK".
1031                                         </para></description>
1032                                 </configOption>
1033                                 <configOption name="notify_early_inuse_ringing" default="no">
1034                                         <synopsis>Whether to notifies dialog-info 'early' on InUse&amp;Ringing state</synopsis>
1035                                         <description><para>
1036                                                 Control whether dialog-info subscriptions get 'early' state
1037                                                 on Ringing when already INUSE.
1038                                         </para></description>
1039                                 </configOption>
1040                                 <configOption name="max_audio_streams" default="1">
1041                                         <synopsis>The maximum number of allowed audio streams for the endpoint</synopsis>
1042                                         <description><para>
1043                                                 This option enforces a limit on the maximum simultaneous negotiated audio
1044                                                 streams allowed for the endpoint.
1045                                         </para></description>
1046                                 </configOption>
1047                                 <configOption name="max_video_streams" default="1">
1048                                         <synopsis>The maximum number of allowed video streams for the endpoint</synopsis>
1049                                         <description><para>
1050                                                 This option enforces a limit on the maximum simultaneous negotiated video
1051                                                 streams allowed for the endpoint.
1052                                         </para></description>
1053                                 </configOption>
1054                                 <configOption name="bundle" default="no">
1055                                         <synopsis>Enable RTP bundling</synopsis>
1056                                         <description><para>
1057                                                 With this option enabled, Asterisk will attempt to negotiate the use of bundle.
1058                                                 If negotiated this will result in multiple RTP streams being carried over the same
1059                                                 underlying transport. Note that enabling bundle will also enable the rtcp_mux option.
1060                                         </para></description>
1061                                 </configOption>
1062                                 <configOption name="webrtc" default="no">
1063                                         <synopsis>Defaults and enables some options that are relevant to WebRTC</synopsis>
1064                                         <description><para>
1065                                                 When set to "yes" this also enables the following values that are needed in
1066                                                 order for basic WebRTC support to work: rtcp_mux, use_avpf, ice_support, and
1067                                                 use_received_transport. The following configuration settings also get defaulted
1068                                                 as follows:</para>
1069                                                 <para>media_encryption=dtls</para>
1070                                                 <para>dtls_auto_generate_cert=yes (if dtls_cert_file is not set)</para>
1071                                                 <para>dtls_verify=fingerprint</para>
1072                                                 <para>dtls_setup=actpass</para>
1073                                         </description>
1074                                 </configOption>
1075                                 <configOption name="incoming_mwi_mailbox">
1076                                         <synopsis>Mailbox name to use when incoming MWI NOTIFYs are received</synopsis>
1077                                         <description><para>
1078                                                 If an MWI NOTIFY is received <emphasis>from</emphasis> this endpoint,
1079                                                 this mailbox will be used when notifying other modules of MWI status
1080                                                 changes.  If not set, incoming MWI NOTIFYs are ignored.
1081                                         </para></description>
1082                                 </configOption>
1083                         </configObject>
1084                         <configObject name="auth">
1085                                 <synopsis>Authentication type</synopsis>
1086                                 <description><para>
1087                                         Authentication objects hold the authentication information for use
1088                                         by other objects such as <literal>endpoints</literal> or <literal>registrations</literal>.
1089                                         This also allows for multiple objects to use a single auth object. See
1090                                         the <literal>auth_type</literal> config option for password style choices.
1091                                 </para></description>
1092                                 <configOption name="auth_type" default="userpass">
1093                                         <synopsis>Authentication type</synopsis>
1094                                         <description><para>
1095                                                 This option specifies which of the password style config options should be read
1096                                                 when trying to authenticate an endpoint inbound request. If set to <literal>userpass</literal>
1097                                                 then we'll read from the 'password' option. For <literal>md5</literal> we'll read
1098                                                 from 'md5_cred'.
1099                                                 </para>
1100                                                 <enumlist>
1101                                                         <enum name="md5"/>
1102                                                         <enum name="userpass"/>
1103                                                 </enumlist>
1104                                         </description>
1105                                 </configOption>
1106                                 <configOption name="nonce_lifetime" default="32">
1107                                         <synopsis>Lifetime of a nonce associated with this authentication config.</synopsis>
1108                                 </configOption>
1109                                 <configOption name="md5_cred">
1110                                         <synopsis>MD5 Hash used for authentication.</synopsis>
1111                                         <description><para>Only used when auth_type is <literal>md5</literal>.</para></description>
1112                                 </configOption>
1113                                 <configOption name="password">
1114                                         <synopsis>PlainText password used for authentication.</synopsis>
1115                                         <description><para>Only used when auth_type is <literal>userpass</literal>.</para></description>
1116                                 </configOption>
1117                                 <configOption name="realm">
1118                                         <synopsis>SIP realm for endpoint</synopsis>
1119                                         <description><para>
1120                                                 The treatment of this value depends upon how the authentication
1121                                                 object is used.
1122                                                 </para><para>
1123                                                 When used as an inbound authentication object, the realm is sent
1124                                                 as part of the challenge so the peer can know which key to use
1125                                                 when responding.  An empty value will use the
1126                                                 <replaceable>global</replaceable> section's
1127                                                 <literal>default_realm</literal> value when issuing a challenge.
1128                                                 </para><para>
1129                                                 When used as an outbound authentication object, the realm is
1130                                                 matched with the received challenge realm to determine which
1131                                                 authentication object to use when responding to the challenge.  An
1132                                                 empty value matches any challenging realm when determining
1133                                                 which authentication object matches a received challenge.
1134                                                 </para>
1135                                                 <note><para>
1136                                                 Using the same auth section for inbound and outbound
1137                                                 authentication is not recommended.  There is a difference in
1138                                                 meaning for an empty realm setting between inbound and outbound
1139                                                 authentication uses.</para></note>
1140                                         </description>
1141                                 </configOption>
1142                                 <configOption name="type">
1143                                         <synopsis>Must be 'auth'</synopsis>
1144                                 </configOption>
1145                                 <configOption name="username">
1146                                         <synopsis>Username to use for account</synopsis>
1147                                 </configOption>
1148                         </configObject>
1149                         <configObject name="domain_alias">
1150                                 <synopsis>Domain Alias</synopsis>
1151                                 <description><para>
1152                                         Signifies that a domain is an alias. If the domain on a session is
1153                                         not found to match an AoR then this object is used to see if we have
1154                                         an alias for the AoR to which the endpoint is binding. This objects
1155                                         name as defined in configuration should be the domain alias and a
1156                                         config option is provided to specify the domain to be aliased.
1157                                 </para></description>
1158                                 <configOption name="type">
1159                                         <synopsis>Must be of type 'domain_alias'.</synopsis>
1160                                 </configOption>
1161                                 <configOption name="domain">
1162                                         <synopsis>Domain to be aliased</synopsis>
1163                                 </configOption>
1164                         </configObject>
1165                         <configObject name="transport">
1166                                 <synopsis>SIP Transport</synopsis>
1167                                 <description><para>
1168                                         <emphasis>Transports</emphasis>
1169                                         </para>
1170                                         <para>There are different transports and protocol derivatives
1171                                                 supported by <literal>res_pjsip</literal>. They are in order of
1172                                                 preference: UDP, TCP, and WebSocket (WS).</para>
1173                                         <note><para>Changes to transport configuration in pjsip.conf will only be
1174                                                 effected on a complete restart of Asterisk. A module reload
1175                                                 will not suffice.</para></note>
1176                                 </description>
1177                                 <configOption name="async_operations" default="1">
1178                                         <synopsis>Number of simultaneous Asynchronous Operations</synopsis>
1179                                 </configOption>
1180                                 <configOption name="bind">
1181                                         <synopsis>IP Address and optional port to bind to for this transport</synopsis>
1182                                 </configOption>
1183                                 <configOption name="ca_list_file">
1184                                         <synopsis>File containing a list of certificates to read (TLS ONLY)</synopsis>
1185                                 </configOption>
1186                                 <configOption name="ca_list_path">
1187                                         <synopsis>Path to directory containing a list of certificates to read (TLS ONLY)</synopsis>
1188                                 </configOption>
1189                                 <configOption name="cert_file">
1190                                         <synopsis>Certificate file for endpoint (TLS ONLY)</synopsis>
1191                                         <description><para>
1192                                                 A path to a .crt or .pem file can be provided.  However, only
1193                                                 the certificate is read from the file, not the private key.
1194                                                 The <literal>priv_key_file</literal> option must supply a
1195                                                 matching key file.
1196                                         </para></description>
1197                                 </configOption>
1198                                 <configOption name="cipher">
1199                                         <synopsis>Preferred cryptography cipher names (TLS ONLY)</synopsis>
1200                                         <description>
1201                                         <para>Comma separated list of cipher names or numeric equivalents.
1202                                                 Numeric equivalents can be either decimal or hexadecimal (0xX).
1203                                         </para>
1204                                         <para>There are many cipher names.  Use the CLI command
1205                                                 <literal>pjsip list ciphers</literal> to see a list of cipher
1206                                                 names available for your installation.  See link for more:</para>
1207                                         <para>http://www.openssl.org/docs/apps/ciphers.html#CIPHER_SUITE_NAMES
1208                                         </para>
1209                                         </description>
1210                                 </configOption>
1211                                 <configOption name="domain">
1212                                         <synopsis>Domain the transport comes from</synopsis>
1213                                 </configOption>
1214                                 <configOption name="external_media_address">
1215                                         <synopsis>External IP address to use in RTP handling</synopsis>
1216                                         <description><para>
1217                                                 When a request or response is sent out, if the destination of the
1218                                                 message is outside the IP network defined in the option <literal>localnet</literal>,
1219                                                 and the media address in the SDP is within the localnet network, then the
1220                                                 media address in the SDP will be rewritten to the value defined for
1221                                                 <literal>external_media_address</literal>.
1222                                         </para></description>
1223                                 </configOption>
1224                                 <configOption name="external_signaling_address">
1225                                         <synopsis>External address for SIP signalling</synopsis>
1226                                 </configOption>
1227                                 <configOption name="external_signaling_port" default="0">
1228                                         <synopsis>External port for SIP signalling</synopsis>
1229                                 </configOption>
1230                                 <configOption name="method">
1231                                         <synopsis>Method of SSL transport (TLS ONLY)</synopsis>
1232                                         <description>
1233                                                 <enumlist>
1234                                                         <enum name="default">
1235                                                                 <para>The default as defined by PJSIP. This is currently TLSv1, but may change with future releases.</para>
1236                                                         </enum>
1237                                                         <enum name="unspecified">
1238                                                                 <para>This option is equivalent to setting 'default'</para>
1239                                                         </enum>
1240                                                         <enum name="tlsv1" />
1241                                                         <enum name="tlsv1_1" />
1242                                                         <enum name="tlsv1_2" />
1243                                                         <enum name="sslv2" />
1244                                                         <enum name="sslv3" />
1245                                                         <enum name="sslv23" />
1246                                                 </enumlist>
1247                                         </description>
1248                                 </configOption>
1249                                 <configOption name="local_net">
1250                                         <synopsis>Network to consider local (used for NAT purposes).</synopsis>
1251                                         <description><para>This must be in CIDR or dotted decimal format with the IP
1252                                         and mask separated with a slash ('/').</para></description>
1253                                 </configOption>
1254                                 <configOption name="password">
1255                                         <synopsis>Password required for transport</synopsis>
1256                                 </configOption>
1257                                 <configOption name="priv_key_file">
1258                                         <synopsis>Private key file (TLS ONLY)</synopsis>
1259                                 </configOption>
1260                                 <configOption name="protocol" default="udp">
1261                                         <synopsis>Protocol to use for SIP traffic</synopsis>
1262                                         <description>
1263                                                 <enumlist>
1264                                                         <enum name="udp" />
1265                                                         <enum name="tcp" />
1266                                                         <enum name="tls" />
1267                                                         <enum name="ws" />
1268                                                         <enum name="wss" />
1269                                                 </enumlist>
1270                                         </description>
1271                                 </configOption>
1272                                 <configOption name="require_client_cert" default="false">
1273                                         <synopsis>Require client certificate (TLS ONLY)</synopsis>
1274                                 </configOption>
1275                                 <configOption name="type">
1276                                         <synopsis>Must be of type 'transport'.</synopsis>
1277                                 </configOption>
1278                                 <configOption name="verify_client" default="false">
1279                                         <synopsis>Require verification of client certificate (TLS ONLY)</synopsis>
1280                                 </configOption>
1281                                 <configOption name="verify_server" default="false">
1282                                         <synopsis>Require verification of server certificate (TLS ONLY)</synopsis>
1283                                 </configOption>
1284                                 <configOption name="tos" default="false">
1285                                         <synopsis>Enable TOS for the signalling sent over this transport</synopsis>
1286                                         <description>
1287                                         <para>See <literal>https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service</literal>
1288                                         for more information on this parameter.</para>
1289                                         <note><para>This option does not apply to the <replaceable>ws</replaceable>
1290                                         or the <replaceable>wss</replaceable> protocols.</para></note>
1291                                         </description>
1292                                 </configOption>
1293                                 <configOption name="cos" default="false">
1294                                         <synopsis>Enable COS for the signalling sent over this transport</synopsis>
1295                                         <description>
1296                                         <para>See <literal>https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service</literal>
1297                                         for more information on this parameter.</para>
1298                                         <note><para>This option does not apply to the <replaceable>ws</replaceable>
1299                                         or the <replaceable>wss</replaceable> protocols.</para></note>
1300                                         </description>
1301                                 </configOption>
1302                                 <configOption name="websocket_write_timeout">
1303                                         <synopsis>The timeout (in milliseconds) to set on WebSocket connections.</synopsis>
1304                                         <description>
1305                                                 <para>If a websocket connection accepts input slowly, the timeout
1306                                                 for writes to it can be increased to keep it from being disconnected.
1307                                                 Value is in milliseconds; default is 100 ms.</para>
1308                                         </description>
1309                                 </configOption>
1310                                 <configOption name="allow_reload" default="no">
1311                                         <synopsis>Allow this transport to be reloaded.</synopsis>
1312                                         <description>
1313                                                 <para>Allow this transport to be reloaded when res_pjsip is reloaded.
1314                                                 This option defaults to "no" because reloading a transport may disrupt
1315                                                 in-progress calls.</para>
1316                                         </description>
1317                                 </configOption>
1318                                 <configOption name="symmetric_transport" default="no">
1319                                         <synopsis>Use the same transport for outgoing reqests as incoming ones.</synopsis>
1320                                         <description>
1321                                                 <para>When a request from a dynamic contact
1322                                                         comes in on a transport with this option set to 'yes',
1323                                                         the transport name will be saved and used for subsequent
1324                                                         outgoing requests like OPTIONS, NOTIFY and INVITE.  It's
1325                                                         saved as a contact uri parameter named 'x-ast-txp' and will
1326                                                         display with the contact uri in CLI, AMI, and ARI output.
1327                                                         On the outgoing request, if a transport wasn't explicitly
1328                                                         set on the endpoint AND the request URI is not a hostname,
1329                                                         the saved transport will be used and the 'x-ast-txp'
1330                                                         parameter stripped from the outgoing packet.
1331                                                 </para>
1332                                         </description>
1333                                 </configOption>
1334                         </configObject>
1335                         <configObject name="contact">
1336                                 <synopsis>A way of creating an aliased name to a SIP URI</synopsis>
1337                                 <description><para>
1338                                         Contacts are a way to hide SIP URIs from the dialplan directly.
1339                                         They are also used to make a group of contactable parties when
1340                                         in use with <literal>AoR</literal> lists.
1341                                 </para></description>
1342                                 <configOption name="type">
1343                                         <synopsis>Must be of type 'contact'.</synopsis>
1344                                 </configOption>
1345                                 <configOption name="uri">
1346                                         <synopsis>SIP URI to contact peer</synopsis>
1347                                 </configOption>
1348                                 <configOption name="expiration_time">
1349                                         <synopsis>Time to keep alive a contact</synopsis>
1350                                         <description><para>
1351                                                 Time to keep alive a contact. String style specification.
1352                                         </para></description>
1353                                 </configOption>
1354                                 <configOption name="qualify_frequency" default="0">
1355                                         <synopsis>Interval at which to qualify a contact</synopsis>
1356                                         <description><para>
1357                                                 Interval between attempts to qualify the contact for reachability.
1358                                                 If <literal>0</literal> never qualify. Time in seconds.
1359                                         </para></description>
1360                                 </configOption>
1361                                 <configOption name="qualify_timeout" default="3.0">
1362                                         <synopsis>Timeout for qualify</synopsis>
1363                                         <description><para>
1364                                                 If the contact doesn't repond to the OPTIONS request before the timeout,
1365                                                 the contact is marked unavailable.
1366                                                 If <literal>0</literal> no timeout. Time in fractional seconds.
1367                                         </para></description>
1368                                 </configOption>
1369                                 <configOption name="authenticate_qualify" default="no">
1370                                         <synopsis>Authenticates a qualify request if needed</synopsis>
1371                                         <description><para>
1372                                                 If true and a qualify request receives a challenge or authenticate response
1373                                                 authentication is attempted before declaring the contact available.
1374                                         </para></description>
1375                                 </configOption>
1376                                 <configOption name="outbound_proxy">
1377                                         <synopsis>Outbound proxy used when sending OPTIONS request</synopsis>
1378                                         <description><para>
1379                                                 If set the provided URI will be used as the outbound proxy when an
1380                                                 OPTIONS request is sent to a contact for qualify purposes.
1381                                         </para></description>
1382                                 </configOption>
1383                                 <configOption name="path">
1384                                         <synopsis>Stored Path vector for use in Route headers on outgoing requests.</synopsis>
1385                                 </configOption>
1386                                 <configOption name="user_agent">
1387                                         <synopsis>User-Agent header from registration.</synopsis>
1388                                         <description><para>
1389                                                 The User-Agent is automatically stored based on data present in incoming SIP
1390                                                 REGISTER requests and is not intended to be configured manually.
1391                                         </para></description>
1392                                 </configOption>
1393                                 <configOption name="endpoint">
1394                                         <synopsis>Endpoint name</synopsis>
1395                                         <description><para>
1396                                                 The name of the endpoint this contact belongs to
1397                                         </para></description>
1398                                 </configOption>
1399                                 <configOption name="reg_server">
1400                                         <synopsis>Asterisk Server name</synopsis>
1401                                         <description><para>
1402                                                 Asterisk Server name on which SIP endpoint registered.
1403                                         </para></description>
1404                                 </configOption>
1405                                 <configOption name="via_addr">
1406                                         <synopsis>IP-address of the last Via header from registration.</synopsis>
1407                                         <description><para>
1408                                                 The last Via header should contain the address of UA which sent the request.
1409                                                 The IP-address of the last Via header is automatically stored based on data present
1410                                                 in incoming SIP REGISTER requests and is not intended to be configured manually.
1411                                         </para></description>
1412                                 </configOption>
1413                                 <configOption name="via_port">
1414                                         <synopsis>IP-port of the last Via header from registration.</synopsis>
1415                                         <description><para>
1416                                                 The IP-port of the last Via header is automatically stored based on data present
1417                                                 in incoming SIP REGISTER requests and is not intended to be configured manually.
1418                                         </para></description>
1419                                 </configOption>
1420                                 <configOption name="call_id">
1421                                         <synopsis>Call-ID header from registration.</synopsis>
1422                                         <description><para>
1423                                                 The Call-ID header is automatically stored based on data present
1424                                                 in incoming SIP REGISTER requests and is not intended to be configured manually.
1425                                         </para></description>
1426                                 </configOption>
1427                                 <configOption name="prune_on_boot">
1428                                         <synopsis>A contact that cannot survive a restart/boot.</synopsis>
1429                                         <description><para>
1430                                                 The option is set if the incoming SIP REGISTER contact is rewritten
1431                                                 on a reliable transport and is not intended to be configured manually.
1432                                         </para></description>
1433                                 </configOption>
1434                         </configObject>
1435                         <configObject name="aor">
1436                                 <synopsis>The configuration for a location of an endpoint</synopsis>
1437                                 <description><para>
1438                                         An AoR is what allows Asterisk to contact an endpoint via res_pjsip. If no
1439                                         AoRs are specified, an endpoint will not be reachable by Asterisk.
1440                                         Beyond that, an AoR has other uses within Asterisk, such as inbound
1441                                         registration.
1442                                         </para><para>
1443                                         An <literal>AoR</literal> is a way to allow dialing a group
1444                                         of <literal>Contacts</literal> that all use the same
1445                                         <literal>endpoint</literal> for calls.
1446                                         </para><para>
1447                                         This can be used as another way of grouping a list of contacts to dial
1448                                         rather than specifing them each directly when dialing via the dialplan.
1449                                         This must be used in conjuction with the <literal>PJSIP_DIAL_CONTACTS</literal>.
1450                                         </para><para>
1451                                         Registrations: For Asterisk to match an inbound registration to an endpoint,
1452                                         the AoR object name must match the user portion of the SIP URI in the "To:"
1453                                         header of the inbound SIP registration. That will usually be equivalent
1454                                         to the "user name" set in your hard or soft phones configuration.
1455                                 </para></description>
1456                                 <configOption name="contact">
1457                                         <synopsis>Permanent contacts assigned to AoR</synopsis>
1458                                         <description><para>
1459                                                 Contacts specified will be called whenever referenced
1460                                                 by <literal>chan_pjsip</literal>.
1461                                                 </para><para>
1462                                                 Use a separate "contact=" entry for each contact required. Contacts
1463                                                 are specified using a SIP URI.
1464                                         </para></description>
1465                                 </configOption>
1466                                 <configOption name="default_expiration" default="3600">
1467                                         <synopsis>Default expiration time in seconds for contacts that are dynamically bound to an AoR.</synopsis>
1468                                 </configOption>
1469                                 <configOption name="mailboxes">
1470                                         <synopsis>Allow subscriptions for the specified mailbox(es)</synopsis>
1471                                         <description><para>This option applies when an external entity subscribes to an AoR
1472                                                 for Message Waiting Indications. The mailboxes specified will be subscribed to.
1473                                                 More than one mailbox can be specified with a comma-delimited string.
1474                                                 app_voicemail mailboxes must be specified as mailbox@context;
1475                                                 for example: mailboxes=6001@default. For mailboxes provided by external sources,
1476                                                 such as through the res_external_mwi module, you must specify strings supported by
1477                                                 the external system.
1478                                         </para><para>
1479                                                 For endpoints that cannot SUBSCRIBE for MWI, you can set the <literal>mailboxes</literal> option in your
1480                                                 endpoint configuration section to enable unsolicited MWI NOTIFYs to the endpoint.
1481                                         </para></description>
1482                                 </configOption>
1483                                 <configOption name="voicemail_extension">
1484                                         <synopsis>The voicemail extension to send in the NOTIFY Message-Account header</synopsis>
1485                                 </configOption>
1486                                 <configOption name="maximum_expiration" default="7200">
1487                                         <synopsis>Maximum time to keep an AoR</synopsis>
1488                                         <description><para>
1489                                                 Maximium time to keep a peer with explicit expiration. Time in seconds.
1490                                         </para></description>
1491                                 </configOption>
1492                                 <configOption name="max_contacts" default="0">
1493                                         <synopsis>Maximum number of contacts that can bind to an AoR</synopsis>
1494                                         <description><para>
1495                                                 Maximum number of contacts that can associate with this AoR. This value does
1496                                                 not affect the number of contacts that can be added with the "contact" option.
1497                                                 It only limits contacts added through external interaction, such as
1498                                                 registration.
1499                                                 </para>
1500                                                 <note><para>The <replaceable>rewrite_contact</replaceable> option
1501                                                 registers the source address as the contact address to help with
1502                                                 NAT and reusing connection oriented transports such as TCP and
1503                                                 TLS.  Unfortunately, refreshing a registration may register a
1504                                                 different contact address and exceed
1505                                                 <replaceable>max_contacts</replaceable>.  The
1506                                                 <replaceable>remove_existing</replaceable> option can help by
1507                                                 removing the soonest to expire contact(s) over
1508                                                 <replaceable>max_contacts</replaceable> which is likely the
1509                                                 old <replaceable>rewrite_contact</replaceable> contact source
1510                                                 address being refreshed.
1511                                                 </para></note>
1512                                                 <note><para>This should be set to <literal>1</literal> and
1513                                                 <replaceable>remove_existing</replaceable> set to <literal>yes</literal> if you
1514                                                 wish to stick with the older <literal>chan_sip</literal> behaviour.
1515                                                 </para></note>
1516                                         </description>
1517                                 </configOption>
1518                                 <configOption name="minimum_expiration" default="60">
1519                                         <synopsis>Minimum keep alive time for an AoR</synopsis>
1520                                         <description><para>
1521                                                 Minimum time to keep a peer with an explicit expiration. Time in seconds.
1522                                         </para></description>
1523                                 </configOption>
1524                                 <configOption name="remove_existing" default="no">
1525                                         <synopsis>Determines whether new contacts replace existing ones.</synopsis>
1526                                         <description><para>
1527                                                 On receiving a new registration to the AoR should it remove enough
1528                                                 existing contacts not added or updated by the registration to
1529                                                 satisfy <replaceable>max_contacts</replaceable>?  Any removed
1530                                                 contacts will expire the soonest.
1531                                                 </para>
1532                                                 <note><para>The <replaceable>rewrite_contact</replaceable> option
1533                                                 registers the source address as the contact address to help with
1534                                                 NAT and reusing connection oriented transports such as TCP and
1535                                                 TLS.  Unfortunately, refreshing a registration may register a
1536                                                 different contact address and exceed
1537                                                 <replaceable>max_contacts</replaceable>.  The
1538                                                 <replaceable>remove_existing</replaceable> option can help by
1539                                                 removing the soonest to expire contact(s) over
1540                                                 <replaceable>max_contacts</replaceable> which is likely the
1541                                                 old <replaceable>rewrite_contact</replaceable> contact source
1542                                                 address being refreshed.
1543                                                 </para></note>
1544                                                 <note><para>This should be set to <literal>yes</literal> and
1545                                                 <replaceable>max_contacts</replaceable> set to <literal>1</literal> if you
1546                                                 wish to stick with the older <literal>chan_sip</literal> behaviour.
1547                                                 </para></note>
1548                                         </description>
1549                                 </configOption>
1550                                 <configOption name="type">
1551                                         <synopsis>Must be of type 'aor'.</synopsis>
1552                                 </configOption>
1553                                 <configOption name="qualify_frequency" default="0">
1554                                         <synopsis>Interval at which to qualify an AoR</synopsis>
1555                                         <description><para>
1556                                                 Interval between attempts to qualify the AoR for reachability.
1557                                                 If <literal>0</literal> never qualify. Time in seconds.
1558                                         </para></description>
1559                                 </configOption>
1560                                 <configOption name="qualify_timeout" default="3.0">
1561                                         <synopsis>Timeout for qualify</synopsis>
1562                                         <description><para>
1563                                                 If the contact doesn't repond to the OPTIONS request before the timeout,
1564                                                 the contact is marked unavailable.
1565                                                 If <literal>0</literal> no timeout. Time in fractional seconds.
1566                                         </para></description>
1567                                 </configOption>
1568                                 <configOption name="authenticate_qualify" default="no">
1569                                         <synopsis>Authenticates a qualify request if needed</synopsis>
1570                                         <description><para>
1571                                                 If true and a qualify request receives a challenge or authenticate response
1572                                                 authentication is attempted before declaring the contact available.
1573                                         </para></description>
1574                                 </configOption>
1575                                 <configOption name="outbound_proxy">
1576                                         <synopsis>Outbound proxy used when sending OPTIONS request</synopsis>
1577                                         <description><para>
1578                                                 If set the provided URI will be used as the outbound proxy when an
1579                                                 OPTIONS request is sent to a contact for qualify purposes.
1580                                         </para></description>
1581                                 </configOption>
1582                                 <configOption name="support_path">
1583                                         <synopsis>Enables Path support for REGISTER requests and Route support for other requests.</synopsis>
1584                                         <description><para>
1585                                                 When this option is enabled, the Path headers in register requests will be saved
1586                                                 and its contents will be used in Route headers for outbound out-of-dialog requests
1587                                                 and in Path headers for outbound 200 responses. Path support will also be indicated
1588                                                 in the Supported header.
1589                                         </para></description>
1590                                 </configOption>
1591                         </configObject>
1592                         <configObject name="system">
1593                                 <synopsis>Options that apply to the SIP stack as well as other system-wide settings</synopsis>
1594                                 <description><para>
1595                                         The settings in this section are global. In addition to being global, the values will
1596                                         not be re-evaluated when a reload is performed. This is because the values must be set
1597                                         before the SIP stack is initialized. The only way to reset these values is to either
1598                                         restart Asterisk, or unload res_pjsip.so and then load it again.
1599                                 </para></description>
1600                                 <configOption name="timer_t1" default="500">
1601                                         <synopsis>Set transaction timer T1 value (milliseconds).</synopsis>
1602                                         <description><para>
1603                                                 Timer T1 is the base for determining how long to wait before retransmitting
1604                                                 requests that receive no response when using an unreliable transport (e.g. UDP).
1605                                                 For more information on this timer, see RFC 3261, Section 17.1.1.1.
1606                                         </para></description>
1607                                 </configOption>
1608                                 <configOption name="timer_b" default="32000">
1609                                         <synopsis>Set transaction timer B value (milliseconds).</synopsis>
1610                                         <description><para>
1611                                                 Timer B determines the maximum amount of time to wait after sending an INVITE
1612                                                 request before terminating the transaction. It is recommended that this be set
1613                                                 to 64 * Timer T1, but it may be set higher if desired. For more information on
1614                                                 this timer, see RFC 3261, Section 17.1.1.1.
1615                                         </para></description>
1616                                 </configOption>
1617                                 <configOption name="compact_headers" default="no">
1618                                         <synopsis>Use the short forms of common SIP header names.</synopsis>
1619                                 </configOption>
1620                                 <configOption name="threadpool_initial_size" default="0">
1621                                         <synopsis>Initial number of threads in the res_pjsip threadpool.</synopsis>
1622                                 </configOption>
1623                                 <configOption name="threadpool_auto_increment" default="5">
1624                                         <synopsis>The amount by which the number of threads is incremented when necessary.</synopsis>
1625                                 </configOption>
1626                                 <configOption name="threadpool_idle_timeout" default="60">
1627                                         <synopsis>Number of seconds before an idle thread should be disposed of.</synopsis>
1628                                 </configOption>
1629                                 <configOption name="threadpool_max_size" default="0">
1630                                         <synopsis>Maximum number of threads in the res_pjsip threadpool.
1631                                         A value of 0 indicates no maximum.</synopsis>
1632                                 </configOption>
1633                                 <configOption name="disable_tcp_switch" default="yes">
1634                                         <synopsis>Disable automatic switching from UDP to TCP transports.</synopsis>
1635                                         <description><para>
1636                                                 Disable automatic switching from UDP to TCP transports if outgoing
1637                                                 request is too large.  See RFC 3261 section 18.1.1.
1638                                         </para></description>
1639                                 </configOption>
1640                                 <configOption name="type">
1641                                         <synopsis>Must be of type 'system'.</synopsis>
1642                                 </configOption>
1643                         </configObject>
1644                         <configObject name="global">
1645                                 <synopsis>Options that apply globally to all SIP communications</synopsis>
1646                                 <description><para>
1647                                         The settings in this section are global. Unlike options in the <literal>system</literal>
1648                                         section, these options can be refreshed by performing a reload.
1649                                 </para></description>
1650                                 <configOption name="max_forwards" default="70">
1651                                         <synopsis>Value used in Max-Forwards header for SIP requests.</synopsis>
1652                                 </configOption>
1653                                 <configOption name="keep_alive_interval" default="0">
1654                                         <synopsis>The interval (in seconds) to send keepalives to active connection-oriented transports.</synopsis>
1655                                 </configOption>
1656                                 <configOption name="contact_expiration_check_interval" default="30">
1657                                         <synopsis>The interval (in seconds) to check for expired contacts.</synopsis>
1658                                 </configOption>
1659                                 <configOption name="disable_multi_domain" default="no">
1660                                         <synopsis>Disable Multi Domain support</synopsis>
1661                                         <description><para>
1662                                                 If disabled it can improve realtime performace by reducing number of database requsts.
1663                                         </para></description>
1664                                 </configOption>
1665                                 <configOption name="max_initial_qualify_time" default="0">
1666                                         <synopsis>The maximum amount of time from startup that qualifies should be attempted on all contacts.
1667                                         If greater than the qualify_frequency for an aor, qualify_frequency will be used instead.</synopsis>
1668                                 </configOption>
1669                                 <configOption name="unidentified_request_period" default="5">
1670                                         <synopsis>The number of seconds over which to accumulate unidentified requests.</synopsis>
1671                                         <description><para>
1672                                         If <literal>unidentified_request_count</literal> unidentified requests are received
1673                                         during <literal>unidentified_request_period</literal>, a security event will be generated.
1674                                         </para></description>
1675                                 </configOption>
1676                                 <configOption name="unidentified_request_count" default="5">
1677                                         <synopsis>The number of unidentified requests from a single IP to allow.</synopsis>
1678                                         <description><para>
1679                                         If <literal>unidentified_request_count</literal> unidentified requests are received
1680                                         during <literal>unidentified_request_period</literal>, a security event will be generated.
1681                                         </para></description>
1682                                 </configOption>
1683                                 <configOption name="unidentified_request_prune_interval" default="30">
1684                                         <synopsis>The interval at which unidentified requests are older than
1685                                         twice the unidentified_request_period are pruned.</synopsis>
1686                                 </configOption>
1687                                 <configOption name="type">
1688                                         <synopsis>Must be of type 'global'.</synopsis>
1689                                 </configOption>
1690                                 <configOption name="user_agent" default="Asterisk &lt;Asterisk Version&gt;">
1691                                         <synopsis>Value used in User-Agent header for SIP requests and Server header for SIP responses.</synopsis>
1692                                 </configOption>
1693                                 <configOption name="regcontext" default="">
1694                                         <synopsis>When set, Asterisk will dynamically create and destroy a NoOp priority 1 extension for a given
1695                                                 peer who registers or unregisters with us.</synopsis>
1696                                 </configOption>
1697                                 <configOption name="default_outbound_endpoint" default="default_outbound_endpoint">
1698                                         <synopsis>Endpoint to use when sending an outbound request to a URI without a specified endpoint.</synopsis>
1699                                 </configOption>
1700                                 <configOption name="default_voicemail_extension">
1701                                         <synopsis>The voicemail extension to send in the NOTIFY Message-Account header if not specified on endpoint or aor</synopsis>
1702                                 </configOption>
1703                                 <configOption name="debug" default="no">
1704                                         <synopsis>Enable/Disable SIP debug logging.  Valid options include yes|no or
1705                                                 a host address</synopsis>
1706                                 </configOption>
1707                                 <configOption name="endpoint_identifier_order">
1708                                         <synopsis>The order by which endpoint identifiers are processed and checked.
1709                                                 Identifier names are usually derived from and can be found in the endpoint
1710                                                 identifier module itself (res_pjsip_endpoint_identifier_*).
1711                                                 You can use the CLI command "pjsip show identifiers" to see the
1712                                                 identifiers currently available.</synopsis>
1713                                         <description>
1714                                                 <note><para>
1715                                                 One of the identifiers is "auth_username" which matches on the username in
1716                                                 an Authentication header.  This method has some security considerations because an
1717                                                 Authentication header is not present on the first message of a dialog when
1718                                                 digest authentication is used.  The client can't generate it until the server
1719                                                 sends the challenge in a 401 response.  Since Asterisk normally sends a security
1720                                                 event when an incoming request can't be matched to an endpoint, using auth_username
1721                                                 requires that the security event be deferred until a request is received with
1722                                                 the Authentication header and only generated if the username doesn't result in a
1723                                                 match.  This may result in a delay before an attack is recognized.  You can control
1724                                                 how many unmatched requests are received from a single ip address before a security
1725                                                 event is generated using the unidentified_request parameters.
1726                                                 </para></note>
1727                                         </description>
1728                                 </configOption>
1729                                 <configOption name="default_from_user" default="asterisk">
1730                                         <synopsis>When Asterisk generates an outgoing SIP request, the From header username will be
1731                                                 set to this value if there is no better option (such as CallerID) to be
1732                                                 used.</synopsis>
1733                                 </configOption>
1734                                 <configOption name="default_realm" default="asterisk">
1735                                         <synopsis>When Asterisk generates a challenge, the digest realm will be
1736                                                 set to this value if there is no better option (such as auth/realm) to be
1737                                                 used.</synopsis>
1738                                 </configOption>
1739                                 <configOption name="mwi_tps_queue_high" default="500">
1740                                         <synopsis>MWI taskprocessor high water alert trigger level.</synopsis>
1741                                         <description>
1742                                                 <para>On a heavily loaded system you may need to adjust the
1743                                                 taskprocessor queue limits.  If any taskprocessor queue size
1744                                                 reaches its high water level then pjsip will stop processing
1745                                                 new requests until the alert is cleared.  The alert clears
1746                                                 when all alerting taskprocessor queues have dropped to their
1747                                                 low water clear level.
1748                                                 </para>
1749                                         </description>
1750                                 </configOption>
1751                                 <configOption name="mwi_tps_queue_low" default="-1">
1752                                         <synopsis>MWI taskprocessor low water clear alert level.</synopsis>
1753                                         <description>
1754                                                 <para>On a heavily loaded system you may need to adjust the
1755                                                 taskprocessor queue limits.  If any taskprocessor queue size
1756                                                 reaches its high water level then pjsip will stop processing
1757                                                 new requests until the alert is cleared.  The alert clears
1758                                                 when all alerting taskprocessor queues have dropped to their
1759                                                 low water clear level.
1760                                                 </para>
1761                                                 <note><para>Set to -1 for the low water level to be 90% of
1762                                                 the high water level.</para></note>
1763                                         </description>
1764                                 </configOption>
1765                                 <configOption name="mwi_disable_initial_unsolicited" default="no">
1766                                         <synopsis>Enable/Disable sending unsolicited MWI to all endpoints on startup.</synopsis>
1767                                         <description>
1768                                                 <para>When the initial unsolicited MWI notification are
1769                                                 enabled on startup then the initial notifications
1770                                                 get sent at startup.  If you have a lot of endpoints
1771                                                 (thousands) that use unsolicited MWI then you may
1772                                                 want to consider disabling the initial startup
1773                                                 notifications.
1774                                                 </para>
1775                                                 <para>When the initial unsolicited MWI notifications are
1776                                                 disabled on startup then the notifications will start
1777                                                 on the endpoint's next contact update.
1778                                                 </para>
1779                                         </description>
1780                                 </configOption>
1781                                 <configOption name="ignore_uri_user_options">
1782                                         <synopsis>Enable/Disable ignoring SIP URI user field options.</synopsis>
1783                                         <description>
1784                                                 <para>If you have this option enabled and there are semicolons
1785                                                 in the user field of a SIP URI then the field is truncated
1786                                                 at the first semicolon.  This effectively makes the semicolon
1787                                                 a non-usable character for PJSIP endpoint names, extensions,
1788                                                 and AORs.  This can be useful for improving compatability with
1789                                                 an ITSP that likes to use user options for whatever reason.
1790                                                 </para>
1791                                                 <example title="Sample SIP URI">
1792                                                         sip:1235557890;phone-context=national@x.x.x.x;user=phone
1793                                                 </example>
1794                                                 <example title="Sample SIP URI user field">
1795                                                         1235557890;phone-context=national
1796                                                 </example>
1797                                                 <example title="Sample SIP URI user field truncated">
1798                                                         1235557890
1799                                                 </example>
1800                                                 <note><para>The caller-id and redirecting number strings
1801                                                 obtained from incoming SIP URI user fields are always truncated
1802                                                 at the first semicolon.</para></note>
1803                                         </description>
1804                                 </configOption>
1805                         </configObject>
1806                 </configFile>
1807         </configInfo>
1808         <manager name="PJSIPQualify" language="en_US">
1809                 <synopsis>
1810                         Qualify a chan_pjsip endpoint.
1811                 </synopsis>
1812                 <syntax>
1813                         <xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
1814                         <parameter name="Endpoint" required="true">
1815                                 <para>The endpoint you want to qualify.</para>
1816                         </parameter>
1817                 </syntax>
1818                 <description>
1819                         <para>Qualify a chan_pjsip endpoint.</para>
1820                 </description>
1821         </manager>
1822         <managerEvent language="en_US" name="IdentifyDetail">
1823                 <managerEventInstance class="EVENT_FLAG_COMMAND">
1824                         <synopsis>Provide details about an identify section.</synopsis>
1825                         <syntax>
1826                                 <parameter name="ObjectType">
1827                                         <para>The object's type. This will always be 'identify'.</para>
1828                                 </parameter>
1829                                 <parameter name="ObjectName">
1830                                         <para>The name of this object.</para>
1831                                 </parameter>
1832                                 <parameter name="Endpoint">
1833                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip_endpoint_identifier_ip']/configFile[@name='pjsip.conf']/configObject[@name='identify']/configOption[@name='endpoint']/synopsis/node())"/></para>
1834                                 </parameter>
1835                                 <parameter name="SrvLookups">
1836                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip_endpoint_identifier_ip']/configFile[@name='pjsip.conf']/configObject[@name='identify']/configOption[@name='srv_lookups']/synopsis/node())"/></para>
1837                                 </parameter>
1838                                 <parameter name="Match">
1839                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip_endpoint_identifier_ip']/configFile[@name='pjsip.conf']/configObject[@name='identify']/configOption[@name='match']/synopsis/node())"/></para>
1840                                 </parameter>
1841                                 <parameter name="MatchHeader">
1842                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip_endpoint_identifier_ip']/configFile[@name='pjsip.conf']/configObject[@name='identify']/configOption[@name='match_header']/synopsis/node())"/></para>
1843                                 </parameter>
1844                                 <parameter name="EndpointName">
1845                                         <para>The name of the endpoint associated with this information.</para>
1846                                 </parameter>
1847                         </syntax>
1848                 </managerEventInstance>
1849         </managerEvent>
1850         <managerEvent language="en_US" name="AorDetail">
1851                 <managerEventInstance class="EVENT_FLAG_COMMAND">
1852                         <synopsis>Provide details about an Address of Record (AoR) section.</synopsis>
1853                         <syntax>
1854                                 <parameter name="ObjectType">
1855                                         <para>The object's type. This will always be 'aor'.</para>
1856                                 </parameter>
1857                                 <parameter name="ObjectName">
1858                                         <para>The name of this object.</para>
1859                                 </parameter>
1860                                 <parameter name="MinimumExpiration">
1861                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='minimum_expiration']/synopsis/node())"/></para>
1862                                 </parameter>
1863                                 <parameter name="MaximumExpiration">
1864                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='maximum_expiration']/synopsis/node())"/></para>
1865                                 </parameter>
1866                                 <parameter name="DefaultExpiration">
1867                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='default_expiration']/synopsis/node())"/></para>
1868                                 </parameter>
1869                                 <parameter name="QualifyFrequency">
1870                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='qualify_frequency']/synopsis/node())"/></para>
1871                                 </parameter>
1872                                 <parameter name="AuthenticateQualify">
1873                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='authenticate_qualify']/synopsis/node())"/></para>
1874                                 </parameter>
1875                                 <parameter name="MaxContacts">
1876                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='max_contacts']/synopsis/node())"/></para>
1877                                 </parameter>
1878                                 <parameter name="RemoveExisting">
1879                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='remove_existing']/synopsis/node())"/></para>
1880                                 </parameter>
1881                                 <parameter name="Mailboxes">
1882                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='mailboxes']/synopsis/node())"/></para>
1883                                 </parameter>
1884                                 <parameter name="OutboundProxy">
1885                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='outbound_proxy']/synopsis/node())"/></para>
1886                                 </parameter>
1887                                 <parameter name="SupportPath">
1888                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='support_path']/synopsis/node())"/></para>
1889                                 </parameter>
1890                                 <parameter name="TotalContacts">
1891                                         <para>The total number of contacts associated with this AoR.</para>
1892                                 </parameter>
1893                                 <parameter name="ContactsRegistered">
1894                                         <para>The number of non-permanent contacts associated with this AoR.</para>
1895                                 </parameter>
1896                                 <parameter name="EndpointName">
1897                                         <para>The name of the endpoint associated with this information.</para>
1898                                 </parameter>
1899                         </syntax>
1900                 </managerEventInstance>
1901         </managerEvent>
1902         <managerEvent language="en_US" name="AuthDetail">
1903                 <managerEventInstance class="EVENT_FLAG_COMMAND">
1904                         <synopsis>Provide details about an authentication section.</synopsis>
1905                         <syntax>
1906                                 <parameter name="ObjectType">
1907                                         <para>The object's type. This will always be 'auth'.</para>
1908                                 </parameter>
1909                                 <parameter name="ObjectName">
1910                                         <para>The name of this object.</para>
1911                                 </parameter>
1912                                 <parameter name="Username">
1913                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='username']/synopsis/node())"/></para>
1914                                 </parameter>
1915                                 <parameter name="Password">
1916                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='username']/synopsis/node())"/></para>
1917                                 </parameter>
1918                                 <parameter name="Md5Cred">
1919                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='md5_cred']/synopsis/node())"/></para>
1920                                 </parameter>
1921                                 <parameter name="Realm">
1922                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='realm']/synopsis/node())"/></para>
1923                                 </parameter>
1924                                 <parameter name="NonceLifetime">
1925                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='nonce_lifetime']/synopsis/node())"/></para>
1926                                 </parameter>
1927                                 <parameter name="AuthType">
1928                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='auth_type']/synopsis/node())"/></para>
1929                                 </parameter>
1930                                 <parameter name="EndpointName">
1931                                         <para>The name of the endpoint associated with this information.</para>
1932                                 </parameter>
1933                         </syntax>
1934                 </managerEventInstance>
1935         </managerEvent>
1936         <managerEvent language="en_US" name="TransportDetail">
1937                 <managerEventInstance class="EVENT_FLAG_COMMAND">
1938                         <synopsis>Provide details about an authentication section.</synopsis>
1939                         <syntax>
1940                                 <parameter name="ObjectType">
1941                                         <para>The object's type. This will always be 'transport'.</para>
1942                                 </parameter>
1943                                 <parameter name="ObjectName">
1944                                         <para>The name of this object.</para>
1945                                 </parameter>
1946                                 <parameter name="Protocol">
1947                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='protocol']/synopsis/node())"/></para>
1948                                 </parameter>
1949                                 <parameter name="Bind">
1950                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='bind']/synopsis/node())"/></para>
1951                                 </parameter>
1952                                 <parameter name="AsycOperations">
1953                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='async_operations']/synopsis/node())"/></para>
1954                                 </parameter>
1955                                 <parameter name="CaListFile">
1956                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='ca_list_file']/synopsis/node())"/></para>
1957                                 </parameter>
1958                                 <parameter name="CaListPath">
1959                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='ca_list_path']/synopsis/node())"/></para>
1960                                 </parameter>
1961                                 <parameter name="CertFile">
1962                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='cert_file']/synopsis/node())"/></para>
1963                                 </parameter>
1964                                 <parameter name="PrivKeyFile">
1965                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='priv_key_file']/synopsis/node())"/></para>
1966                                 </parameter>
1967                                 <parameter name="Password">
1968                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='password']/synopsis/node())"/></para>
1969                                 </parameter>
1970                                 <parameter name="ExternalSignalingAddress">
1971                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='external_signaling_address']/synopsis/node())"/></para>
1972                                 </parameter>