Debian Codegraph @

configs/samples/pjsip.conf.sample

raw
1 ; PJSIP Configuration Samples and Quick Reference
2 ;
3 ; This file has several very basic configuration examples, to serve as a quick
4 ; reference to jog your memory when you need to write up a new configuration.
5 ; It is not intended to teach PJSIP configuration or serve as an exhaustive
6 ; reference of options and potential scenarios.
7 ;
8 ; This file has two main sections.
9 ; First, manually written examples to serve as a handy reference.
10 ; Second, a list of all possible PJSIP config options by section. This is
11 ; pulled from the XML config help. It only shows the synopsis for every item.
12 ; If you want to see more detail please check the documentation sources
13 ; mentioned at the top of this file.
14
15 ; ============================================================================
16 ; NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
17 ;
18 ; This file does not maintain the complete option documentation.
19 ; ============================================================================
20
21 ; Documentation
22 ;
23 ; The official documentation is at https://docs.asterisk.org
24 ; You can read the XML configuration help via Asterisk command line with
25 ; "config show help res_pjsip", then you can drill down through the various
26 ; sections and their options.
27 ;
28
29 ;========!!!!!!!!!!!!!!!!!!! SECURITY NOTICE !!!!!!!!!!!!!!!!!!!!===========
30 ;
31 ; At a minimum please read the file "README-SERIOUSLY.bestpractices.txt",
32 ; located in the Asterisk source directory before starting Asterisk.
33 ; Otherwise you risk allowing the security of the Asterisk system to be
34 ; compromised. Beyond that please visit and read the security information in
35 ; the documentation at: https://docs.asterisk.org/Deployment/Important-Security-Considerations/
36 ;
37 ; A few basics to pay attention to:
38 ;
39 ; Anonymous Calls
40 ;
41 ; By default anonymous inbound calls via PJSIP are not allowed. If you want to
42 ; route anonymous calls you'll need to define an endpoint named "anonymous".
43 ; res_pjsip_endpoint_identifier_anonymous.so handles that functionality so it
44 ; must be loaded. It is not recommended to accept anonymous calls.
45 ;
46 ; Access Control Lists
47 ;
48 ; See the example ACL configuration in this file. Read the configuration help
49 ; for the section and all of its options. Look over the samples in acl.conf
50 ; and documentation at https://docs.asterisk.org/Configuration/Core-Configuration/Named-ACLs/
51 ; If possible, restrict access to only networks and addresses you trust.
52 ;
53 ; Dialplan Contexts
54 ;
55 ; When defining configuration (such as an endpoint) that links into
56 ; dialplan configuration, be aware of what that dialplan does. It's easy to
57 ; accidentally provide access to internal or outbound dialing extensions which
58 ; could cost you severely. The "context=" line in endpoint configuration
59 ; determines which dialplan context inbound calls will enter into.
60 ;
61 ;=============================================================================
62
63 ; Overview of Configuration Section Types Used in the Examples
64 ;
65 ; * Transport "transport"
66 ; * Configures res_pjsip transport layer interaction.
67 ; * Endpoint "endpoint"
68 ; * Configures core SIP functionality related to SIP endpoints.
69 ; * Authentication "auth"
70 ; * Stores inbound or outbound authentication credentials for use by trunks,
71 ; endpoints, registrations.
72 ; * Address of Record "aor"
73 ; * Stores contact information for use by endpoints.
74 ; * Endpoint Identification "identify"
75 ; * Maps a host directly to an endpoint
76 ; * Access Control List "acl"
77 ; * Defines a permission list or references one stored in acl.conf
78 ; * Registration "registration"
79 ; * Contains information about an outbound SIP registration
80 ; * Resource Lists
81 ; * Contains information for configuring resource lists.
82 ; * Phone Provisioning "phoneprov"
83 ; * Contains information needed by res_phoneprov for autoprovisioning
84
85 ; The following sections show example configurations for various scenarios.
86 ; Most require a couple or more configuration types configured in concert.
87
88 ;=============================================================================
89
90 ; Naming of Configuration Sections
91 ;
92 ; Configuration section names are denoted with enclosing brackets,
93 ; e.g. [6001]
94 ; In most cases, you can name a section whatever makes sense to you. For example
95 ; you might name a transport [transport-udp-nat] to help you remember how that
96 ; section is being used. However, in some cases, ("endpoint" and "aor" types)
97 ; the section name has a relationship to its function.
98 ;
99 ; Depending on the modules loaded, Asterisk can match SIP requests to an
100 ; endpoint or aor in a few ways:
101 ;
102 ; 1) Match a section name for endpoint type sections to the username in the
103 ; "From" header of inbound SIP requests.
104 ; 2) Match a section name for aor type sections to the username in the "To"
105 ; header of inbound SIP REGISTER requests.
106 ; 3) With an identify type section configured, match an inbound SIP request of
107 ; any type to an endpoint or aor based on the IP source address of the
108 ; request.
109 ;
110 ; Note that sections can have the same name as long as their "type" options are
111 ; set to different values. In most cases it makes sense to have associated
112 ; configuration sections use the same name, as you'll see in the examples within
113 ; this file.
114
115 ;===============EXAMPLE TRANSPORTS============================================
116 ;
117 ; A few examples for potential transport options.
118 ;
119 ; For the NAT transport example, be aware that the options starting with
120 ; the prefix "external_" will only apply to communication with addresses
121 ; outside the range set with "local_net=".
122 ;
123 ; You can have more than one of any type of transport, as long as it doesn't
124 ; use the same resources (bind address, port, etc) as the others.
125
126 ; Basic UDP transport
127 ;
128 ;[transport-udp]
129 ;type=transport
130 ;protocol=udp ;udp,tcp,tls,ws,wss,flow
131 ;bind=0.0.0.0
132
133 ; UDP transport behind NAT
134 ;
135 ;[transport-udp-nat]
136 ;type=transport
137 ;protocol=udp
138 ;bind=0.0.0.0
139 ;local_net=192.0.2.0/24
140 ;external_media_address=203.0.113.1
141 ;external_signaling_address=203.0.113.1
142
143 ; Basic IPv6 UDP transport
144 ;
145 ;[transport-udp-ipv6]
146 ;type=transport
147 ;protocol=udp
148 ;bind=::
149
150 ; Example IPv4 TLS transport
151 ;
152 ;[transport-tls]
153 ;type=transport
154 ;protocol=tls
155 ;bind=0.0.0.0
156 ;cert_file=/path/mycert.crt
157 ;priv_key_file=/path/mykey.key
158 ;cipher=ADH-AES256-SHA,ADH-AES128-SHA
159 ;method=tlsv1
160
161 ; Example flow transport
162 ;
163 ; A flow transport is used to reference a flow of signaling with a specific
164 ; target. All endpoints or other objects that reference the transport will use
165 ; the same underlying transport and can share runtime discovered transport
166 ; configuration (such as service routes). The protocol in use will be determined
167 ; based on the URI used to establish the connection. Currently only TCP and TLS
168 ; are supported.
169 ;
170 ;[transport-flow]
171 ;type=transport
172 ;protocol=flow
173
174 ; Example IPv4 TCP transport with Keepalive options
175 ;
176 ;[transport-tcp]
177 ;type=transport
178 ;protocol=tcp
179 ;bind=0.0.0.0
180 ;tcp_keepalive_enable=yes ; Enable TCP keepalive (yes/no)
181 ;tcp_keepalive_idle_time=30 ; Time in seconds the connection needs to remain idle before TCP starts sending keepalive probes
182 ;tcp_keepalive_interval_time=10 ; The time in seconds between individual keepalive probes
183 ;tcp_keepalive_probe_count=5 ; The maximum number of keepalive probes TCP should send before dropping the connection
184
185 ; Example IPv4 TLS transport with Keepalive options
186 ;
187 ;[transport-tls]
188 ;type=transport
189 ;protocol=tls
190 ;bind=0.0.0.0
191 ;cert_file=/path/to/mycert.crt
192 ;priv_key_file=/path/to/mykey.key
193 ;cipher=ADH-AES256-SHA,ADH-AES128-SHA
194 ;method=tlsv1
195 ;tcp_keepalive_enable=yes ; Enable TCP keepalive (yes/no)
196 ;tcp_keepalive_idle_time=30 ; Time in seconds the connection needs to remain idle before TCP starts sending keepalive probes
197 ;tcp_keepalive_interval_time=10 ; The time in seconds between individual keepalive probes
198 ;tcp_keepalive_probe_count=5 ; The maximum number of keepalive probes TCP should send before dropping the connection
199
200 ;===============OUTBOUND REGISTRATION WITH OUTBOUND AUTHENTICATION============
201 ;
202 ; This is a simple registration that works with some SIP trunking providers.
203 ; You'll need to set up the auth example "mytrunk_auth" below to enable outbound
204 ; authentication. Note that we use "outbound_auth=" for outbound authentication
205 ; instead of "auth=", which is for inbound authentication.
206 ;
207 ; If you are registering to a server from behind NAT, be sure you assign a transport
208 ; that is appropriately configured with NAT related settings. See the NAT transport example.
209 ;
210 ; "contact_user=" sets the SIP contact header's user portion of the SIP URI
211 ; this will affect the extension reached in dialplan when the far end calls you at this
212 ; registration. The default is 's'.
213 ;
214 ; If you would like to enable line support and have incoming calls related to this
215 ; registration go to an endpoint automatically the "line" and "endpoint" options must
216 ; be set. The "endpoint" option specifies what endpoint the incoming call should be
217 ; associated with.
218
219 ;[mytrunk]
220 ;type=registration
221 ;transport=transport-udp
222 ;outbound_auth=mytrunk_auth
223 ;server_uri=sip:sip.example.com
224 ;client_uri=sip:[email protected]
225 ;contact_user=1234567890
226 ;retry_interval=60
227 ;forbidden_retry_interval=600
228 ;expiration=3600
229 ;line=yes
230 ;endpoint=mytrunk
231
232 ;[mytrunk_auth]
233 ;type=auth
234 ;auth_type=userpass
235 ;password=1234567890
236 ;username=1234567890
237 ;realm=sip.example.com
238
239 ;===============ENDPOINT CONFIGURED AS A TRUNK, OUTBOUND AUTHENTICATION=======
240 ;
241 ; This is one way to configure an endpoint as a trunk. It is set up with
242 ; "outbound_auth=" to enable authentication when dialing out through this
243 ; endpoint. There is no inbound authentication set up since a provider will
244 ; not normally authenticate when calling you.
245 ;
246 ; The identify configuration enables IP address matching against this endpoint.
247 ; For calls from a trunking provider, the From user may be different every time,
248 ; so we want to match against IP address instead of From user.
249 ;
250 ; If you want the provider of your trunk to know where to send your calls
251 ; you'll need to use an outbound registration as in the example above this
252 ; section.
253 ;
254 ; NAT
255 ;
256 ; At a basic level configure the endpoint with a transport that is set up
257 ; with the appropriate NAT settings. There may be some additional settings you
258 ; need here based on your NAT/Firewall scenario. Look to the CLI config help
259 ; "config show help res_pjsip endpoint" or on https://docs.asterisk.org/ for
260 ; other NAT related options and configuration. We've included a few below.
261 ;
262 ; AOR
263 ;
264 ; Endpoints use one or more AOR sections to store their contact details.
265 ; You can define multiple contact addresses in SIP URI format in multiple
266 ; "contact=" entries.
267 ;
268
269 ;[mytrunk]
270 ;type=endpoint
271 ;transport=transport-udp
272 ;context=from-external
273 ;disallow=all
274 ;allow=ulaw
275 ;outbound_auth=mytrunk_auth
276 ;aors=mytrunk
277 ; ;A few NAT relevant options that may come in handy.
278 ;force_rport=yes ;It's a good idea to read the configuration help for each
279 ;direct_media=no ;of these options.
280 ;ice_support=yes
281
282 ;[mytrunk]
283 ;type=aor
284 ;contact=sip:198.51.100.1:5060
285 ;contact=sip:198.51.100.2:5060
286
287 ;[mytrunk]
288 ;type=identify
289 ;endpoint=mytrunk
290 ;match=198.51.100.1
291 ;match=198.51.100.2
292 ;match=192.168.10.0:5061/24
293
294
295 ;=============ENDPOINT CONFIGURED AS A TRUNK, INBOUND AUTH AND REGISTRATION===
296 ;
297 ; Here we are allowing a remote device to register to Asterisk and requiring
298 ; that they authenticate for registration and calls.
299 ; You'll note that this configuration is essentially the same as configuring
300 ; an endpoint for use with a SIP phone.
301
302
303 ;[7000]
304 ;type=endpoint
305 ;context=from-external
306 ;disallow=all
307 ;allow=ulaw
308 ;transport=transport-udp
309 ;auth=7000
310 ;aors=7000
311
312 ;[7000]
313 ;type=auth
314 ;auth_type=userpass
315 ;password=7000
316 ;username=7000
317
318 ;[7000]
319 ;type=aor
320 ;max_contacts=1
321
322
323 ;===============ENDPOINT CONFIGURED FOR USE WITH A SIP PHONE==================
324 ;
325 ; This example includes the endpoint, auth and aor configurations. It
326 ; requires inbound authentication and allows registration, as well as references
327 ; a transport that you'll need to uncomment from the previous examples.
328 ;
329 ; Uncomment one of the transport lines to choose which transport you want. If
330 ; not specified then the default transport chosen is the first compatible transport
331 ; in the configuration file for the contact URL.
332 ;
333 ; Modify the "max_contacts=" line to change how many unique registrations to allow.
334 ;
335 ; Use the "contact=" line instead of max_contacts= if you want to statically
336 ; define the location of the device.
337 ;
338 ; If using the TLS enabled transport, you may want the "media_encryption=sdes"
339 ; option to additionally enable SRTP, though they are not mutually inclusive.
340 ;
341 ; If this endpoint were remote, and it was using a transport configured for NAT
342 ; then you likely want to use "direct_media=no" to prevent audio issues.
343
344
345 ;[6001]
346 ;type=endpoint
347 ;transport=transport-udp
348 ;context=from-internal
349 ;disallow=all
350 ;allow=ulaw
351 ;allow=gsm
352 ;auth=6001
353 ;aors=6001
354 ;
355 ; A few more transports to pick from, and some related options below them.
356 ;
357 ;transport=transport-tls
358 ;media_encryption=sdes
359 ;transport=transport-udp-ipv6
360 ;transport=transport-udp-nat
361 ;direct_media=no
362 ;
363 ; MWI related options
364
365 ;aggregate_mwi=yes
366 ;mailboxes=6001@default,7001@default
367 ;mwi_from_user=6001
368 ;
369 ; Extension and Device state options
370 ;
371 ;device_state_busy_at=1
372 ;allow_subscribe=yes
373 ;sub_min_expiry=30
374 ;
375 ; STIR/SHAKEN support.
376 ;
377 ;stir_shaken=no
378 ;stir_shaken_profile=my_profile
379
380 ;[6001]
381 ;type=auth
382 ;auth_type=userpass
383 ;password=6001
384 ;username=6001
385
386 ;[6001]
387 ;type=aor
388 ;max_contacts=1
389 ;contact=sip:[email protected]:5060
390
391 ;===============ENDPOINT BEHIND NAT OR FIREWALL===============================
392 ;
393 ; This example assumes your transport is configured with a public IP and the
394 ; endpoint itself is behind NAT and maybe a firewall, rather than having
395 ; Asterisk behind NAT. For the sake of simplicity, we'll assume a typical
396 ; VOIP phone. The most important settings to configure are:
397 ;
398 ; * direct_media, to ensure Asterisk stays in the media path
399 ; * rtp_symmetric and force_rport options to help the far-end NAT/firewall
400 ;
401 ; Depending on the settings of your remote SIP device or NAT/firewall device
402 ; you may have to experiment with a combination of these settings.
403 ;
404 ; If both Asterisk and the remote phones are a behind NAT/firewall then you'll
405 ; have to make sure to use a transport with appropriate settings (as in the
406 ; transport-udp-nat example).
407 ;
408 ;[6002]
409 ;type=endpoint
410 ;transport=transport-udp
411 ;context=from-internal
412 ;disallow=all
413 ;allow=ulaw
414 ;auth=6002
415 ;aors=6002
416 ;direct_media=no
417 ;rtp_symmetric=yes
418 ;force_rport=yes
419 ;rewrite_contact=yes ; necessary if endpoint does not know/register public ip:port
420 ;ice_support=yes ;This is specific to clients that support NAT traversal
421 ;for media via ICE,STUN,TURN. See the docs at:
422 ;https://docs.asterisk.org/Configuration/Miscellaneous/Interactive-Connectivity-Establishment-ICE-in-Asterisk/
423 ;for a deeper explanation of this topic.
424
425 ;[6002]
426 ;type=auth
427 ;auth_type=userpass
428 ;password=6002
429 ;username=6002
430
431 ;[6002]
432 ;type=aor
433 ;max_contacts=2
434
435 ;===============DEFAULT ENDPOINT FOR OUTBOUND REQUESTS TO URI===================
436 ;
437 ; This is an example default outbound endpoint. The global setting:
438 ; default_outbound_endpoint needs to be set to such an endpoint in order to be
439 ; able to send an outbound request to a URI without a specified endpoint.
440 ;
441 ;[default_outbound_endpoint]
442 ;type=endpoint
443 ;context=none-invalid
444
445
446 ;============EXAMPLE ACL CONFIGURATION==========================================
447 ;
448 ; The ACL or Access Control List section defines a set of permissions to permit
449 ; or deny access to various address or addresses. Alternatively it references an
450 ; ACL configuration already set in acl.conf.
451 ;
452 ; The ACL configuration is independent of individual endpoint configuration and
453 ; operates on all inbound SIP communication using res_pjsip.
454
455 ; Reference an ACL defined in acl.conf.
456 ;
457 ;[acl]
458 ;type=acl
459 ;acl=example_named_acl1
460
461 ; Reference a contactacl specifically.
462 ;
463 ;[acl]
464 ;type=acl
465 ;contact_acl=example_contact_acl1
466
467 ; Define your own ACL here in pjsip.conf and
468 ; permit or deny by IP address or range.
469 ;
470 ;[acl]
471 ;type=acl
472 ;deny=0.0.0.0/0.0.0.0
473 ;permit=209.16.236.0/24
474 ;deny=209.16.236.1
475
476 ; Restrict based on Contact Headers rather than IP.
477 ; Define options multiple times for various addresses or use a comma-delimited string.
478 ;
479 ;[acl]
480 ;type=acl
481 ;contact_deny=0.0.0.0/0.0.0.0
482 ;contact_permit=209.16.236.0/24
483 ;contact_permit=209.16.236.1
484 ;contact_permit=209.16.236.2,209.16.236.3
485
486 ; Restrict based on Contact Headers rather than IP and use
487 ; advanced syntax. Note the bang symbol used for "NOT", so we can deny
488 ; 209.16.236.12/32 within the permit= statement.
489 ;
490 ;[acl]
491 ;type=acl
492 ;contact_deny=0.0.0.0/0.0.0.0
493 ;contact_permit=209.16.236.0
494 ;permit=209.16.236.0/24, !209.16.236.12/32
495
496
497 ;============EXAMPLE RLS CONFIGURATION==========================================
498 ;
499 ;Asterisk provides support for RFC 4662 Resource List Subscriptions. This allows
500 ;for an endpoint to, through a single subscription, subscribe to the states of
501 ;multiple resources. Resource lists are configured in pjsip.conf using the
502 ;resource_list configuration object. Below is an example of a resource list that
503 ;allows an endpoint to subscribe to the presence of alice, bob, and carol.
504
505 ;[my_list]
506 ;type=resource_list
507 ;list_item=alice
508 ;list_item=bob
509 ;list_item=carol
510 ;event=presence
511
512 ;The "event" option in the resource list corresponds to the SIP event-package
513 ;that the subscribed resources belong to. A resource list can only provide states
514 ;for resources that belong to the same event-package. This means that you cannot
515 ;create a list that is a combination of presence and message-summary resources,
516 ;for instance. Any event-package that Asterisk supports can be used in a resource
517 ;list (presence, dialog, and message-summary). Whenever support for a new event-
518 ;package is added to Asterisk, support for that event-package in resource lists
519 ;will automatically be supported.
520
521 ;The "list_item" options indicate the names of resources to subscribe to. The
522 ;way these are interpreted is event-package specific. For instance, with presence
523 ;list_items, hints in the dialplan are looked up. With message-summary list_items,
524 ;mailboxes are looked up using your installed voicemail provider (app_voicemail
525 ;by default). Note that in the above example, the list_item options were given
526 ;one per line. However, it is also permissible to provide multiple list_item
527 ;options on a single line (e.g. list_item = alice,bob,carol).
528
529 ;In addition to the options presented in the above configuration, there are two
530 ;more configuration options that can be set.
531 ; * full_state: dictates whether Asterisk should always send the states of
532 ; all resources in the list at once. Defaults to "no". You should only set
533 ; this to "yes" if you are interoperating with an endpoint that does not
534 ; behave correctly when partial state notifications are sent to it.
535 ; * notification_batch_interval: By default, Asterisk will send a NOTIFY request
536 ; immediately when a resource changes state. This option causes Asterisk to
537 ; start batching resource state changes for the specified number of milliseconds
538 ; after a resource changes states. This way, if multiple resources change state
539 ; within a brief interval, Asterisk can send a single NOTIFY request with all
540 ; of the state changes reflected in it.
541
542 ;There is a limitation to the size of resource lists in Asterisk. If a constructed
543 ;notification from Asterisk will exceed 64000 bytes, then the message is deemed
544 ;too large to send. If you find that you are seeing error messages about SIP
545 ;NOTIFY requests being too large to send, consider breaking your lists into
546 ;sub-lists.
547
548 ;============EXAMPLE PHONEPROV CONFIGURATION================================
549
550 ; Before configuring provisioning here, see the documentation for res_phoneprov
551 ; and configure phoneprov.conf appropriately.
552
553 ; For each user to be autoprovisioned, a [phoneprov] configuration section
554 ; must be created. At a minimum, the 'type', 'PROFILE' and 'MAC' variables must
555 ; be set. All other variables are optional.
556 ; Example:
557
558 ;[1000]
559 ;type=phoneprov ; must be specified as 'phoneprov'
560 ;endpoint=1000 ; Required only if automatic setting of
561 ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
562 ; are needed.
563 ;PROFILE=digium ; required
564 ;MAC=deadbeef4dad ; required
565 ;SERVER=myserver.example.com ; A standard variable
566 ;TIMEZONE=America/Denver ; A standard variable
567 ;MYVAR=somevalue ; A user confdigured variable
568
569 ; If the phoneprov sections have common variables, it is best to create a
570 ; phoneprov template. The example below will produce the same configuration
571 ; as the one specified above except that MYVAR will be overridden for
572 ; the specific user.
573 ; Example:
574
575 ;[phoneprov_defaults](!)
576 ;type=phoneprov ; must be specified as 'phoneprov'
577 ;PROFILE=digium ; required
578 ;SERVER=myserver.example.com ; A standard variable
579 ;TIMEZONE=America/Denver ; A standard variable
580 ;MYVAR=somevalue ; A user configured variable
581
582 ;[1000](phoneprov_defaults)
583 ;endpoint=1000 ; Required only if automatic setting of
584 ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
585 ; are needed.
586 ;MAC=deadbeef4dad ; required
587 ;MYVAR=someOTHERvalue ; A user confdigured variable
588
589 ; To have USERNAME and SECRET automatically set, the endpoint
590 ; specified here must in turn have an outbound_auth section defined.
591
592 ; Fuller example:
593
594 ;[1000]
595 ;type=endpoint
596 ;outbound_auth=1000-auth
597 ;callerid=My Name <8005551212>
598 ;transport=transport-udp-nat
599
600 ;[1000-auth]
601 ;type=auth
602 ;auth_type=userpass
603 ;username=myname
604 ;password=mysecret
605
606 ;[phoneprov_defaults](!)
607 ;type=phoneprov ; must be specified as 'phoneprov'
608 ;PROFILE=someprofile ; required
609 ;SERVER=myserver.example.com ; A standard variable
610 ;TIMEZONE=America/Denver ; A standard variable
611 ;MYVAR=somevalue ; A user configured variable
612
613 ;[1000](phoneprov_defaults)
614 ;endpoint=1000 ; Required only if automatic setting of
615 ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
616 ; are needed.
617 ;MAC=deadbeef4dad ; required
618 ;MYVAR=someUSERvalue ; A user confdigured variable
619 ;LABEL=1000 ; A standard variable
620
621 ; The previous sections would produce a template substitution map as follows:
622
623 ;MAC=deadbeef4dad ;added by pp1000
624 ;USERNAME=myname ;automatically added by 1000-auth username
625 ;SECRET=mysecret ;automatically added by 1000-auth password
626 ;PROFILE=someprofile ;added by defaults
627 ;SERVER=myserver.example.com ;added by defaults
628 ;SERVER_PORT=5060 ;added by defaults
629 ;MYVAR=someUSERvalue ;added by defaults but overdidden by user
630 ;CALLERID=8005551212 ;automatically added by 1000 callerid
631 ;DISPLAY_NAME=My Name ;automatically added by 1000 callerid
632 ;TIMEZONE=America/Denver ;added by defaults
633 ;TZOFFSET=252100 ;automatically calculated by res_phoneprov
634 ;DST_ENABLE=1 ;automatically calculated by res_phoneprov
635 ;DST_START_MONTH=3 ;automatically calculated by res_phoneprov
636 ;DST_START_MDAY=9 ;automatically calculated by res_phoneprov
637 ;DST_START_HOUR=3 ;automatically calculated by res_phoneprov
638 ;DST_END_MONTH=11 ;automatically calculated by res_phoneprov
639 ;DST_END_MDAY=2 ;automatically calculated by res_phoneprov
640 ;DST_END_HOUR=1 ;automatically calculated by res_phoneprov
641 ;ENDPOINT_ID=1000 ;automatically added by this module
642 ;AUTH_ID=1000-auth ;automatically added by this module
643 ;TRANSPORT_ID=transport-udp-nat ;automatically added by this module
644 ;LABEL=1000 ;added by user
645
646 ; MODULE PROVIDING BELOW SECTION(S): res_pjsip
647 ;==========================ENDPOINT SECTION OPTIONS=========================
648 ;[endpoint]
649 ; SYNOPSIS: Endpoint
650 ;100rel=yes ; Allow support for RFC3262 provisional ACK tags (default:
651 ; "yes")
652 ;aggregate_mwi=yes ; (default: "yes")
653 ;allow= ; Media Codec s to allow (default: "")
654 ;allow_overlap=yes ; Enable RFC3578 overlap dialing support. (default: "yes")
655 ;overlap_context=default ; Context to used for overlap dialing matches
656 ; (default: same as context option)
657 ;aors= ; AoR s to be used with the endpoint (default: "")
658 ;auth= ; Authentication Object s associated with the endpoint (default: "")
659 ;callerid= ; CallerID information for the endpoint (default: "")
660 ;callerid_privacy=allowed_not_screened ; Default privacy level (default: "allowed_not_screened")
661 ;callerid_tag= ; Internal id_tag for the endpoint (default: "")
662 ;context=default ; Dialplan context for inbound sessions (default:
663 ; "default")
664 ;direct_media_glare_mitigation=none ; Mitigation of direct media re INVITE
665 ; glare (default: "none")
666 ;direct_media_method=invite ; Direct Media method type (default: "invite")
667 ;trust_connected_line=yes ; Accept Connected Line updates from this endpoint
668 ; (default: "yes")
669 ;send_connected_line=yes ; Send Connected Line updates to this endpoint
670 ; (default: "yes")
671 ;connected_line_method=invite ; Connected line method type.
672 ; When set to "invite", check the remote's
673 ; Allow header and if UPDATE is allowed, send
674 ; UPDATE instead of INVITE to avoid SDP
675 ; renegotiation. If UPDATE is not Allowed,
676 ; send INVITE.
677 ; If set to "update", send UPDATE regardless
678 ; of what the remote Allows.
679 ; (default: "invite")
680 ;direct_media=yes ; Determines whether media may flow directly between
681 ; endpoints (default: "yes")
682 ;disable_direct_media_on_nat=no ; Disable direct media session refreshes when
683 ; NAT obstructs the media session (default:
684 ; "no")
685 ;disallow= ; Media Codec s to disallow (default: "")
686 ;dtmf_mode=rfc4733 ; DTMF mode (default: "rfc4733")
687 ;media_address= ; IP address used in SDP for media handling (default: "")
688 ;bind_rtp_to_media_address= ; Bind the RTP session to the media_address.
689 ; This causes all RTP packets to be sent from
690 ; the specified address. (default: "no")
691 ;force_rport=yes ; Force use of return port (default: "yes")
692 ;ice_support=no ; Enable the ICE mechanism to help traverse NAT (default: "no")
693 ;identify_by=username ; A comma-separated list of ways the Endpoint or AoR can be
694 ; identified.
695 ; "username": Identify by the From or To username and domain
696 ; "auth_username": Identify by the Authorization username and realm
697 ; "ip": Identify by the source IP address
698 ; "header": Identify by a configured SIP header value.
699 ; "request_uri": Identify by the configured SIP request URI.
700 ; In the username and auth_username cases, if an exact match
701 ; on both username and domain/realm fails, the match is
702 ; retried with just the username.
703 ; (default: "username,ip")
704 ;redirect_method=user ; How redirects received from an endpoint are handled
705 ; (default: "user")
706 ;follow_redirect_methods= ; A comma-separated list of SIP methods for which redirects are followed.
707 ; Currently, only "message" is supported.
708 ; (default: "")
709 ;mailboxes= ; NOTIFY the endpoint when state changes for any of the specified mailboxes.
710 ; Asterisk will send unsolicited MWI NOTIFY messages to the endpoint when state
711 ; changes happen for any of the specified mailboxes. (default: "")
712 ;voicemail_extension= ; The voicemail extension to send in the NOTIFY Message-Account header
713 ; (default: global/default_voicemail_extension)
714 ;mwi_subscribe_replaces_unsolicited=no
715 ; An MWI subscribe will replace unsoliticed NOTIFYs
716 ; (default: "no")
717 ;moh_suggest=default ; Default Music On Hold class (default: "default")
718 ;moh_passthrough=yes ; Pass Music On Hold through using SIP re-invites with sendonly
719 ; when placing on hold and sendrecv when taking off hold
720 ;outbound_auth= ; Authentication object used for outbound requests (default:
721 ; "")
722 ;outbound_proxy= ; Proxy through which to send requests, a full SIP URI
723 ; must be provided (default: "")
724 ;rewrite_contact=no ; Allow Contact header to be rewritten with the source
725 ; IP address port (default: "no")
726 ;rtp_symmetric=no ; Enforce that RTP must be symmetric (default: "no")
727 ;send_diversion=yes ; Send the Diversion header conveying the diversion
728 ; information to the called user agent (default: "yes")
729 ;send_pai=no ; Send the P Asserted Identity header (default: "no")
730 ;send_rpid=no ; Send the Remote Party ID header (default: "no")
731 ;rpid_immediate=no ; Send connected line updates on unanswered incoming calls immediately. (default: "no")
732 ;timers_min_se=90 ; Minimum session timers expiration period (default:
733 ; "90")
734 ;timers=yes ; Session timers for SIP packets (default: "yes")
735 ;timers_sess_expires=1800 ; Maximum session timer expiration period
736 ; (default: "1800")
737 ;transport= ; Explicit transport configuration to use (default: "")
738 ; This will force the endpoint to use the specified transport
739 ; configuration to send SIP messages. You need to already know
740 ; what kind of transport (UDP/TCP/IPv4/etc) the endpoint device
741 ; will use.
742
743 ;trust_id_inbound=no ; Accept identification information received from this
744 ; endpoint (default: "no")
745 ;trust_id_outbound=no ; Send private identification details to the endpoint
746 ; (default: "no")
747 ;type= ; Must be of type endpoint (default: "")
748 ;use_ptime=no ; Use Endpoint s requested packetisation interval (default:
749 ; "no")
750 ;use_avpf=no ; Determines whether res_pjsip will use and enforce usage of
751 ; AVPF for this endpoint (default: "no")
752 ;media_encryption=no ; Determines whether res_pjsip will use and enforce
753 ; usage of media encryption for this endpoint (default:
754 ; "no")
755 ;media_encryption_optimistic=no ; Use encryption if possible but don't fail the call
756 ; if not possible.
757 ;g726_non_standard=no ; When set to "yes" and an endpoint negotiates g.726
758 ; audio then g.726 for AAL2 packing order is used contrary
759 ; to what is recommended in RFC3551. Note, 'g726aal2' also
760 ; needs to be specified in the codec allow list
761 ; (default: "no")
762 ;inband_progress=no ; Determines whether chan_pjsip will indicate ringing
763 ; using inband progress (default: "no")
764 ;call_group= ; The numeric pickup groups for a channel (default: "")
765 ;pickup_group= ; The numeric pickup groups that a channel can pickup (default:
766 ; "")
767 ;named_call_group= ; The named pickup groups for a channel (default: "")
768 ;named_pickup_group= ; The named pickup groups that a channel can pickup
769 ; (default: "")
770 ;device_state_busy_at=0 ; The number of in use channels which will cause busy
771 ; to be returned as device state (default: "0")
772 ;t38_udptl=no ; Whether T 38 UDPTL support is enabled or not (default: "no")
773 ;t38_udptl_ec=none ; T 38 UDPTL error correction method (default: "none")
774 ;t38_udptl_maxdatagram=0 ; T 38 UDPTL maximum datagram size (default:
775 ; "0")
776 ;fax_detect=no ; Whether CNG tone detection is enabled (default: "no")
777 ;fax_detect_timeout=30 ; How many seconds into a call before fax_detect is
778 ; disabled for the call.
779 ; Zero disables the timeout.
780 ; (default: "0")
781 ;t38_udptl_nat=no ; Whether NAT support is enabled on UDPTL sessions
782 ; (default: "no")
783 ;t38_bind_rtp_to_media_address= ; Bind the UDPTL session to the media_address.
784 ; This causes all UDPTL packets to be sent from
785 ; the specified address. (default: "no")
786 ;tone_zone= ; Set which country s indications to use for channels created
787 ; for this endpoint (default: "")
788 ;language= ; Set the default language to use for channels created for this
789 ; endpoint (default: "")
790 ;one_touch_recording=no ; Determines whether one touch recording is allowed for
791 ; this endpoint (default: "no")
792 ;record_on_feature=automixmon ; The feature to enact when one touch recording
793 ; is turned on (default: "automixmon")
794 ;record_off_feature=automixmon ; The feature to enact when one touch recording
795 ; is turned off (default: "automixmon")
796 ;rtp_engine=asterisk ; Name of the RTP engine to use for channels created
797 ; for this endpoint (default: "asterisk")
798 ;allow_transfer=yes ; Determines whether SIP REFER transfers are allowed
799 ; for this endpoint (default: "yes")
800 ;sdp_owner=- ; String placed as the username portion of an SDP origin o line
801 ; (default: "-")
802 ;sdp_session=Asterisk ; String used for the SDP session s line (default:
803 ; "Asterisk")
804 ;tos_audio=0 ; DSCP TOS bits for audio streams (default: "0")
805 ;tos_video=0 ; DSCP TOS bits for video streams (default: "0")
806 ;cos_audio=0 ; Priority for audio streams (default: "0")
807 ;cos_video=0 ; Priority for video streams (default: "0")
808 ;allow_subscribe=yes ; Determines if endpoint is allowed to initiate
809 ; subscriptions with Asterisk (default: "yes")
810 ;sub_min_expiry=0 ; The minimum allowed expiry time for subscriptions
811 ; initiated by the endpoint (default: "0")
812 ;from_user= ; Username to use in From header for requests to this endpoint
813 ; (default: "")
814 ;mwi_from_user= ; Username to use in From header for unsolicited MWI NOTIFYs to
815 ; this endpoint (default: "")
816 ;from_domain= ; Domain to user in From header for requests to this endpoint
817 ; (default: "")
818 ;dtls_verify=no ; Verify that the provided peer certificate is valid (default:
819 ; "no")
820 ;dtls_rekey=0 ; Interval at which to renegotiate the TLS session and rekey
821 ; the SRTP session (default: "0")
822 ;dtls_auto_generate_cert= ; Enable ephemeral DTLS certificate generation (default:
823 ; "no")
824 ;dtls_cert_file= ; Path to certificate file to present to peer (default:
825 ; "")
826 ;dtls_private_key= ; Path to private key for certificate file (default:
827 ; "")
828 ;dtls_cipher= ; Cipher to use for DTLS negotiation (default: "")
829 ;dtls_ca_file= ; Path to certificate authority certificate (default: "")
830 ;dtls_ca_path= ; Path to a directory containing certificate authority
831 ; certificates (default: "")
832 ;dtls_setup= ; Whether we are willing to accept connections connect to the
833 ; other party or both (default: "")
834 ;dtls_fingerprint= ; Hash to use for the fingerprint placed into SDP
835 ; (default: "SHA-256")
836 ;srtp_tag_32=no ; Determines whether 32 byte tags should be used instead of 80
837 ; byte tags (default: "no")
838 ;set_var= ; Variable set on a channel involving the endpoint. For multiple
839 ; channel variables specify multiple 'set_var'(s)
840 ;rtp_keepalive= ; Interval, in seconds, between comfort noise RTP packets if
841 ; RTP is not flowing. This setting is useful for ensuring that
842 ; holes in NATs and firewalls are kept open throughout a call.
843 ;rtp_timeout= ; Hang up channel if RTP is not received for the specified
844 ; number of seconds when the channel is off hold (default:
845 ; "0" or not enabled)
846 ;rtp_timeout_hold= ; Hang up channel if RTP is not received for the specified
847 ; number of seconds when the channel is on hold (default:
848 ; "0" or not enabled)
849 ;rtp_port_start= ; Per-endpoint starting RTP port number, overriding the
850 ; global rtp.conf setting. Must be used together with
851 ; rtp_port_end. (default: "0" or use global range)
852 ;rtp_port_end= ; Per-endpoint ending RTP port number, overriding the
853 ; global rtp.conf setting. Must be used together with
854 ; rtp_port_start. (default: "0" or use global range)
855 ;contact_user= ; On outgoing requests, force the user portion of the Contact
856 ; header to this value (default: "")
857 ;incoming_call_offer_pref= ; Based on this setting, a joint list of
858 ; preferred codecs between those received in an
859 ; incoming SDP offer (remote), and those specified
860 ; in the endpoint's "allow" parameter (local)
861 ; is created and is passed to the Asterisk core.
862 ;
863 ; local - Include all codecs in the local list that
864 ; are also in the remote list preserving the local
865 ; order. (default).
866 ; local_first - Include only the first codec in the
867 ; local list that is also in the remote list.
868 ; remote - Include all codecs in the remote list that
869 ; are also in the local list preserving remote list
870 ; order.
871 ; remote_first - Include only the first codec in
872 ; the remote list that is also in the local list.
873 ;outgoing_call_offer_pref= ; Based on this setting, a joint list of
874 ; preferred codecs between those received from the
875 ; Asterisk core (remote), and those specified in
876 ; the endpoint's "allow" parameter (local) is
877 ; created and is used to create the outgoing SDP
878 ; offer.
879 ;
880 ; local - Include all codecs in the local list that
881 ; are also in the remote list preserving the local
882 ; order.
883 ; local_merge - Include all codecs in the local list
884 ; preserving the local order.
885 ; local_first - Include only the first codec in the
886 ; local list.
887 ; remote - Include all codecs in the remote list that
888 ; are also in the local list preserving remote list
889 ; order.
890 ; remote_merge - Include all codecs in the local list
891 ; preserving the remote list order. (default)
892 ; remote_first - Include only the first codec in the
893 ; remote list that is also in the local list.
894 ;preferred_codec_only=no ; Respond to a SIP invite with the single most
895 ; preferred codec rather than advertising all joint
896 ; codec capabilities. This limits the other side's
897 ; codec choice to exactly what we prefer.
898 ; default is no.
899 ; NOTE: This option is deprecated in favor
900 ; of incoming_call_offer_pref. Setting both
901 ; options is unsupported.
902 ;asymmetric_rtp_codec= ; Allow the sending and receiving codec to differ and
903 ; not be automatically matched (default: "no")
904 ;refer_blind_progress= ; Whether to notifies all the progress details on blind
905 ; transfer (default: "yes"). The value "no" is useful
906 ; for some SIP phones (Mitel/Aastra, Snom) which expect
907 ; a sip/frag "200 OK" after REFER has been accepted.
908 ;notify_early_inuse_ringing = ; Whether to notifies dialog-info 'early'
909 ; on INUSE && RINGING state (default: "no").
910 ; The value "yes" is useful for some SIP phones
911 ; (Cisco SPA) to be able to indicate and pick up
912 ; ringing devices.
913 ;max_audio_streams= ; The maximum number of allowed negotiated audio streams
914 ; (default: 1)
915 ;max_video_streams= ; The maximum number of allowed negotiated video streams
916 ; (default: 1)
917 ;webrtc= ; When set to "yes" this also enables the following values that are needed
918 ; for webrtc: rtcp_mux, use_avpf, ice_support, and use_received_transport.
919 ; The following configuration settings also get defaulted as follows:
920 ; media_encryption=dtls
921 ; dtls_verify=fingerprint
922 ; dtls_setup=actpass
923 ; A dtls_cert_file and a dtls_ca_file still need to be specified.
924 ; Default for this option is "no"
925 ;incoming_mwi_mailbox = ; Mailbox name to use when incoming MWI NOTIFYs are
926 ; received.
927 ; If an MWI NOTIFY is received FROM this endpoint,
928 ; this mailbox will be used when notifying other modules
929 ; of MWI status changes. If not set, incoming MWI
930 ; NOTIFYs are ignored.
931 ;follow_early_media_fork = ; On outgoing calls, if the UAS responds with
932 ; different SDP attributes on subsequent 18X or 2XX
933 ; responses (such as a port update) AND the To tag
934 ; on the subsequent response is different than that
935 ; on the previous one, follow it. This usually
936 ; happens when the INVITE is forked to multiple UASs
937 ; and more than 1 sends an SDP answer.
938 ; This option must also be enabled in the system
939 ; section.
940 ; (default: yes)
941 ;accept_multiple_sdp_answers =
942 ; On outgoing calls, if the UAS responds with
943 ; different SDP attributes on non-100rel 18X or 2XX
944 ; responses (such as a port update) AND the To tag on
945 ; the subsequent response is the same as that on the
946 ; previous one, process it. This can happen when the
947 ; UAS needs to change ports for some reason such as
948 ; using a separate port for custom ringback.
949 ; This option must also be enabled in the system
950 ; section.
951 ; (default: no)
952 ;suppress_q850_reason_headers =
953 ; Suppress Q.850 Reason headers for this endpoint.
954 ; Some devices can't accept multiple Reason headers
955 ; and get confused when both 'SIP' and 'Q.850' Reason
956 ; headers are received. This option allows the
957 ; 'Q.850' Reason header to be suppressed.
958 ; (default: no)
959 ;ignore_183_without_sdp =
960 ; Do not forward 183 when it doesn't contain SDP.
961 ; Certain SS7 internetworking scenarios can result in
962 ; a 183 to be generated for reasons other than early
963 ; media. Forwarding this 183 can cause loss of
964 ; ringback tone. This flag emulates the behavior of
965 ; chan_sip and prevents these 183 responses from
966 ; being forwarded.
967 ; (default: no)
968 ;stir_shaken =
969 ; If this is enabled, STIR/SHAKEN operations will be
970 ; performed on this endpoint. This includes inbound
971 ; and outbound INVITEs. On an inbound INVITE, Asterisk
972 ; will check for an Identity header and attempt to
973 ; verify the call. On an outbound INVITE, Asterisk will
974 ; add an Identity header that others can use to verify
975 ; calls from this endpoint. Additional configuration is
976 ; done in stir_shaken.conf.
977 ; The STIR_SHAKEN dialplan function must be used to get
978 ; the verification results on inbound INVITEs. Nothing
979 ; happens to the call if verification fails; it's up to
980 ; you to determine what to do with the results.
981 ; (default: no)
982 ;stir_shaken_profile =
983 ; If a profile is specified (defined in stir_shaken.conf),
984 ; this endpoint will follow the rules defined there.
985 ;allow_unauthenticated_options =
986 ; By default, chan_pjsip will challenge an incoming
987 ; OPTIONS request for authentication credentials just
988 ; as it would an INVITE request. This is consistent
989 ; with RFC 3261.
990 ; There are many UAs that use an OPTIONS request as a
991 ; "ping" and they expect a 200 response indicating that
992 ; the remote party is up and running without a need to
993 ; authenticate.
994 ; Setting allow_unauthenticated_options to 'yes' will
995 ; instruct chan_pjsip to skip the authentication step
996 ; when it receives an OPTIONS request for this
997 ; endpoint.
998 ; There are security implications to enabling this
999 ; setting as it can allow information disclosure to
1000 ; occur - specifically, if enabled, an external party
1001 ; could enumerate and find the endpoint name by
1002 ; sending OPTIONS requests and examining the
1003 ; responses.
1004 ; (default: no)
1005
1006 ;geoloc_incoming_call_profile =
1007 ; This geolocation profile will be applied to all calls received
1008 ; by the channel driver from the remote endpoint before they're
1009 ; forwarded to the dialplan.
1010 ;geoloc_outgoing_call_profile =
1011 ; This geolocation profile will be applied to all calls received
1012 ; by the channel driver from the dialplan before they're forwarded
1013 ; the remote endpoint.
1014 ;
1015 ; send_aoc =
1016 ; This options turns on and off support for sending AOC to endpoints.
1017 ; AOC updates can be sent using the AOCMessage AMI action or come
1018 ; from PRI channels.
1019 ; (default: no)
1020 ;
1021 ; tenantid =
1022 ; Sets the tenant ID for this endpoint. It can be read in dialplan
1023 ; with the CHANNEL function, and it can be changed later via dialplan
1024 ; using the same CHANNEL function if needed. Setting tenant ID here
1025 ; will cause it to show up on channel creation and the initial
1026 ; channel snapshot.
1027 ;
1028 ; suppress_moh_on_sendonly = no
1029 ; Normally, when one party in a call sends Asterisk an SDP with
1030 ; a "sendonly" or "inactive" attribute it means "hold" and
1031 ; causes Asterisk to start playing MOH back to the other party.
1032 ; This can be problematic if it happens at certain times, such
1033 ; as in a 183 Progress message, because the MOH will replace
1034 ; any early media you may be playing to the calling party. If
1035 ; you set this option to "yes" on an endpoint and the endpoint
1036 ; receives an SDP with "sendonly" or "inactive", Asterisk will
1037 ; NOT play MOH back to the other party.
1038 ; NOTE: This doesn't just apply to 183 responses. MOH will
1039 ; be suppressed when the attribute appears in any SDP received
1040 ; including INVITEs, re-INVITES, and other responses.
1041 ; (default: no)
1042
1043 ;==========================AUTH SECTION OPTIONS=========================
1044 ;[auth]
1045 ; SYNOPSIS: Authentication type
1046 ;
1047 ; Note: Using the same auth section for inbound and outbound
1048 ; authentication is not recommended. There is a difference in
1049 ; meaning for an empty realm setting between inbound and outbound
1050 ; authentication uses.
1051 ;
1052 ; Note on Digest Algorithms: The currently supported digest algorithms are
1053 ; "MD5", "SHA-256" and "SHA-512-256" but availability may be limited by
1054 ; the versions of PJProject and OpenSSL installed. Run the CLI command
1055 ; `pjproject show buildopts` to see the algorithms currently available and
1056 ; see the documentation linked below for more info.
1057 ;
1058 ; Detailed discussion for this object, especially regarding hash algorithms
1059 ; and realms can be found at
1060 ; https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/PJSIP-Authentication
1061
1062 ;type= ; Must be auth (default: "")
1063
1064 ;auth_type= ; Authentication mechanism.
1065 ; Must be one of:
1066 ; "digest" : The standard HTTP/SIP digest
1067 ; authentication. "password" and/or one or more
1068 ; "password_digest" parameters must also be specified.
1069 ; "google_oauth": Google OAuth authentication used by
1070 ; Google Voice.
1071 ; "userpass" : (deprecated). Automatically converted
1072 ; to "digest". Used to mean plain-text password but
1073 ; that is now determined automatically.
1074 ; "md5" : (deprecated) Automatically converted
1075 ; to "digest". Used to mean pre-hashed password but
1076 ; that is now determined automatically.
1077 ; (default: "digest")
1078
1079 ;realm= ; For incoming authentication (asterisk is the UAS),
1080 ; this is the realm to be sent on WWW-Authenticate
1081 ; headers. If not specified, the global object's
1082 ; "default_realm" will be used.
1083 ;
1084 ; For outgoing authentication (asterisk is the UAC), this
1085 ; must either be the realm the server is expected to send,
1086 ; or left blank or contain a single '*' to automatically
1087 ; use the realm sent by the server. If you have multiple
1088 ; auth objects for an endpoint, the realm is also used to
1089 ; match the auth object to the realm the server sent.
1090 ;
1091 ; Using the same auth section for inbound and outbound
1092 ; authentication is not recommended. There is a difference in
1093 ; meaning for an empty realm setting between inbound and outbound
1094 ; authentication uses.
1095 ;
1096 ; If more than one auth object with the same realm or
1097 ; more than one wildcard auth object is associated to
1098 ; an endpoint, only the first one of each defined on
1099 ; the endpoint will be used.
1100 ;
1101 ; (default: "")
1102
1103 ;username= ; Username to use for account (Required)
1104
1105 ;password= ; PlainText password used for authentication (default: "")
1106
1107 ;password_digest= <digest-spec>
1108 ; As an alternative to specifying a plain text password, you can
1109 ; specify pre-computed digests.
1110 ;
1111 ; <digest-spec> = <IANA_digest_algorithm>:<hashed-credential>
1112 ; <IANA_digest_algorithm>: One of the supported hash algorithms
1113 ; which currently are "MD5", "SHA-256" and "SHA-512-256" but
1114 ; see the note above.
1115 ; <hashed-credential>: The result of passing the following
1116 ; string through the selected hash algorithm:
1117 ; <username>:<realm>:<password>
1118 ; Example:
1119 ; $ echo -n "fred:asterisk:mypass" | openssl dgst -md5
1120 ; MD5(stdin)= 43a8d9be3da524f9a59ca0593d7b1b5d
1121 ; would be specified as...
1122 ;password_digest = MD5:43a8d9be3da524f9a59ca0593d7b1b5d
1123 ; You can specify this parameter once for each algorithm.
1124 ; See the documentation linked above for more info.
1125
1126 ;md5_cred= ; (deprecated) Will be automatically converted to a
1127 ; "password_digest" parameter.
1128
1129 ;supported_algorithms_uas= <IANA_digest_algorithm>[,<IANA_digest_algorithm>]...
1130 ; Specify the digest algorithms to offer when this auth object
1131 ; is used by Asterisk acting as a UAS. Specify one or more of
1132 ; the supported hash algorithms, which currently are "MD5",
1133 ; "SHA-256" and "SHA-512-256", but see the note above.
1134 ; The default is the value specified in the global object's
1135 ; default_auth_algorithms_uas parameter.
1136
1137 ;supported_algorithms_uac= <IANA_digest_algorithm>[,<IANA_digest_algorithm>]...
1138 ; Specify the digest algorithms to respond with when this auth
1139 ; object is used by Asterisk acting as a UAC. Specify one or more of
1140 ; the supported hash algorithms, which currently are "MD5",
1141 ; "SHA-256" and "SHA-512-256", but see the note above.
1142 ; The default is the value specified in the global object's
1143 ; default_auth_algorithms_uac parameter.
1144
1145 ;nonce_lifetime=32 ; Lifetime of a nonce associated with this
1146 ; authentication config (default: "32")
1147
1148 ; For the Google OAuth authentication mechanism, the following parameters are
1149 ; required:
1150 ;refresh_token= ; OAuth 2.0 refresh token
1151 ;oauth_clientid= ; OAuth 2.0 application's client id
1152 ;oauth_secret= ; OAuth 2.0 application's secret
1153
1154
1155 ;==========================DOMAIN_ALIAS SECTION OPTIONS=========================
1156 ;[domain_alias]
1157 ; SYNOPSIS: Domain Alias
1158 ;type= ; Must be of type domain_alias (default: "")
1159 ;domain= ; Domain to be aliased (default: "")
1160
1161
1162 ;==========================TRANSPORT SECTION OPTIONS=========================
1163 ;[transport]
1164 ; SYNOPSIS: SIP Transport
1165 ;
1166 ;bind= ; IP Address and optional port to bind to for this transport (default:
1167 ; "")
1168 ; Note that for the Websocket transport the TLS configuration is configured
1169 ; in http.conf and is applied for all HTTPS traffic.
1170 ;ca_list_file= ; File containing a list of certificates to read TLS ONLY
1171 ; (default: "")
1172 ;ca_list_path= ; Path to directory containing certificates to read TLS ONLY.
1173 ; PJProject version 2.4 or higher is required for this option to
1174 ; be used.
1175 ; (default: "")
1176 ;cert_file= ; Certificate file for endpoint TLS ONLY
1177 ; Will read .crt or .pem file but only uses cert,
1178 ; a .key file must be specified via priv_key_file.
1179 ; Since PJProject version 2.5: If the file name ends in _rsa,
1180 ; for example "asterisk_rsa.pem", the files "asterisk_dsa.pem"
1181 ; and/or "asterisk_ecc.pem" are loaded (certificate, inter-
1182 ; mediates, private key), to support multiple algorithms for
1183 ; server authentication (RSA, DSA, ECDSA). If the chains are
1184 ; different, at least OpenSSL 1.0.2 is required. This option
1185 ; can be reloaded resulting in an updated certificate if the
1186 ; filename remains unchanged.
1187 ; (default: "")
1188 ;cipher= ; Preferred cryptography cipher names TLS ONLY (default: "")
1189 ;method= ; Method of SSL transport TLS ONLY (default: "")
1190 ;priv_key_file= ; Private key file TLS ONLY. This option can be reloaded
1191 ; resulting in an updated private key if the filename remains
1192 ; unchanged.
1193 ; (default: "")
1194 ;verify_client= ; Require verification of client certificate TLS ONLY (default:
1195 ; "")
1196 ;verify_server= ; Require verification of server certificate TLS ONLY (default:
1197 ; "")
1198 ;require_client_cert= ; Require client certificate TLS ONLY (default: "")
1199 ;domain= ; Domain the transport comes from (default: "")
1200 ;external_media_address= ; External IP address to use in RTP handling
1201 ; (default: "")
1202 ;external_signaling_address= ; External address for SIP signalling (default:
1203 ; "")
1204 ;external_signaling_port=0 ; External port for SIP signalling (default:
1205 ; "0")
1206 ;local_net= ; Network to consider local used for NAT purposes (default: "")
1207 ;password= ; Password required for transport (default: "")
1208 ;protocol=udp ; Protocol to use for SIP traffic (default: "udp")
1209 ;type= ; Must be of type transport (default: "")
1210 ;tos=0 ; Enable TOS for the signalling sent over this transport (default: "0")
1211 ;cos=0 ; Enable COS for the signalling sent over this transport (default: "0")
1212 ;websocket_write_timeout=100 ; Default write timeout to set on websocket
1213 ; transports. This value may need to be adjusted
1214 ; for connections where Asterisk must write a
1215 ; substantial amount of data and the receiving
1216 ; clients are slow to process the received
1217 ; information. Value is in milliseconds; default
1218 ; is 100 ms.
1219 ;allow_reload=no ; Although transports can now be reloaded, that may not be
1220 ; desirable because of the slight possibility of dropped
1221 ; calls. To make sure there are no unintentional drops, if
1222 ; this option is set to 'no' (the default) changes to the
1223 ; particular transport will be ignored. If set to 'yes',
1224 ; changes (if any) will be applied.
1225 ;symmetric_transport=no ; When a request from a dynamic contact comes in on a
1226 ; transport with this option set to 'yes', the transport
1227 ; name will be saved and used for subsequent outgoing
1228 ; requests like OPTIONS, NOTIFY and INVITE. It's saved
1229 ; as a contact uri parameter named 'x-ast-txp' and will
1230 ; display with the contact uri in CLI, AMI, and ARI
1231 ; output. On the outgoing request, if a transport
1232 ; wasn't explicitly set on the endpoint AND the request
1233 ; URI is not a hostname, the saved transport will be
1234 ; used and the 'x-ast-txp' parameter stripped from the
1235 ; outgoing packet.
1236 ;allow_wildcard_certs=no ; In conjunction with verify_server, if 'yes' allow use
1237 ; of wildcards, i.e. '*.' in certs for common, and
1238 ; subject alt names of type DNS for TLS transport
1239 ; types. Note, names must start with the wildcard.
1240 ; Partial wildcards, e.g. 'f*.example.com' and
1241 ; 'foo.*.com' are disallowed. As well, names only
1242 ; match against a single level meaning '*.example.com'
1243 ; matches 'foo.example.com', but not
1244 ; 'foo.bar.example.com'. Defaults to 'no'.
1245
1246 ;==========================AOR SECTION OPTIONS=========================
1247 ;[aor]
1248 ; SYNOPSIS: The configuration for a location of an endpoint
1249 ;contact= ; Permanent contacts assigned to AoR (default: "")
1250 ;default_expiration=3600 ; Default expiration time in seconds for
1251 ; contacts that are dynamically bound to an AoR
1252 ; (default: "3600")
1253 ;mailboxes= ; Allow subscriptions for the specified mailbox(es)
1254 ; This option applies when an external entity subscribes to an AoR
1255 ; for Message Waiting Indications. (default: "")
1256 ;voicemail_extension= ; The voicemail extension to send in the NOTIFY Message-Account header
1257 ; (default: global/default_voicemail_extension)
1258 ;maximum_expiration=7200 ; Maximum time to keep an AoR (default: "7200")
1259 ;max_contacts=0 ; Maximum number of contacts that can bind to an AoR (default:
1260 ; "0")
1261 ;minimum_expiration=60 ; Minimum keep alive time for an AoR (default: "60")
1262 ;remove_existing=no ; Allow a registration to succeed by displacing any existing
1263 ; contacts that now exceed the max_contacts count. Any
1264 ; removed contacts are the next to expire. The behaviour is
1265 ; beneficial when rewrite_contact is enabled and max_contacts
1266 ; is greater than one. The removed contact is likely the old
1267 ; contact created by rewrite_contact that the device is
1268 ; refreshing.
1269 ; (default: "no")
1270 ;remove_unavailable=no ; If remove_existing is disabled, will allow a registration
1271 ; to succeed by removing only unavailable contacts when
1272 ; max_contacts is exceeded. This will reject a registration
1273 ; that exceeds max_contacts if no unavailable contacts are
1274 ; present to remove. If remove_existing is enabled, will
1275 ; prioritize removal of unavailable contacts before removing
1276 ; expiring soonest. This tames the behavior of remove_existing
1277 ; to only remove an available contact if an unavailable one is
1278 ; not present.
1279 ; (default: "no")
1280 ;type= ; Must be of type aor (default: "")
1281 ;qualify_frequency=0 ; Interval at which to qualify an AoR via OPTIONS requests.
1282 ; (default: "0")
1283 ;qualify_timeout=3.0 ; Qualify timeout in fractional seconds (default: "3.0")
1284 ;qualify_2xx_only=no ; If true, only qualify AoR if OPTIONS request returns 2XX
1285 ; (default: "no")
1286 ;authenticate_qualify=no ; Authenticates a qualify request if needed
1287 ; (default: "no")
1288 ;outbound_proxy= ; Proxy through which to send OPTIONS requests, a full SIP URI
1289 ; must be provided (default: "")
1290
1291
1292 ;==========================SYSTEM SECTION OPTIONS=========================
1293 ;[system]
1294 ; SYNOPSIS: Options that apply to the SIP stack as well as other system-wide settings
1295 ;timer_t1=500 ; Set transaction timer T1 value milliseconds (default: "500")
1296 ;timer_b=32000 ; Set transaction timer B value milliseconds (default: "32000")
1297 ;compact_headers=no ; Use the short forms of common SIP header names
1298 ; (default: "no")
1299 ;taskpool_minimum_size=4 ; Minimum number of taskprocessors in the res_pjsip
1300 ; taskpool (default: "4")
1301 ;taskpool_initial_size=4 ; Initial number of taskprocessors in the res_pjsip
1302 ; taskpool (default: "4")
1303 ;taskpool_auto_increment=1 ; The amount by which the number of taskprocessors is
1304 ; incremented when necessary (default: "1")
1305 ;taskpool_idle_timeout=60 ; Number of seconds before an idle taskprocessor
1306 ; should be disposed of (default: "60")
1307 ;taskpool_max_size=50 ; Maximum number of taskprocessors in the res_pjsip taskpool
1308 ; A value of 0 indicates no maximum (default: "50")
1309 ;disable_tcp_switch=yes ; Disable automatic switching from UDP to TCP transports
1310 ; if outgoing request is too large.
1311 ; See RFC 3261 section 18.1.1.
1312 ; Disabling this option has been known to cause interoperability
1313 ; issues, so disable at your own risk.
1314 ; (default: "yes")
1315 ;follow_early_media_fork = ; On outgoing calls, if the UAS responds with
1316 ; different SDP attributes on subsequent 18X or 2XX
1317 ; responses (such as a port update) AND the To tag
1318 ; on the subsequent response is different than that
1319 ; on the previous one, follow it. This usually
1320 ; happens when the INVITE is forked to multiple UASs
1321 ; and more than 1 sends an SDP answer.
1322 ; This option must also be enabled on endpoints that
1323 ; require this functionality.
1324 ; (default: yes)
1325 ;accept_multiple_sdp_answers =
1326 ; On outgoing calls, if the UAS responds with
1327 ; different SDP attributes on non-100rel 18X or 2XX
1328 ; responses (such as a port update) AND the To tag on
1329 ; the subsequent response is the same as that on the
1330 ; previous one, process it. This can happen when the
1331 ; UAS needs to change ports for some reason such as
1332 ; using a separate port for custom ringback.
1333 ; This option must also be enabled on endpoints that
1334 ; require this functionality.
1335 ; (default: no)
1336 ;disable_rport=no ; Disable the use of "rport" in outgoing requests.
1337 ;type= ; Must be of type system (default: "")
1338
1339 ;==========================GLOBAL SECTION OPTIONS=========================
1340 ;[global]
1341 ; SYNOPSIS: Options that apply globally to all SIP communications
1342 ;max_forwards=70 ; Value used in Max Forwards header for SIP requests
1343 ; (default: "70")
1344 ;type= ; Must be of type global (default: "")
1345 ;user_agent=Asterisk PBX ; Allows you to change the user agent string
1346 ; The default user agent string also contains
1347 ; the Asterisk version. If you don't want to
1348 ; expose this, change the user_agent string.
1349 ;default_outbound_endpoint=default_outbound_endpoint ; Endpoint to use when
1350 ; sending an outbound
1351 ; request to a URI
1352 ; without a specified
1353 ; endpoint (default: "d
1354 ; efault_outbound_endpo
1355 ; int")
1356 ;debug=no ; Enable/Disable SIP debug logging. Valid options include yes|no
1357 ; or a host address (default: "no")
1358 ;keep_alive_interval=90 ; The interval (in seconds) at which to send (double CRLF)
1359 ; keep-alives on all active connection-oriented transports;
1360 ; for connection-less like UDP see qualify_frequency.
1361 ; (default: "90")
1362 ;contact_expiration_check_interval=30
1363 ; The interval (in seconds) to check for expired contacts.
1364 ;disable_multi_domain=no
1365 ; Disable Multi Domain support.
1366 ; If disabled it can improve realtime performace by reducing
1367 ; number of database requsts
1368 ; (default: "no")
1369 ;endpoint_identifier_order=ip,username,anonymous
1370 ; The order by which endpoint identifiers are given priority.
1371 ; Currently, "ip", "header", "username", "auth_username" and "anonymous"
1372 ; are valid identifiers as registered by the res_pjsip_endpoint_identifier_*
1373 ; modules. Some modules like res_pjsip_endpoint_identifier_user register
1374 ; more than one identifier. Use the CLI command "pjsip show identifiers"
1375 ; to see the identifiers currently available.
1376 ; (default: ip,username,anonymous)
1377 ;max_initial_qualify_time=4 ; The maximum amount of time (in seconds) from
1378 ; startup that qualifies should be attempted on all
1379 ; contacts. If greater than the qualify_frequency
1380 ; for an aor, qualify_frequency will be used instead.
1381 ;regcontext=sipregistrations ; If regcontext is specified, Asterisk will dynamically
1382 ; create and destroy a NoOp priority 1 extension for a
1383 ; given endpoint who registers or unregisters with us.
1384 ; The extension added is the name of the endpoint.
1385 ;default_voicemail_extension=asterisk
1386 ; The voicemail extension to send in the NOTIFY Message-Account header
1387 ; if not set on endpoint or aor.
1388 ; (default: "")
1389 ;
1390 ; The following unidentified_request options are only used when "auth_username"
1391 ; matching is enabled in "endpoint_identifier_order".
1392 ;
1393 ;unidentified_request_count=5 ; The number of unidentified requests that can be
1394 ; received from a single IP address in
1395 ; unidentified_request_period seconds before a security
1396 ; event is generated. (default: 5)
1397 ;unidentified_request_period=5 ; See above. (default: 5 seconds)
1398 ;unidentified_request_prune_interval=30
1399 ; The interval at which unidentified requests
1400 ; are check to see if they can be pruned. If they're
1401 ; older than twice the unidentified_request_period,
1402 ; they're pruned.
1403 ;
1404 ;default_from_user=asterisk ; When Asterisk generates an outgoing SIP request, the
1405 ; From header username will be set to this value if
1406 ; there is no better option (such as CallerID or
1407 ; endpoint/from_user) to be used
1408 ;default_realm=asterisk ; When Asterisk generates a challenge, the digest realm
1409 ; will be set to this value if there is no better option
1410 ; (such as auth/realm) to be used.
1411
1412 ; Asterisk Task Processor Queue Size
1413 ; On heavy loaded system with DB storage you may need to increase
1414 ; taskprocessor queue.
1415 ; If the taskprocessor queue size reached high water level,
1416 ; the alert is triggered.
1417 ; If the alert is set the pjsip distibutor stops processing incoming
1418 ; requests until the alert is cleared.
1419 ; The alert is cleared when taskprocessor queue size drops to the
1420 ; low water clear level.
1421 ; The next options set taskprocessor queue levels for MWI.
1422 ;mwi_tps_queue_high=500 ; Taskprocessor high water alert trigger level.
1423 ;mwi_tps_queue_low=450 ; Taskprocessor low water clear alert level.
1424 ; The default is -1 for 90% of high water level.
1425
1426 ; Unsolicited MWI
1427 ; If there are endpoints configured with unsolicited MWI
1428 ; then res_pjsip_mwi module tries to send MWI to all endpoints on startup.
1429 ;mwi_disable_initial_unsolicited=no ; Disable sending unsolicited mwi to all endpoints on startup.
1430 ; If disabled then unsolicited mwi will start processing
1431 ; on the endpoint's next contact update.
1432
1433 ;ignore_uri_user_options=no ; Enable/Disable ignoring SIP URI user field options.
1434 ; If you have this option enabled and there are semicolons
1435 ; in the user field of a SIP URI then the field is truncated
1436 ; at the first semicolon. This effectively makes the semicolon
1437 ; a non-usable character for PJSIP endpoint names, extensions,
1438 ; and AORs. This can be useful for improving compatability with
1439 ; an ITSP that likes to use user options for whatever reason.
1440 ; Example:
1441 ; URI: "sip:1235557890;[email protected];user=phone"
1442 ; The user field is "1235557890;phone-context=national"
1443 ; Which becomes this: "1235557890"
1444 ;
1445 ; Note: The caller-id and redirecting number strings obtained
1446 ; from incoming SIP URI user fields are always truncated at the
1447 ; first semicolon.
1448
1449 ;send_contact_status_on_update_registration=no ; Enable sending AMI ContactStatus
1450 ; event when a device refreshes its registration
1451 ; (default: "no")
1452
1453 ;taskprocessor_overload_trigger=global
1454 ; Set the trigger the distributor will use to detect
1455 ; taskprocessor overloads. When triggered, the distributor
1456 ; will not accept any new requests until the overload has
1457 ; cleared.
1458 ; "global": (default) Any taskprocessor overload will trigger.
1459 ; "pjsip_only": Only pjsip taskprocessor overloads will trigger.
1460 ; "none": No overload detection will be performed.
1461 ; WARNING: The "none" and "pjsip_only" options should be used
1462 ; with extreme caution and only to mitigate specific issues.
1463 ; Under certain conditions they could make things worse.
1464
1465 ;norefersub=yes ; Enable sending norefersub option tag in Supported header to advertise
1466 ; that the User Agent is capable of accepting a REFER request with
1467 ; creating an implicit subscription (see RFC 4488).
1468 ; (default: "yes")
1469
1470 ;all_codecs_on_empty_reinvite=yes
1471 ; On reception of a re-INVITE without SDP Asterisk will send an SDP
1472 ; offer in the 200 OK response containing all configured codecs on the
1473 ; endpoint, instead of simply those that have already been negotiated.
1474 ; RFC 3261 specifies this as a SHOULD requirement.
1475 ; (default: "no")
1476
1477 ;allow_sending_180_after_183=yes ; Allow Asterisk to send 180 Ringing to an endpoint
1478 ; after 183 Session Progress has been send.
1479 ; If disabled Asterisk will instead send only a
1480 ; 183 Session Progress to the endpoint.
1481 ; (default: "no")
1482
1483 ;default_auth_algorithms_uas = MD5
1484 ; The default list of digest algorithms to support when an
1485 ; auth object is used as a UAS. See the "supported_algorithms_uas"
1486 ; parameter in the "auth" object above.
1487 ; The default is MD5
1488
1489 ;default_auth_algorithms_uac = MD5
1490 ; The default list of digest algorithms to support when an
1491 ; auth object is used as a UAC. See the "supported_algorithms_uac"
1492 ; parameter in the "auth" object above.
1493 ; The default is MD5
1494
1495
1496 ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_acl
1497 ;==========================ACL SECTION OPTIONS=========================
1498 ;[acl]
1499 ; SYNOPSIS: Access Control List
1500 ;acl= ; List of IP ACL section names in acl conf (default: "")
1501 ;contact_acl= ; List of Contact ACL section names in acl conf (default: "")
1502 ;contact_deny= ; List of Contact header addresses to deny (default: "")
1503 ;contact_permit= ; List of Contact header addresses to permit (default:
1504 ; "")
1505 ;deny= ; List of IP addresses to deny access from (default: "")
1506 ;permit= ; List of IP addresses to permit access from (default: "")
1507 ;type= ; Must be of type acl (default: "")
1508
1509
1510
1511
1512 ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_outbound_registration
1513 ;==========================REGISTRATION SECTION OPTIONS=========================
1514 ;[registration]
1515 ; SYNOPSIS: The configuration for outbound registration
1516 ;auth_rejection_permanent=yes ; Determines whether failed authentication
1517 ; challenges are treated as permanent failures
1518 ; (default: "yes")
1519 ;client_uri= ; Client SIP URI used when attemping outbound registration
1520 ; (default: "")
1521 ;contact_user= ; Contact User to use in request (default: "")
1522 ;expiration=3600 ; Expiration time for registrations in seconds
1523 ; (default: "3600")
1524 ;max_retries=10 ; Maximum number of registration attempts (default: "10")
1525 ;outbound_auth= ; Authentication object to be used for outbound registrations
1526 ; (default: "")
1527 ;outbound_proxy= ; Proxy through which to send registrations, a full SIP URI
1528 ; must be provided (default: "")
1529 ;max_random_initial_delay=10 ; Maximum random delay for initial registrations (default: 10)
1530 ; Generally it is a good idea to space out registrations
1531 ; to not overload the system. If you have a small number
1532 ; of registrations and need them to register more quickly,
1533 ; you can reduce this to a lower value.
1534 ;retry_interval=60 ; Interval in seconds between retries if outbound
1535 ; registration is unsuccessful (default: "60")
1536 ;forbidden_retry_interval=0 ; Interval used when receiving a 403 Forbidden
1537 ; response (default: "0")
1538 ;fatal_retry_interval=0 ; Interval used when receiving a fatal response.
1539 ; (default: "0") A fatal response is any permanent
1540 ; failure (non-temporary 4xx, 5xx, 6xx) response
1541 ; received from the registrar. NOTE - if also set
1542 ; the 'forbidden_retry_interval' takes precedence
1543 ; over this one when a 403 is received. Also, if
1544 ; 'auth_rejection_permanent' equals 'yes' a 401 and
1545 ; 407 become subject to this retry interval.
1546 ;server_uri= ; SIP URI of the server to register against (default: "")
1547 ;transport= ; Transport used for outbound authentication (default: "")
1548 ;line= ; When enabled this option will cause a 'line' parameter to be
1549 ; added to the Contact header placed into the outgoing
1550 ; registration request. If the remote server sends a call
1551 ; this line parameter will be used to establish a relationship
1552 ; to the outbound registration, ultimately causing the
1553 ; configured endpoint to be used (default: "no")
1554 ;endpoint= ; When line support is enabled this configured endpoint name
1555 ; is used for incoming calls that are related to the outbound
1556 ; registration (default: "")
1557 ;type= ; Must be of type registration (default: "")
1558
1559
1560
1561
1562 ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_endpoint_identifier_ip
1563 ;==========================IDENTIFY SECTION OPTIONS=========================
1564 ;[identify]
1565 ; SYNOPSIS: Identifies endpoints via some criteria.
1566 ;
1567 ; NOTE: If multiple matching criteria are provided then an inbound request will
1568 ; be matched to the endpoint if it matches ANY of the criteria.
1569 ;endpoint= ; Name of endpoint identified (default: "")
1570 ;srv_lookups=yes ; Perform SRV lookups for provided hostnames. (default: yes)
1571 ;match= ; Comma separated list of IP addresses, networks, or hostnames to match
1572 ; against (default: "")
1573 ;match_header= ; SIP header with specified value to match against (default: "")
1574 ;type= ; Must be of type identify (default: "")
1575
1576
1577
1578
1579 ;========================PHONEPROV_USER SECTION OPTIONS=======================
1580 ;[phoneprov]
1581 ; SYNOPSIS: Contains variables for autoprovisioning each user
1582 ;endpoint= ; The endpoint from which to gather username, secret, etc. (default: "")
1583 ;PROFILE= ; The name of a profile configured in phoneprov.conf (default: "")
1584 ;MAC= ; The mac address for this user (default: "")
1585 ;OTHERVAR= ; Any other name value pair to be used in templates (default: "")
1586 ; Common variables include LINE, LINEKEYS, etc.
1587 ; See phoneprov.conf.sample for others.
1588 ;type= ; Must be of type phoneprov (default: "")
1589
1590
1591
1592 ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_outbound_publish
1593 ;======================OUTBOUND_PUBLISH SECTION OPTIONS=====================
1594 ; See https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/Publishing-Extension-State/
1595 ; for more information.
1596 ;[outbound-publish]
1597 ;type=outbound-publish ; Must be of type 'outbound-publish'.
1598
1599 ;expiration=3600 ; Expiration time for publications in seconds
1600
1601 ;outbound_auth= ; Authentication object(s) to be used for outbound
1602 ; publishes.
1603 ; This is a comma-delimited list of auth sections
1604 ; defined in pjsip.conf used to respond to outbound
1605 ; authentication challenges.
1606 ; Using the same auth section for inbound and
1607 ; outbound authentication is not recommended. There
1608 ; is a difference in meaning for an empty realm
1609 ; setting between inbound and outbound authentication
1610 ; uses. See the auth realm description for details.
1611
1612 ;outbound_proxy= ; SIP URI of the outbound proxy used to send publishes.
1613 ; Consider adding \;lr to keep user@domain in the request URI.
1614
1615 ;server_uri= ; SIP URI of the server and entity to publish to.
1616 ; This is the URI at which to find the entity and
1617 ; server to send the outbound PUBLISH to.
1618 ; This URI is used as the request URI of the outbound
1619 ; PUBLISH request from Asterisk.
1620
1621 ;from_uri= ; SIP URI to use in the From header.
1622 ; This is the URI that will be placed into the From
1623 ; header of outgoing PUBLISH messages. If no URI is
1624 ; specified then the URI provided in server_uri will
1625 ; be used.
1626
1627 ;to_uri= ; SIP URI to use in the To header.
1628 ; This is the URI that will be placed into the To
1629 ; header of outgoing PUBLISH messages. If no URI is
1630 ; specified then the URI provided in server_uri will
1631 ; be used.
1632
1633 ;event= ; Event type of the PUBLISH.
1634
1635 ;max_auth_attempts= ; Maximum number of authentication attempts before
1636 ; stopping the pub.
1637
1638 ;transport= ; Transport used for outbound publish.
1639 ; A transport configured in pjsip.conf. As with other
1640 ; res_pjsip modules, this will use the first
1641 ; available transport of the appropriate type if
1642 ; unconfigured.
1643
1644 ;multi_user=no ; Enable multi-user support (Asterisk 14+ only)
1645
1646
1647
1648 ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_pubsub
1649 ; See https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/Resource-List-Subscriptions-RLS/
1650 ; for more information.
1651 ;=============================RESOURCE-LIST===================================
1652 ;[resource_list]
1653 ;type=resource_list ; Must be of type 'resource_list'.
1654
1655 ;event= ; The SIP event package that the list resource.
1656 ; belongs to. The SIP event package describes the
1657 ; types of resources that Asterisk reports the state
1658 ; of.
1659
1660 ;list_item= ; The name of a resource to report state on.
1661 ; In general Asterisk looks up list items in the
1662 ; following way:
1663 ; 1. Check if the list item refers to another
1664 ; configured resource list.
1665 ; 2. Pass the name of the resource off to
1666 ; event-package-specific handlers to find the
1667 ; specified resource.
1668 ; The second part means that the way the list item
1669 ; is specified depends on what type of list this is.
1670 ; For instance, if you have the event set to
1671 ; presence, then list items should be in the form of
1672 ; dialplan_extension@dialplan_context. For
1673 ; message-summary, mailbox names should be listed.
1674
1675 ;full_state=no ; Indicates if the entire list's state should be
1676 ; sent out.
1677 ; If this option is enabled, and a resource changes
1678 ; state, then Asterisk will construct a notification
1679 ; that contains the state of all resources in the
1680 ; list. If the option is disabled, Asterisk will
1681 ; construct a notification that only contains the
1682 ; states of resources that have changed.
1683 ; NOTE: Even with this option disabled, there are
1684 ; certain situations where Asterisk is forced to send
1685 ; a notification with the states of all resources in
1686 ; the list. When a subscriber renews or terminates
1687 ; its subscription to the list, Asterisk MUST send
1688 ; a full state notification.
1689
1690 ;notification_batch_interval=0
1691 ; Time Asterisk should wait, in milliseconds,
1692 ; before sending notifications.
1693
1694 ;resource_display_name=no ; Indicates whether display name of resource
1695 ; or the resource name being reported.
1696 ; If this option is enabled, the Display Name
1697 ; will be reported as resource name.
1698 ; If the event set to presence or dialog,
1699 ; the HINT name will be set as the Display Name.
1700 ; For example:
1701 ; exten => 1234,hint,PJSIP/user1234(Alice)
1702 ; If enabled the resource name will be 'Alice'.
1703 ; If disabled the resource name will be '1234'.
1704 ; The message-summary is not supported yet.
1705
1706
1707 ;==========================INBOUND_PUBLICATION================================
1708 ; See https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/Exchanging-Device-and-Mailbox-State-Using-PJSIP/
1709 ; for more information.
1710 ;[inbound-publication]
1711 ;type= ; Must be of type 'inbound-publication'.
1712
1713 ;endpoint= ; Optional name of an endpoint that is only allowed
1714 ; to publish to this resource.
1715
1716
1717 ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_publish_asterisk
1718 ;==========================ASTERISK_PUBLICATION===============================
1719 ; See https://docs.asterisk.org/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/Exchanging-Device-and-Mailbox-State-Using-PJSIP/
1720 ; for more information.
1721 ;[asterisk-publication]
1722 ;type=asterisk-publication ; Must be of type 'asterisk-publication'.
1723
1724 ;devicestate_publish= ; Optional name of a publish item that can be used
1725 ; to publish a req.
1726
1727 ;mailboxstate_publish= ; Optional name of a publish item that can be used
1728 ; to publish a req.
1729
1730 ;device_state=no ; Whether we should permit incoming device state
1731 ; events.
1732
1733 ;device_state_filter= ; Optional regular expression used to filter what
1734 ; devices we accept events for.
1735
1736 ;mailbox_state=no ; Whether we should permit incoming mailbox state
1737 ; events.
1738
1739 ;mailbox_state_filter= ; Optional regular expression used to filter what
1740 ; mailboxes we accept events for.
1741
1742
1743 ;================================TEL URIs=====================================
1744 ;
1745 ; Asterisk has TEL URI support, but with limited scope. Support is only for
1746 ; TEL URIs present in traffic from a remote party. Asterisk does not generate
1747 ; any TEL URIs of its own.
1748 ;
1749 ; Currently, the allowed request types are INVITE, ACK, BYE, and CANCEL. Any
1750 ; other request type that contains a TEL URI will behave as it did before.
1751 ; TEL URIs are allowed in the request, From, and To headers.
1752 ;
1753 ; You can match a TEL URI From header by IP, header, or auth_username.