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