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