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