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