[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                         </configObject>
1114                         <configObject name="auth">
1115                                 <synopsis>Authentication type</synopsis>
1116                                 <description><para>
1117                                         Authentication objects hold the authentication information for use
1118                                         by other objects such as <literal>endpoints</literal> or <literal>registrations</literal>.
1119                                         This also allows for multiple objects to use a single auth object. See
1120                                         the <literal>auth_type</literal> config option for password style choices.
1121                                 </para></description>
1122                                 <configOption name="auth_type" default="userpass">
1123                                         <synopsis>Authentication type</synopsis>
1124                                         <description><para>
1125                                                 This option specifies which of the password style config options should be read
1126                                                 when trying to authenticate an endpoint inbound request. If set to <literal>userpass</literal>
1127                                                 then we'll read from the 'password' option. For <literal>md5</literal> we'll read
1128                                                 from 'md5_cred'.
1129                                                 </para>
1130                                                 <enumlist>
1131                                                         <enum name="md5"/>
1132                                                         <enum name="userpass"/>
1133                                                 </enumlist>
1134                                         </description>
1135                                 </configOption>
1136                                 <configOption name="nonce_lifetime" default="32">
1137                                         <synopsis>Lifetime of a nonce associated with this authentication config.</synopsis>
1138                                 </configOption>
1139                                 <configOption name="md5_cred">
1140                                         <synopsis>MD5 Hash used for authentication.</synopsis>
1141                                         <description><para>Only used when auth_type is <literal>md5</literal>.</para></description>
1142                                 </configOption>
1143                                 <configOption name="password">
1144                                         <synopsis>Plain text password used for authentication.</synopsis>
1145                                         <description><para>Only used when auth_type is <literal>userpass</literal>.</para></description>
1146                                 </configOption>
1147                                 <configOption name="realm">
1148                                         <synopsis>SIP realm for endpoint</synopsis>
1149                                         <description><para>
1150                                                 The treatment of this value depends upon how the authentication
1151                                                 object is used.
1152                                                 </para><para>
1153                                                 When used as an inbound authentication object, the realm is sent
1154                                                 as part of the challenge so the peer can know which key to use
1155                                                 when responding.  An empty value will use the
1156                                                 <replaceable>global</replaceable> section's
1157                                                 <literal>default_realm</literal> value when issuing a challenge.
1158                                                 </para><para>
1159                                                 When used as an outbound authentication object, the realm is
1160                                                 matched with the received challenge realm to determine which
1161                                                 authentication object to use when responding to the challenge.  An
1162                                                 empty value matches any challenging realm when determining
1163                                                 which authentication object matches a received challenge.
1164                                                 </para>
1165                                                 <note><para>
1166                                                 Using the same auth section for inbound and outbound
1167                                                 authentication is not recommended.  There is a difference in
1168                                                 meaning for an empty realm setting between inbound and outbound
1169                                                 authentication uses.</para></note>
1170                                         </description>
1171                                 </configOption>
1172                                 <configOption name="type">
1173                                         <synopsis>Must be 'auth'</synopsis>
1174                                 </configOption>
1175                                 <configOption name="username">
1176                                         <synopsis>Username to use for account</synopsis>
1177                                 </configOption>
1178                         </configObject>
1179                         <configObject name="domain_alias">
1180                                 <synopsis>Domain Alias</synopsis>
1181                                 <description><para>
1182                                         Signifies that a domain is an alias. If the domain on a session is
1183                                         not found to match an AoR then this object is used to see if we have
1184                                         an alias for the AoR to which the endpoint is binding. This objects
1185                                         name as defined in configuration should be the domain alias and a
1186                                         config option is provided to specify the domain to be aliased.
1187                                 </para></description>
1188                                 <configOption name="type">
1189                                         <synopsis>Must be of type 'domain_alias'.</synopsis>
1190                                 </configOption>
1191                                 <configOption name="domain">
1192                                         <synopsis>Domain to be aliased</synopsis>
1193                                 </configOption>
1194                         </configObject>
1195                         <configObject name="transport">
1196                                 <synopsis>SIP Transport</synopsis>
1197                                 <description><para>
1198                                         <emphasis>Transports</emphasis>
1199                                         </para>
1200                                         <para>There are different transports and protocol derivatives
1201                                                 supported by <literal>res_pjsip</literal>. They are in order of
1202                                                 preference: UDP, TCP, and WebSocket (WS).</para>
1203                                         <note><para>Changes to transport configuration in pjsip.conf will only be
1204                                                 effected on a complete restart of Asterisk. A module reload
1205                                                 will not suffice.</para></note>
1206                                 </description>
1207                                 <configOption name="async_operations" default="1">
1208                                         <synopsis>Number of simultaneous Asynchronous Operations</synopsis>
1209                                 </configOption>
1210                                 <configOption name="bind">
1211                                         <synopsis>IP Address and optional port to bind to for this transport</synopsis>
1212                                 </configOption>
1213                                 <configOption name="ca_list_file">
1214                                         <synopsis>File containing a list of certificates to read (TLS ONLY, not WSS)</synopsis>
1215                                 </configOption>
1216                                 <configOption name="ca_list_path">
1217                                         <synopsis>Path to directory containing a list of certificates to read (TLS ONLY, not WSS)</synopsis>
1218                                 </configOption>
1219                                 <configOption name="cert_file">
1220                                         <synopsis>Certificate file for endpoint (TLS ONLY, not WSS)</synopsis>
1221                                         <description><para>
1222                                                 A path to a .crt or .pem file can be provided.  However, only
1223                                                 the certificate is read from the file, not the private key.
1224                                                 The <literal>priv_key_file</literal> option must supply a
1225                                                 matching key file.
1226                                         </para></description>
1227                                 </configOption>
1228                                 <configOption name="cipher">
1229                                         <synopsis>Preferred cryptography cipher names (TLS ONLY, not WSS)</synopsis>
1230                                         <description>
1231                                         <para>Comma separated list of cipher names or numeric equivalents.
1232                                                 Numeric equivalents can be either decimal or hexadecimal (0xX).
1233                                         </para>
1234                                         <para>There are many cipher names.  Use the CLI command
1235                                                 <literal>pjsip list ciphers</literal> to see a list of cipher
1236                                                 names available for your installation.  See link for more:</para>
1237                                         <para>http://www.openssl.org/docs/apps/ciphers.html#CIPHER_SUITE_NAMES
1238                                         </para>
1239                                         </description>
1240                                 </configOption>
1241                                 <configOption name="domain">
1242                                         <synopsis>Domain the transport comes from</synopsis>
1243                                 </configOption>
1244                                 <configOption name="external_media_address">
1245                                         <synopsis>External IP address to use in RTP handling</synopsis>
1246                                         <description><para>
1247                                                 When a request or response is sent out, if the destination of the
1248                                                 message is outside the IP network defined in the option <literal>localnet</literal>,
1249                                                 and the media address in the SDP is within the localnet network, then the
1250                                                 media address in the SDP will be rewritten to the value defined for
1251                                                 <literal>external_media_address</literal>.
1252                                         </para></description>
1253                                 </configOption>
1254                                 <configOption name="external_signaling_address">
1255                                         <synopsis>External address for SIP signalling</synopsis>
1256                                 </configOption>
1257                                 <configOption name="external_signaling_port" default="0">
1258                                         <synopsis>External port for SIP signalling</synopsis>
1259                                 </configOption>
1260                                 <configOption name="method">
1261                                         <synopsis>Method of SSL transport (TLS ONLY, not WSS)</synopsis>
1262                                         <description>
1263                                                 <enumlist>
1264                                                         <enum name="default">
1265                                                                 <para>The default as defined by PJSIP. This is currently TLSv1, but may change with future releases.</para>
1266                                                         </enum>
1267                                                         <enum name="unspecified">
1268                                                                 <para>This option is equivalent to setting 'default'</para>
1269                                                         </enum>
1270                                                         <enum name="tlsv1" />
1271                                                         <enum name="tlsv1_1" />
1272                                                         <enum name="tlsv1_2" />
1273                                                         <enum name="sslv2" />
1274                                                         <enum name="sslv3" />
1275                                                         <enum name="sslv23" />
1276                                                 </enumlist>
1277                                         </description>
1278                                 </configOption>
1279                                 <configOption name="local_net">
1280                                         <synopsis>Network to consider local (used for NAT purposes).</synopsis>
1281                                         <description><para>This must be in CIDR or dotted decimal format with the IP
1282                                         and mask separated with a slash ('/').</para></description>
1283                                 </configOption>
1284                                 <configOption name="password">
1285                                         <synopsis>Password required for transport</synopsis>
1286                                 </configOption>
1287                                 <configOption name="priv_key_file">
1288                                         <synopsis>Private key file (TLS ONLY, not WSS)</synopsis>
1289                                 </configOption>
1290                                 <configOption name="protocol" default="udp">
1291                                         <synopsis>Protocol to use for SIP traffic</synopsis>
1292                                         <description>
1293                                                 <enumlist>
1294                                                         <enum name="udp" />
1295                                                         <enum name="tcp" />
1296                                                         <enum name="tls" />
1297                                                         <enum name="ws" />
1298                                                         <enum name="wss" />
1299                                                 </enumlist>
1300                                         </description>
1301                                 </configOption>
1302                                 <configOption name="require_client_cert" default="false">
1303                                         <synopsis>Require client certificate (TLS ONLY, not WSS)</synopsis>
1304                                 </configOption>
1305                                 <configOption name="type">
1306                                         <synopsis>Must be of type 'transport'.</synopsis>
1307                                 </configOption>
1308                                 <configOption name="verify_client" default="false">
1309                                         <synopsis>Require verification of client certificate (TLS ONLY, not WSS)</synopsis>
1310                                 </configOption>
1311                                 <configOption name="verify_server" default="false">
1312                                         <synopsis>Require verification of server certificate (TLS ONLY, not WSS)</synopsis>
1313                                 </configOption>
1314                                 <configOption name="tos" default="false">
1315                                         <synopsis>Enable TOS for the signalling sent over this transport</synopsis>
1316                                         <description>
1317                                         <para>See <literal>https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service</literal>
1318                                         for more information on this parameter.</para>
1319                                         <note><para>This option does not apply to the <replaceable>ws</replaceable>
1320                                         or the <replaceable>wss</replaceable> protocols.</para></note>
1321                                         </description>
1322                                 </configOption>
1323                                 <configOption name="cos" default="false">
1324                                         <synopsis>Enable COS for the signalling sent over this transport</synopsis>
1325                                         <description>
1326                                         <para>See <literal>https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service</literal>
1327                                         for more information on this parameter.</para>
1328                                         <note><para>This option does not apply to the <replaceable>ws</replaceable>
1329                                         or the <replaceable>wss</replaceable> protocols.</para></note>
1330                                         </description>
1331                                 </configOption>
1332                                 <configOption name="websocket_write_timeout">
1333                                         <synopsis>The timeout (in milliseconds) to set on WebSocket connections.</synopsis>
1334                                         <description>
1335                                                 <para>If a websocket connection accepts input slowly, the timeout
1336                                                 for writes to it can be increased to keep it from being disconnected.
1337                                                 Value is in milliseconds; default is 100 ms.</para>
1338                                         </description>
1339                                 </configOption>
1340                                 <configOption name="allow_reload" default="no">
1341                                         <synopsis>Allow this transport to be reloaded.</synopsis>
1342                                         <description>
1343                                                 <para>Allow this transport to be reloaded when res_pjsip is reloaded.
1344                                                 This option defaults to "no" because reloading a transport may disrupt
1345                                                 in-progress calls.</para>
1346                                         </description>
1347                                 </configOption>
1348                                 <configOption name="symmetric_transport" default="no">
1349                                         <synopsis>Use the same transport for outgoing requests as incoming ones.</synopsis>
1350                                         <description>
1351                                                 <para>When a request from a dynamic contact
1352                                                         comes in on a transport with this option set to 'yes',
1353                                                         the transport name will be saved and used for subsequent
1354                                                         outgoing requests like OPTIONS, NOTIFY and INVITE.  It's
1355                                                         saved as a contact uri parameter named 'x-ast-txp' and will
1356                                                         display with the contact uri in CLI, AMI, and ARI output.
1357                                                         On the outgoing request, if a transport wasn't explicitly
1358                                                         set on the endpoint AND the request URI is not a hostname,
1359                                                         the saved transport will be used and the 'x-ast-txp'
1360                                                         parameter stripped from the outgoing packet.
1361                                                 </para>
1362                                         </description>
1363                                 </configOption>
1364                         </configObject>
1365                         <configObject name="contact">
1366                                 <synopsis>A way of creating an aliased name to a SIP URI</synopsis>
1367                                 <description><para>
1368                                         Contacts are a way to hide SIP URIs from the dialplan directly.
1369                                         They are also used to make a group of contactable parties when
1370                                         in use with <literal>AoR</literal> lists.
1371                                 </para></description>
1372                                 <configOption name="type">
1373                                         <synopsis>Must be of type 'contact'.</synopsis>
1374                                 </configOption>
1375                                 <configOption name="uri">
1376                                         <synopsis>SIP URI to contact peer</synopsis>
1377                                 </configOption>
1378                                 <configOption name="expiration_time">
1379                                         <synopsis>Time to keep alive a contact</synopsis>
1380                                         <description><para>
1381                                                 Time to keep alive a contact. String style specification.
1382                                         </para></description>
1383                                 </configOption>
1384                                 <configOption name="qualify_frequency" default="0">
1385                                         <synopsis>Interval at which to qualify a contact</synopsis>
1386                                         <description><para>
1387                                                 Interval between attempts to qualify the contact for reachability.
1388                                                 If <literal>0</literal> never qualify. Time in seconds.
1389                                         </para></description>
1390                                 </configOption>
1391                                 <configOption name="qualify_timeout" default="3.0">
1392                                         <synopsis>Timeout for qualify</synopsis>
1393                                         <description><para>
1394                                                 If the contact doesn't respond to the OPTIONS request before the timeout,
1395                                                 the contact is marked unavailable.
1396                                                 If <literal>0</literal> no timeout. Time in fractional seconds.
1397                                         </para></description>
1398                                 </configOption>
1399                                 <configOption name="authenticate_qualify">
1400                                         <synopsis>Authenticates a qualify challenge response if needed</synopsis>
1401                                         <description>
1402                                                 <para>If true and a qualify request receives a challenge response then
1403                                                 authentication is attempted before declaring the contact available.
1404                                                 </para>
1405                                                 <note><para>This option does nothing as we will always complete
1406                                                 the challenge response authentication if the qualify request is
1407                                                 challenged.
1408                                                 </para></note>
1409                                         </description>
1410                                 </configOption>
1411                                 <configOption name="outbound_proxy">
1412                                         <synopsis>Outbound proxy used when sending OPTIONS request</synopsis>
1413                                         <description><para>
1414                                                 If set the provided URI will be used as the outbound proxy when an
1415                                                 OPTIONS request is sent to a contact for qualify purposes.
1416                                         </para></description>
1417                                 </configOption>
1418                                 <configOption name="path">
1419                                         <synopsis>Stored Path vector for use in Route headers on outgoing requests.</synopsis>
1420                                 </configOption>
1421                                 <configOption name="user_agent">
1422                                         <synopsis>User-Agent header from registration.</synopsis>
1423                                         <description><para>
1424                                                 The User-Agent is automatically stored based on data present in incoming SIP
1425                                                 REGISTER requests and is not intended to be configured manually.
1426                                         </para></description>
1427                                 </configOption>
1428                                 <configOption name="endpoint">
1429                                         <synopsis>Endpoint name</synopsis>
1430                                         <description><para>
1431                                                 The name of the endpoint this contact belongs to
1432                                         </para></description>
1433                                 </configOption>
1434                                 <configOption name="reg_server">
1435                                         <synopsis>Asterisk Server name</synopsis>
1436                                         <description><para>
1437                                                 Asterisk Server name on which SIP endpoint registered.
1438                                         </para></description>
1439                                 </configOption>
1440                                 <configOption name="via_addr">
1441                                         <synopsis>IP-address of the last Via header from registration.</synopsis>
1442                                         <description><para>
1443                                                 The last Via header should contain the address of UA which sent the request.
1444                                                 The IP-address of the last Via header is automatically stored based on data present
1445                                                 in incoming SIP REGISTER requests and is not intended to be configured manually.
1446                                         </para></description>
1447                                 </configOption>
1448                                 <configOption name="via_port">
1449                                         <synopsis>IP-port of the last Via header from registration.</synopsis>
1450                                         <description><para>
1451                                                 The IP-port of the last Via header is automatically stored based on data present
1452                                                 in incoming SIP REGISTER requests and is not intended to be configured manually.
1453                                         </para></description>
1454                                 </configOption>
1455                                 <configOption name="call_id">
1456                                         <synopsis>Call-ID header from registration.</synopsis>
1457                                         <description><para>
1458                                                 The Call-ID header is automatically stored based on data present
1459                                                 in incoming SIP REGISTER requests and is not intended to be configured manually.
1460                                         </para></description>
1461                                 </configOption>
1462                                 <configOption name="prune_on_boot">
1463                                         <synopsis>A contact that cannot survive a restart/boot.</synopsis>
1464                                         <description><para>
1465                                                 The option is set if the incoming SIP REGISTER contact is rewritten
1466                                                 on a reliable transport and is not intended to be configured manually.
1467                                         </para></description>
1468                                 </configOption>
1469                         </configObject>
1470                         <configObject name="aor">
1471                                 <synopsis>The configuration for a location of an endpoint</synopsis>
1472                                 <description><para>
1473                                         An AoR is what allows Asterisk to contact an endpoint via res_pjsip. If no
1474                                         AoRs are specified, an endpoint will not be reachable by Asterisk.
1475                                         Beyond that, an AoR has other uses within Asterisk, such as inbound
1476                                         registration.
1477                                         </para><para>
1478                                         An <literal>AoR</literal> is a way to allow dialing a group
1479                                         of <literal>Contacts</literal> that all use the same
1480                                         <literal>endpoint</literal> for calls.
1481                                         </para><para>
1482                                         This can be used as another way of grouping a list of contacts to dial
1483                                         rather than specifying them each directly when dialing via the dialplan.
1484                                         This must be used in conjunction with the <literal>PJSIP_DIAL_CONTACTS</literal>.
1485                                         </para><para>
1486                                         Registrations: For Asterisk to match an inbound registration to an endpoint,
1487                                         the AoR object name must match the user portion of the SIP URI in the "To:"
1488                                         header of the inbound SIP registration. That will usually be equivalent
1489                                         to the "user name" set in your hard or soft phones configuration.
1490                                 </para></description>
1491                                 <configOption name="contact">
1492                                         <synopsis>Permanent contacts assigned to AoR</synopsis>
1493                                         <description><para>
1494                                                 Contacts specified will be called whenever referenced
1495                                                 by <literal>chan_pjsip</literal>.
1496                                                 </para><para>
1497                                                 Use a separate "contact=" entry for each contact required. Contacts
1498                                                 are specified using a SIP URI.
1499                                         </para></description>
1500                                 </configOption>
1501                                 <configOption name="default_expiration" default="3600">
1502                                         <synopsis>Default expiration time in seconds for contacts that are dynamically bound to an AoR.</synopsis>
1503                                 </configOption>
1504                                 <configOption name="mailboxes">
1505                                         <synopsis>Allow subscriptions for the specified mailbox(es)</synopsis>
1506                                         <description><para>This option applies when an external entity subscribes to an AoR
1507                                                 for Message Waiting Indications. The mailboxes specified will be subscribed to.
1508                                                 More than one mailbox can be specified with a comma-delimited string.
1509                                                 app_voicemail mailboxes must be specified as mailbox@context;
1510                                                 for example: mailboxes=6001@default. For mailboxes provided by external sources,
1511                                                 such as through the res_external_mwi module, you must specify strings supported by
1512                                                 the external system.
1513                                         </para><para>
1514                                                 For endpoints that cannot SUBSCRIBE for MWI, you can set the <literal>mailboxes</literal> option in your
1515                                                 endpoint configuration section to enable unsolicited MWI NOTIFYs to the endpoint.
1516                                         </para></description>
1517                                 </configOption>
1518                                 <configOption name="voicemail_extension">
1519                                         <synopsis>The voicemail extension to send in the NOTIFY Message-Account header</synopsis>
1520                                 </configOption>
1521                                 <configOption name="maximum_expiration" default="7200">
1522                                         <synopsis>Maximum time to keep an AoR</synopsis>
1523                                         <description><para>
1524                                                 Maximum time to keep a peer with explicit expiration. Time in seconds.
1525                                         </para></description>
1526                                 </configOption>
1527                                 <configOption name="max_contacts" default="0">
1528                                         <synopsis>Maximum number of contacts that can bind to an AoR</synopsis>
1529                                         <description><para>
1530                                                 Maximum number of contacts that can associate with this AoR. This value does
1531                                                 not affect the number of contacts that can be added with the "contact" option.
1532                                                 It only limits contacts added through external interaction, such as
1533                                                 registration.
1534                                                 </para>
1535                                                 <note><para>The <replaceable>rewrite_contact</replaceable> option
1536                                                 registers the source address as the contact address to help with
1537                                                 NAT and reusing connection oriented transports such as TCP and
1538                                                 TLS.  Unfortunately, refreshing a registration may register a
1539                                                 different contact address and exceed
1540                                                 <replaceable>max_contacts</replaceable>.  The
1541                                                 <replaceable>remove_existing</replaceable> option can help by
1542                                                 removing the soonest to expire contact(s) over
1543                                                 <replaceable>max_contacts</replaceable> which is likely the
1544                                                 old <replaceable>rewrite_contact</replaceable> contact source
1545                                                 address being refreshed.
1546                                                 </para></note>
1547                                                 <note><para>This should be set to <literal>1</literal> and
1548                                                 <replaceable>remove_existing</replaceable> set to <literal>yes</literal> if you
1549                                                 wish to stick with the older <literal>chan_sip</literal> behaviour.
1550                                                 </para></note>
1551                                         </description>
1552                                 </configOption>
1553                                 <configOption name="minimum_expiration" default="60">
1554                                         <synopsis>Minimum keep alive time for an AoR</synopsis>
1555                                         <description><para>
1556                                                 Minimum time to keep a peer with an explicit expiration. Time in seconds.
1557                                         </para></description>
1558                                 </configOption>
1559                                 <configOption name="remove_existing" default="no">
1560                                         <synopsis>Determines whether new contacts replace existing ones.</synopsis>
1561                                         <description><para>
1562                                                 On receiving a new registration to the AoR should it remove enough
1563                                                 existing contacts not added or updated by the registration to
1564                                                 satisfy <replaceable>max_contacts</replaceable>?  Any removed
1565                                                 contacts will expire the soonest.
1566                                                 </para>
1567                                                 <note><para>The <replaceable>rewrite_contact</replaceable> option
1568                                                 registers the source address as the contact address to help with
1569                                                 NAT and reusing connection oriented transports such as TCP and
1570                                                 TLS.  Unfortunately, refreshing a registration may register a
1571                                                 different contact address and exceed
1572                                                 <replaceable>max_contacts</replaceable>.  The
1573                                                 <replaceable>remove_existing</replaceable> option can help by
1574                                                 removing the soonest to expire contact(s) over
1575                                                 <replaceable>max_contacts</replaceable> which is likely the
1576                                                 old <replaceable>rewrite_contact</replaceable> contact source
1577                                                 address being refreshed.
1578                                                 </para></note>
1579                                                 <note><para>This should be set to <literal>yes</literal> and
1580                                                 <replaceable>max_contacts</replaceable> set to <literal>1</literal> if you
1581                                                 wish to stick with the older <literal>chan_sip</literal> behaviour.
1582                                                 </para></note>
1583                                         </description>
1584                                 </configOption>
1585                                 <configOption name="type">
1586                                         <synopsis>Must be of type 'aor'.</synopsis>
1587                                 </configOption>
1588                                 <configOption name="qualify_frequency" default="0">
1589                                         <synopsis>Interval at which to qualify an AoR</synopsis>
1590                                         <description><para>
1591                                                 Interval between attempts to qualify the AoR for reachability.
1592                                                 If <literal>0</literal> never qualify. Time in seconds.
1593                                         </para></description>
1594                                 </configOption>
1595                                 <configOption name="qualify_timeout" default="3.0">
1596                                         <synopsis>Timeout for qualify</synopsis>
1597                                         <description><para>
1598                                                 If the contact doesn't respond to the OPTIONS request before the timeout,
1599                                                 the contact is marked unavailable.
1600                                                 If <literal>0</literal> no timeout. Time in fractional seconds.
1601                                         </para></description>
1602                                 </configOption>
1603                                 <configOption name="authenticate_qualify">
1604                                         <synopsis>Authenticates a qualify challenge response if needed</synopsis>
1605                                         <description>
1606                                                 <para>If true and a qualify request receives a challenge response then
1607                                                 authentication is attempted before declaring the contact available.
1608                                                 </para>
1609                                                 <note><para>This option does nothing as we will always complete
1610                                                 the challenge response authentication if the qualify request is
1611                                                 challenged.
1612                                                 </para></note>
1613                                         </description>
1614                                 </configOption>
1615                                 <configOption name="outbound_proxy">
1616                                         <synopsis>Outbound proxy used when sending OPTIONS request</synopsis>
1617                                         <description><para>
1618                                                 If set the provided URI will be used as the outbound proxy when an
1619                                                 OPTIONS request is sent to a contact for qualify purposes.
1620                                         </para></description>
1621                                 </configOption>
1622                                 <configOption name="support_path">
1623                                         <synopsis>Enables Path support for REGISTER requests and Route support for other requests.</synopsis>
1624                                         <description><para>
1625                                                 When this option is enabled, the Path headers in register requests will be saved
1626                                                 and its contents will be used in Route headers for outbound out-of-dialog requests
1627                                                 and in Path headers for outbound 200 responses. Path support will also be indicated
1628                                                 in the Supported header.
1629                                         </para></description>
1630                                 </configOption>
1631                         </configObject>
1632                         <configObject name="system">
1633                                 <synopsis>Options that apply to the SIP stack as well as other system-wide settings</synopsis>
1634                                 <description><para>
1635                                         The settings in this section are global. In addition to being global, the values will
1636                                         not be re-evaluated when a reload is performed. This is because the values must be set
1637                                         before the SIP stack is initialized. The only way to reset these values is to either
1638                                         restart Asterisk, or unload res_pjsip.so and then load it again.
1639                                 </para></description>
1640                                 <configOption name="timer_t1" default="500">
1641                                         <synopsis>Set transaction timer T1 value (milliseconds).</synopsis>
1642                                         <description><para>
1643                                                 Timer T1 is the base for determining how long to wait before retransmitting
1644                                                 requests that receive no response when using an unreliable transport (e.g. UDP).
1645                                                 For more information on this timer, see RFC 3261, Section
1646                                         </para></description>
1647                                 </configOption>
1648                                 <configOption name="timer_b" default="32000">
1649                                         <synopsis>Set transaction timer B value (milliseconds).</synopsis>
1650                                         <description><para>
1651                                                 Timer B determines the maximum amount of time to wait after sending an INVITE
1652                                                 request before terminating the transaction. It is recommended that this be set
1653                                                 to 64 * Timer T1, but it may be set higher if desired. For more information on
1654                                                 this timer, see RFC 3261, Section
1655                                         </para></description>
1656                                 </configOption>
1657                                 <configOption name="compact_headers" default="no">
1658                                         <synopsis>Use the short forms of common SIP header names.</synopsis>
1659                                 </configOption>
1660                                 <configOption name="threadpool_initial_size" default="0">
1661                                         <synopsis>Initial number of threads in the res_pjsip threadpool.</synopsis>
1662                                 </configOption>
1663                                 <configOption name="threadpool_auto_increment" default="5">
1664                                         <synopsis>The amount by which the number of threads is incremented when necessary.</synopsis>
1665                                 </configOption>
1666                                 <configOption name="threadpool_idle_timeout" default="60">
1667                                         <synopsis>Number of seconds before an idle thread should be disposed of.</synopsis>
1668                                 </configOption>
1669                                 <configOption name="threadpool_max_size" default="0">
1670                                         <synopsis>Maximum number of threads in the res_pjsip threadpool.
1671                                         A value of 0 indicates no maximum.</synopsis>
1672                                 </configOption>
1673                                 <configOption name="disable_tcp_switch" default="yes">
1674                                         <synopsis>Disable automatic switching from UDP to TCP transports.</synopsis>
1675                                         <description><para>
1676                                                 Disable automatic switching from UDP to TCP transports if outgoing
1677                                                 request is too large.  See RFC 3261 section 18.1.1.
1678                                         </para></description>
1679                                 </configOption>
1680                                 <configOption name="follow_early_media_fork">
1681                                         <synopsis>Follow SDP forked media when To tag is different</synopsis>
1682                                         <description><para>
1683                                                 On outgoing calls, if the UAS responds with different SDP attributes
1684                                                 on subsequent 18X or 2XX responses (such as a port update) AND the
1685                                                 To tag on the subsequent response is different than that on the previous
1686                                                 one, follow it.
1687                                                 </para>
1688                                                 <note><para>
1689                                                         This option must also be enabled on endpoints that require
1690                                                         this functionality.
1691                                                 </para></note>
1692                                         </description>
1693                                 </configOption>
1694                                 <configOption name="accept_multiple_sdp_answers">
1695                                         <synopsis>Follow SDP forked media when To tag is the same</synopsis>
1696                                         <description><para>
1697                                                 On outgoing calls, if the UAS responds with different SDP attributes
1698                                                 on non-100rel 18X or 2XX responses (such as a port update) AND the
1699                                                 To tag on the subsequent response is the same as that on the previous one,
1700                                                 process the updated SDP.
1701                                                 </para>
1702                                                 <note><para>
1703                                                         This option must also be enabled on endpoints that require
1704                                                         this functionality.
1705                                                 </para></note>
1706                                         </description>
1707                                 </configOption>
1708                                 <configOption name="type">
1709                                         <synopsis>Must be of type 'system'.</synopsis>
1710                                 </configOption>
1711                         </configObject>
1712                         <configObject name="global">
1713                                 <synopsis>Options that apply globally to all SIP communications</synopsis>
1714                                 <description><para>
1715                                         The settings in this section are global. Unlike options in the <literal>system</literal>
1716                                         section, these options can be refreshed by performing a reload.
1717                                 </para></description>
1718                                 <configOption name="max_forwards" default="70">
1719                                         <synopsis>Value used in Max-Forwards header for SIP requests.</synopsis>
1720                                 </configOption>
1721                                 <configOption name="keep_alive_interval" default="0">
1722                                         <synopsis>The interval (in seconds) to send keepalives to active connection-oriented transports.</synopsis>
1723                                 </configOption>
1724                                 <configOption name="contact_expiration_check_interval" default="30">
1725                                         <synopsis>The interval (in seconds) to check for expired contacts.</synopsis>
1726                                 </configOption>
1727                                 <configOption name="disable_multi_domain" default="no">
1728                                         <synopsis>Disable Multi Domain support</synopsis>
1729                                         <description><para>
1730                                                 If disabled it can improve realtime performance by reducing the number of database requests.
1731                                         </para></description>
1732                                 </configOption>
1733                                 <configOption name="max_initial_qualify_time" default="0">
1734                                         <synopsis>The maximum amount of time from startup that qualifies should be attempted on all contacts.
1735                                         If greater than the qualify_frequency for an aor, qualify_frequency will be used instead.</synopsis>
1736                                 </configOption>
1737                                 <configOption name="unidentified_request_period" default="5">
1738                                         <synopsis>The number of seconds over which to accumulate unidentified requests.</synopsis>
1739                                         <description><para>
1740                                         If <literal>unidentified_request_count</literal> unidentified requests are received
1741                                         during <literal>unidentified_request_period</literal>, a security event will be generated.
1742                                         </para></description>
1743                                 </configOption>
1744                                 <configOption name="unidentified_request_count" default="5">
1745                                         <synopsis>The number of unidentified requests from a single IP to allow.</synopsis>
1746                                         <description><para>
1747                                         If <literal>unidentified_request_count</literal> unidentified requests are received
1748                                         during <literal>unidentified_request_period</literal>, a security event will be generated.
1749                                         </para></description>
1750                                 </configOption>
1751                                 <configOption name="unidentified_request_prune_interval" default="30">
1752                                         <synopsis>The interval at which unidentified requests are older than
1753                                         twice the unidentified_request_period are pruned.</synopsis>
1754                                 </configOption>
1755                                 <configOption name="type">
1756                                         <synopsis>Must be of type 'global'.</synopsis>
1757                                 </configOption>
1758                                 <configOption name="user_agent" default="Asterisk &lt;Asterisk Version&gt;">
1759                                         <synopsis>Value used in User-Agent header for SIP requests and Server header for SIP responses.</synopsis>
1760                                 </configOption>
1761                                 <configOption name="regcontext" default="">
1762                                         <synopsis>When set, Asterisk will dynamically create and destroy a NoOp priority 1 extension for a given
1763                                                 peer who registers or unregisters with us.</synopsis>
1764                                 </configOption>
1765                                 <configOption name="default_outbound_endpoint" default="default_outbound_endpoint">
1766                                         <synopsis>Endpoint to use when sending an outbound request to a URI without a specified endpoint.</synopsis>
1767                                 </configOption>
1768                                 <configOption name="default_voicemail_extension">
1769                                         <synopsis>The voicemail extension to send in the NOTIFY Message-Account header if not specified on endpoint or aor</synopsis>
1770                                 </configOption>
1771                                 <configOption name="debug" default="no">
1772                                         <synopsis>Enable/Disable SIP debug logging.  Valid options include yes|no or
1773                                                 a host address</synopsis>
1774                                 </configOption>
1775                                 <configOption name="endpoint_identifier_order">
1776                                         <synopsis>The order by which endpoint identifiers are processed and checked.
1777                                                 Identifier names are usually derived from and can be found in the endpoint
1778                                                 identifier module itself (res_pjsip_endpoint_identifier_*).
1779                                                 You can use the CLI command "pjsip show identifiers" to see the
1780                                                 identifiers currently available.</synopsis>
1781                                         <description>
1782                                                 <note><para>
1783                                                 One of the identifiers is "auth_username" which matches on the username in
1784                                                 an Authentication header.  This method has some security considerations because an
1785                                                 Authentication header is not present on the first message of a dialog when
1786                                                 digest authentication is used.  The client can't generate it until the server
1787                                                 sends the challenge in a 401 response.  Since Asterisk normally sends a security
1788                                                 event when an incoming request can't be matched to an endpoint, using auth_username
1789                                                 requires that the security event be deferred until a request is received with
1790                                                 the Authentication header and only generated if the username doesn't result in a
1791                                                 match.  This may result in a delay before an attack is recognized.  You can control
1792                                                 how many unmatched requests are received from a single ip address before a security
1793                                                 event is generated using the unidentified_request parameters.
1794                                                 </para></note>
1795                                         </description>
1796                                 </configOption>
1797                                 <configOption name="default_from_user" default="asterisk">
1798                                         <synopsis>When Asterisk generates an outgoing SIP request, the From header username will be
1799                                                 set to this value if there is no better option (such as CallerID) to be
1800                                                 used.</synopsis>
1801                                 </configOption>
1802                                 <configOption name="default_realm" default="asterisk">
1803                                         <synopsis>When Asterisk generates a challenge, the digest realm will be
1804                                                 set to this value if there is no better option (such as auth/realm) to be
1805                                                 used.</synopsis>
1806                                 </configOption>
1807                                 <configOption name="mwi_tps_queue_high" default="500">
1808                                         <synopsis>MWI taskprocessor high water alert trigger level.</synopsis>
1809                                         <description>
1810                                                 <para>On a heavily loaded system you may need to adjust the
1811                                                 taskprocessor queue limits.  If any taskprocessor queue size
1812                                                 reaches its high water level then pjsip will stop processing
1813                                                 new requests until the alert is cleared.  The alert clears
1814                                                 when all alerting taskprocessor queues have dropped to their
1815                                                 low water clear level.
1816                                                 </para>
1817                                         </description>
1818                                 </configOption>
1819                                 <configOption name="mwi_tps_queue_low" default="-1">
1820                                         <synopsis>MWI taskprocessor low water clear alert level.</synopsis>
1821                                         <description>
1822                                                 <para>On a heavily loaded system you may need to adjust the
1823                                                 taskprocessor queue limits.  If any taskprocessor queue size
1824                                                 reaches its high water level then pjsip will stop processing
1825                                                 new requests until the alert is cleared.  The alert clears
1826                                                 when all alerting taskprocessor queues have dropped to their
1827                                                 low water clear level.
1828                                                 </para>
1829                                                 <note><para>Set to -1 for the low water level to be 90% of
1830                                                 the high water level.</para></note>
1831                                         </description>
1832                                 </configOption>
1833                                 <configOption name="mwi_disable_initial_unsolicited" default="no">
1834                                         <synopsis>Enable/Disable sending unsolicited MWI to all endpoints on startup.</synopsis>
1835                                         <description>
1836                                                 <para>When the initial unsolicited MWI notification are
1837                                                 enabled on startup then the initial notifications
1838                                                 get sent at startup.  If you have a lot of endpoints
1839                                                 (thousands) that use unsolicited MWI then you may
1840                                                 want to consider disabling the initial startup
1841                                                 notifications.
1842                                                 </para>
1843                                                 <para>When the initial unsolicited MWI notifications are
1844                                                 disabled on startup then the notifications will start
1845                                                 on the endpoint's next contact update.
1846                                                 </para>
1847                                         </description>
1848                                 </configOption>
1849                                 <configOption name="ignore_uri_user_options">
1850                                         <synopsis>Enable/Disable ignoring SIP URI user field options.</synopsis>
1851                                         <description>
1852                                                 <para>If you have this option enabled and there are semicolons
1853                                                 in the user field of a SIP URI then the field is truncated
1854                                                 at the first semicolon.  This effectively makes the semicolon
1855                                                 a non-usable character for PJSIP endpoint names, extensions,
1856                                                 and AORs.  This can be useful for improving compatibility with
1857                                                 an ITSP that likes to use user options for whatever reason.
1858                                                 </para>
1859                                                 <example title="Sample SIP URI">
1860                                                         sip:1235557890;phone-context=national@x.x.x.x;user=phone
1861                                                 </example>
1862                                                 <example title="Sample SIP URI user field">
1863                                                         1235557890;phone-context=national
1864                                                 </example>
1865                                                 <example title="Sample SIP URI user field truncated">
1866                                                         1235557890
1867                                                 </example>
1868                                                 <note><para>The caller-id and redirecting number strings
1869                                                 obtained from incoming SIP URI user fields are always truncated
1870                                                 at the first semicolon.</para></note>
1871                                         </description>
1872                                 </configOption>
1873                         </configObject>
1874                 </configFile>
1875         </configInfo>
1876         <manager name="PJSIPQualify" language="en_US">
1877                 <synopsis>
1878                         Qualify a chan_pjsip endpoint.
1879                 </synopsis>
1880                 <syntax>
1881                         <xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
1882                         <parameter name="Endpoint" required="true">
1883                                 <para>The endpoint you want to qualify.</para>
1884                         </parameter>
1885                 </syntax>
1886                 <description>
1887                         <para>Qualify a chan_pjsip endpoint.</para>
1888                 </description>
1889         </manager>
1890         <managerEvent language="en_US" name="IdentifyDetail">
1891                 <managerEventInstance class="EVENT_FLAG_COMMAND">
1892                         <synopsis>Provide details about an identify section.</synopsis>
1893                         <syntax>
1894                                 <parameter name="ObjectType">
1895                                         <para>The object's type. This will always be 'identify'.</para>
1896                                 </parameter>
1897                                 <parameter name="ObjectName">
1898                                         <para>The name of this object.</para>
1899                                 </parameter>
1900                                 <parameter name="Endpoint">
1901                                         <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>
1902                                 </parameter>
1903                                 <parameter name="SrvLookups">
1904                                         <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>
1905                                 </parameter>
1906                                 <parameter name="Match">
1907                                         <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>
1908                                 </parameter>
1909                                 <parameter name="MatchHeader">
1910                                         <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>
1911                                 </parameter>
1912                                 <parameter name="EndpointName">
1913                                         <para>The name of the endpoint associated with this information.</para>
1914                                 </parameter>
1915                         </syntax>
1916                 </managerEventInstance>
1917         </managerEvent>
1918         <managerEvent language="en_US" name="AorDetail">
1919                 <managerEventInstance class="EVENT_FLAG_COMMAND">
1920                         <synopsis>Provide details about an Address of Record (AoR) section.</synopsis>
1921                         <syntax>
1922                                 <parameter name="ObjectType">
1923                                         <para>The object's type. This will always be 'aor'.</para>
1924                                 </parameter>
1925                                 <parameter name="ObjectName">
1926                                         <para>The name of this object.</para>
1927                                 </parameter>
1928                                 <parameter name="MinimumExpiration">
1929                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='minimum_expiration']/synopsis/node())"/></para>
1930                                 </parameter>
1931                                 <parameter name="MaximumExpiration">
1932                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='maximum_expiration']/synopsis/node())"/></para>
1933                                 </parameter>
1934                                 <parameter name="DefaultExpiration">
1935                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='default_expiration']/synopsis/node())"/></para>
1936                                 </parameter>
1937                                 <parameter name="QualifyFrequency">
1938                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='qualify_frequency']/synopsis/node())"/></para>
1939                                 </parameter>
1940                                 <parameter name="AuthenticateQualify">
1941                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='authenticate_qualify']/synopsis/node())"/></para>
1942                                 </parameter>
1943                                 <parameter name="MaxContacts">
1944                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='max_contacts']/synopsis/node())"/></para>
1945                                 </parameter>
1946                                 <parameter name="RemoveExisting">
1947                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='remove_existing']/synopsis/node())"/></para>
1948                                 </parameter>
1949                                 <parameter name="Mailboxes">
1950                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='mailboxes']/synopsis/node())"/></para>
1951                                 </parameter>
1952                                 <parameter name="OutboundProxy">
1953                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='outbound_proxy']/synopsis/node())"/></para>
1954                                 </parameter>
1955                                 <parameter name="SupportPath">
1956                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='aor']/configOption[@name='support_path']/synopsis/node())"/></para>
1957                                 </parameter>
1958                                 <parameter name="TotalContacts">
1959                                         <para>The total number of contacts associated with this AoR.</para>
1960                                 </parameter>
1961                                 <parameter name="ContactsRegistered">
1962                                         <para>The number of non-permanent contacts associated with this AoR.</para>
1963                                 </parameter>
1964                                 <parameter name="EndpointName">
1965                                         <para>The name of the endpoint associated with this information.</para>
1966                                 </parameter>
1967                         </syntax>
1968                 </managerEventInstance>
1969         </managerEvent>
1970         <managerEvent language="en_US" name="AuthDetail">
1971                 <managerEventInstance class="EVENT_FLAG_COMMAND">
1972                         <synopsis>Provide details about an authentication section.</synopsis>
1973                         <syntax>
1974                                 <parameter name="ObjectType">
1975                                         <para>The object's type. This will always be 'auth'.</para>
1976                                 </parameter>
1977                                 <parameter name="ObjectName">
1978                                         <para>The name of this object.</para>
1979                                 </parameter>
1980                                 <parameter name="Username">
1981                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='username']/synopsis/node())"/></para>
1982                                 </parameter>
1983                                 <parameter name="Password">
1984                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='username']/synopsis/node())"/></para>
1985                                 </parameter>
1986                                 <parameter name="Md5Cred">
1987                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='md5_cred']/synopsis/node())"/></para>
1988                                 </parameter>
1989                                 <parameter name="Realm">
1990                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='realm']/synopsis/node())"/></para>
1991                                 </parameter>
1992                                 <parameter name="NonceLifetime">
1993                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='nonce_lifetime']/synopsis/node())"/></para>
1994                                 </parameter>
1995                                 <parameter name="AuthType">
1996                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='auth']/configOption[@name='auth_type']/synopsis/node())"/></para>
1997                                 </parameter>
1998                                 <parameter name="EndpointName">
1999                                         <para>The name of the endpoint associated with this information.</para>
2000                                 </parameter>
2001                         </syntax>
2002                 </managerEventInstance>
2003         </managerEvent>
2004         <managerEvent language="en_US" name="TransportDetail">
2005                 <managerEventInstance class="EVENT_FLAG_COMMAND">
2006                         <synopsis>Provide details about an authentication section.</synopsis>
2007                         <syntax>
2008                                 <parameter name="ObjectType">
2009                                         <para>The object's type. This will always be 'transport'.</para>
2010                                 </parameter>
2011                                 <parameter name="ObjectName">
2012                                         <para>The name of this object.</para>
2013                                 </parameter>
2014                                 <parameter name="Protocol">
2015                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='protocol']/synopsis/node())"/></para>
2016                                 </parameter>
2017                                 <parameter name="Bind">
2018                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='bind']/synopsis/node())"/></para>
2019                                 </parameter>
2020                                 <parameter name="AsycOperations">
2021                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='async_operations']/synopsis/node())"/></para>
2022                                 </parameter>
2023                                 <parameter name="CaListFile">
2024                                         <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>
2025                                 </parameter>
2026                                 <parameter name="CaListPath">
2027                                         <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>
2028                                 </parameter>
2029                                 <parameter name="CertFile">
2030                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='cert_file']/synopsis/node())"/></para>
2031                                 </parameter>
2032                                 <parameter name="PrivKeyFile">
2033                                         <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>
2034                                 </parameter>
2035                                 <parameter name="Password">
2036                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='password']/synopsis/node())"/></para>
2037                                 </parameter>
2038                                 <parameter name="ExternalSignalingAddress">
2039                                         <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>
2040                                 </parameter>
2041                                 <parameter name="ExternalSignalingPort">
2042                                         <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>
2043                                 </parameter>
2044                                 <parameter name="ExternalMediaAddress">
2045                                         <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>
2046                                 </parameter>
2047                                 <parameter name="Domain">
2048                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='domain']/synopsis/node())"/></para>
2049                                 </parameter>
2050                                 <parameter name="VerifyServer">
2051                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='verify_server']/synopsis/node())"/></para>
2052                                 </parameter>
2053                                 <parameter name="VerifyClient">
2054                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='verify_client']/synopsis/node())"/></para>
2055                                 </parameter>
2056                                 <parameter name="RequireClientCert">
2057                                         <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>
2058                                 </parameter>
2059                                 <parameter name="Method">
2060                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='method']/synopsis/node())"/></para>
2061                                 </parameter>
2062                                 <parameter name="Cipher">
2063                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='cipher']/synopsis/node())"/></para>
2064                                 </parameter>
2065                                 <parameter name="LocalNet">
2066                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='local_net']/synopsis/node())"/></para>
2067                                 </parameter>
2068                                 <parameter name="Tos">
2069                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='tos']/synopsis/node())"/></para>
2070                                 </parameter>
2071                                 <parameter name="Cos">
2072                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='transport']/configOption[@name='cos']/synopsis/node())"/></para>
2073                                 </parameter>
2074                                 <parameter name="WebsocketWriteTimeout">
2075                                         <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>
2076                                 </parameter>
2077                                 <parameter name="EndpointName">
2078                                         <para>The name of the endpoint associated with this information.</para>
2079                                 </parameter>
2080                         </syntax>
2081                 </managerEventInstance>
2082         </managerEvent>
2083         <managerEvent language="en_US" name="EndpointDetail">
2084                 <managerEventInstance class="EVENT_FLAG_COMMAND">
2085                         <synopsis>Provide details about an endpoint section.</synopsis>
2086                         <syntax>
2087                                 <parameter name="ObjectType">
2088                                         <para>The object's type. This will always be 'endpoint'.</para>
2089                                 </parameter>
2090                                 <parameter name="ObjectName">
2091                                         <para>The name of this object.</para>
2092                                 </parameter>
2093                                 <parameter name="Context">
2094                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='context']/synopsis/node())"/></para>
2095                                 </parameter>
2096                                 <parameter name="Disallow">
2097                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='disallow']/synopsis/node())"/></para>
2098                                 </parameter>
2099                                 <parameter name="Allow">
2100                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='allow']/synopsis/node())"/></para>
2101                                 </parameter>
2102                                 <parameter name="DtmfMode">
2103                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='dtmf_mode']/synopsis/node())"/></para>
2104                                 </parameter>
2105                                 <parameter name="RtpIpv6">
2106                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='rtp_ipv6']/synopsis/node())"/></para>
2107                                 </parameter>
2108                                 <parameter name="RtpSymmetric">
2109                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='rtp_symmetric']/synopsis/node())"/></para>
2110                                 </parameter>
2111                                 <parameter name="IceSupport">
2112                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='ice_support']/synopsis/node())"/></para>
2113                                 </parameter>
2114                                 <parameter name="UsePtime">
2115                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='use_ptime']/synopsis/node())"/></para>
2116                                 </parameter>
2117                                 <parameter name="ForceRport">
2118                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='force_rport']/synopsis/node())"/></para>
2119                                 </parameter>
2120                                 <parameter name="RewriteContact">
2121                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='rewrite_contact']/synopsis/node())"/></para>
2122                                 </parameter>
2123                                 <parameter name="Transport">
2124                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='transport']/synopsis/node())"/></para>
2125                                 </parameter>
2126                                 <parameter name="OutboundProxy">
2127                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='outbound_proxy']/synopsis/node())"/></para>
2128                                 </parameter>
2129                                 <parameter name="MohSuggest">
2130                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='moh_suggest']/synopsis/node())"/></para>
2131                                 </parameter>
2132                                 <parameter name="100rel">
2133                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='100rel']/synopsis/node())"/></para>
2134                                 </parameter>
2135                                 <parameter name="Timers">
2136                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='timers']/synopsis/node())"/></para>
2137                                 </parameter>
2138                                 <parameter name="TimersMinSe">
2139                                         <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>
2140                                 </parameter>
2141                                 <parameter name="TimersSessExpires">
2142                                         <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>
2143                                 </parameter>
2144                                 <parameter name="Auth">
2145                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='auth']/synopsis/node())"/></para>
2146                                 </parameter>
2147                                 <parameter name="OutboundAuth">
2148                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='outbound_auth']/synopsis/node())"/></para>
2149                                 </parameter>
2150                                 <parameter name="Aors">
2151                                         <para><xi:include xpointer="xpointer(/docs/configInfo[@name='res_pjsip']/configFile[@name='pjsip.conf']/configObject[@name='endpoint']/configOption[@name='aors']/synopsis/node())"/></para>
2152                                 </parameter>
2153          &nb