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