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