Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
932
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.43 KB | None | 0 0
  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 http://wiki.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 on
  35. ; the wiki at: https://wiki.asterisk.org/wiki/x/EwFB
  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://wiki.asterisk.org/wiki/x/uA80AQ
  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
  131. ;bind=0.0.0.0
  132. ; UDP transport behind NAT
  133. ;
  134. ;[transport-udp-nat]
  135. ;type=transport
  136. ;protocol=udp
  137. bind=0.0.0.0
  138. ;local_net=192.168.3.0/24
  139. ;external_media_address=203.0.113.1
  140. ;external_signaling_address=203.0.113.1
  141.  
  142. ; Basic IPv6 UDP transport
  143. ;
  144. ;[transport-udp-ipv6]
  145. ;type=transport
  146. ;protocol=udp
  147. ;bind=::
  148.  
  149. ; Example IPv4 TLS transport
  150. ;
  151. ;[transport-tls]
  152. ;type=transport
  153. ;protocol=tls
  154. ;bind=0.0.0.0
  155. ;cert_file=/path/mycert.crt
  156. ;priv_key_file=/path/mykey.key
  157. ;cipher=ADH-AES256-SHA,ADH-AES128-SHA
  158. ;method=tlsv1
  159.  
  160.  
  161. ;===============OUTBOUND REGISTRATION WITH OUTBOUND AUTHENTICATION============
  162. ;
  163. ; This is a simple registration that works with some SIP trunking providers.
  164. ; You'll need to set up the auth example "mytrunk_auth" below to enable outbound
  165. ; authentication. Note that we "outbound_auth=" use for outbound authentication
  166. ; instead of "auth=", which is for inbound authentication.
  167. ;
  168. ; If you are registering to a server from behind NAT, be sure you assign a transport
  169. ; that is appropriately configured with NAT related settings. See the NAT transport example.
  170. ;
  171. ; "contact_user=" sets the SIP contact header's user portion of the SIP URI
  172. ; this will affect the extension reached in dialplan when the far end calls you at this
  173. ; registration. The default is 's'.
  174. ;
  175. ; If you would like to enable line support and have incoming calls related to this
  176. ; registration go to an endpoint automatically the "line" and "endpoint" options must
  177. ; be set. The "endpoint" option specifies what endpoint the incoming call should be
  178. ; associated with.
  179.  
  180. ;[mytrunk]
  181. ;type=registration
  182. ;transport=transport-udp
  183. ;outbound_auth=mytrunk_auth
  184. ;server_uri=sip:sip.example.com
  185. ;client_uri=sip:1234567890@sip.example.com
  186. ;contact_user=1234567890
  187. ;retry_interval=60
  188. ;forbidden_retry_interval=600
  189. ;expiration=3600
  190. ;line=yes
  191. ;endpoint=mytrunk
  192.  
  193. ;[mytrunk_auth]
  194. ;type=auth
  195. ;auth_type=userpass
  196. ;password=1234567890
  197. ;username=1234567890
  198. ;realm=sip.example.com
  199.  
  200. ;===============ENDPOINT CONFIGURED AS A TRUNK, OUTBOUND AUTHENTICATION=======
  201. ;
  202. ; This is one way to configure an endpoint as a trunk. It is set up with
  203. ; "outbound_auth=" to enable authentication when dialing out through this
  204. ; endpoint. There is no inbound authentication set up since a provider will
  205. ; not normally authenticate when calling you.
  206. ;
  207. ; The identify configuration enables IP address matching against this endpoint.
  208. ; For calls from a trunking provider, the From user may be different every time,
  209. ; so we want to match against IP address instead of From user.
  210. ;
  211. ; If you want the provider of your trunk to know where to send your calls
  212. ; you'll need to use an outbound registration as in the example above this
  213. ; section.
  214. ;
  215. ; NAT
  216. ;
  217. ; At a basic level configure the endpoint with a transport that is set up
  218. ; with the appropriate NAT settings. There may be some additional settings you
  219. ; need here based on your NAT/Firewall scenario. Look to the CLI config help
  220. ; "config show help res_pjsip endpoint" or on the wiki for other NAT related
  221. ; options and configuration. We've included a few below.
  222. ;
  223. ; AOR
  224. ;
  225. ; Endpoints use one or more AOR sections to store their contact details.
  226. ; You can define multiple contact addresses in SIP URI format in multiple
  227. ; "contact=" entries.
  228. ;
  229.  
  230. [11]
  231. type=endpoint
  232. context=from-internal
  233. disallow=all
  234. allow=g723.1
  235. allow=ulaw
  236. allow=alaw
  237. auth=auth11
  238. aors=11
  239.  
  240. [auth11]
  241. type=auth
  242. auth_type=userpass
  243. password=11
  244. username=11
  245.  
  246. [11]
  247. type=aor
  248. max_contacts=1
  249.  
  250. [12]
  251. type=endpoint
  252. context=from-internal
  253. disallow=all
  254. allow=g723.1
  255. allow=ulaw
  256. allow=alaw
  257. allow=gsm
  258. auth=auth12
  259. aors=12
  260.  
  261. [auth12]
  262. type=auth
  263. auth_type=userpass
  264. password=12
  265. username=12
  266.  
  267. [12]
  268. type=aor
  269. max_contacts=1
  270.  
  271.  
  272.  
  273.  
  274. [endpoint_internal](!)
  275. type=endpoint
  276. transport=transport-udp
  277. context=from-internal
  278. disallow=all
  279. allow=g723.1
  280. allow=ulaw
  281. allow=alaw
  282. allow=gsm
  283.  
  284. [auth_userpass](!)
  285. type=auth
  286. auth_type=userpass
  287.  
  288. [aor_dynamic](!)
  289. type=aor
  290. max_contacts=1
  291.  
  292. [Dorothee](endpoint_internal)
  293. auth=Dorothee
  294. aors=Dorothee
  295. ;contact=sip:Dorothee@192.168.3.62:5060
  296.  
  297. [Dorothee](auth_userpass)
  298. password=E@ster1sk78
  299.  
  300. username=Dorothee
  301. [Dorothee](aor_dynamic)
  302.  
  303. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  304.  
  305. [Jerome](endpoint_internal)
  306. auth=Jerome
  307. aors=Jerome
  308. ;contact=sip:Jerome@192.168.3.61:5060
  309.  
  310. [Jerome](auth_userpass)
  311. password=E@ster1sk78
  312.  
  313. username=Jerome
  314. [Jerome](aor_dynamic)
  315.  
  316. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  317.  
  318. [Delphine](endpoint_internal)
  319. auth=Delphine
  320. aors=Delphine
  321. ;contact=sip:Delphine@192.168.3.60:5060
  322.  
  323. [Delphine](auth_userpass)
  324. password=E@ster1sk78
  325.  
  326. username=Delphine
  327. [Delphine](aor_dynamic)
  328.  
  329. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  330.  
  331.  
  332. ;outbound_auth=mytrunk_auth
  333. ;aors=mytrunk
  334. ; ;A few NAT relevant options that may come in handy.
  335. ;force_rport=yes ;It's a good idea to read the configuration help for each
  336. ;direct_media=no ;of these options.
  337. ;ice_support=yes
  338.  
  339. ;[mytrunk]
  340. ;type=aor
  341. ;contact=sip:198.51.100.1:5060
  342. ;contact=sip:198.51.100.2:5060
  343.  
  344. ;[mytrunk]
  345. ;type=identify
  346. ;endpoint=mytrunk
  347. ;match=198.51.100.1
  348. ;match=198.51.100.2
  349.  
  350.  
  351. ;=============ENDPOINT CONFIGURED AS A TRUNK, INBOUND AUTH AND REGISTRATION===
  352. ;
  353. ; Here we are allowing a remote device to register to Asterisk and requiring
  354. ; that they authenticate for registration and calls.
  355. ; You'll note that this configuration is essentially the same as configuring
  356. ; an endpoint for use with a SIP phone.
  357.  
  358.  
  359. ;[7000]
  360. ;type=endpoint
  361. ;context=from-external
  362. ;disallow=all
  363. ;allow=ulaw
  364. ;transport=transport-udp
  365. ;auth=7000
  366. ;aors=7000
  367.  
  368. ;[7000]
  369. ;type=auth
  370. ;auth_type=userpass
  371. ;password=7000
  372. ;username=7000
  373.  
  374. ;[7000]
  375. ;type=aor
  376. ;max_contacts=1
  377.  
  378.  
  379. ;===============ENDPOINT CONFIGURED FOR USE WITH A SIP PHONE==================
  380. ;
  381. ; This example includes the endpoint, auth and aor configurations. It
  382. ; requires inbound authentication and allows registration, as well as references
  383. ; a transport that you'll need to uncomment from the previous examples.
  384. ;
  385. ; Uncomment one of the transport lines to choose which transport you want. If
  386. ; not specified then the default transport chosen is the first defined transport
  387. ; in the configuration file.
  388. ;
  389. ; Modify the "max_contacts=" line to change how many unique registrations to allow.
  390. ;
  391. ; Use the "contact=" line instead of max_contacts= if you want to statically
  392. ; define the location of the device.
  393. ;
  394. ; If using the TLS enabled transport, you may want the "media_encryption=sdes"
  395. ; option to additionally enable SRTP, though they are not mutually inclusive.
  396. ;
  397. ; If this endpoint were remote, and it was using a transport configured for NAT
  398. ; then you likely want to use "direct_media=no" to prevent audio issues.
  399.  
  400.  
  401. ;[6001]
  402. ;type=endpoint
  403. ;transport=transport-udp
  404. ;context=from-internal
  405. ;disallow=all
  406. ;allow=ulaw
  407. ;allow=gsm
  408. ;auth=6001
  409. ;aors=6001
  410. ;
  411. ; A few more transports to pick from, and some related options below them.
  412. ;
  413. ;transport=transport-tls
  414. ;media_encryption=sdes
  415. ;transport=transport-udp-ipv6
  416. ;transport=transport-udp-nat
  417. ;direct_media=no
  418. ;
  419. ; MWI related options
  420.  
  421. ;aggregate_mwi=yes
  422. ;mailboxes=6001@default,7001@default
  423. ;mwi_from_user=6001
  424. ;
  425. ; Extension and Device state options
  426. ;
  427. ;device_state_busy_at=1
  428. ;allow_subscribe=yes
  429. ;sub_min_expiry=30
  430.  
  431. ;[6001]
  432. ;type=auth
  433. ;auth_type=userpass
  434. ;password=6001
  435. ;username=6001
  436.  
  437. ;[6001]
  438. ;type=aor
  439. ;max_contacts=1
  440. ;contact=sip:6001@192.0.2.1:5060
  441.  
  442. ;===============ENDPOINT BEHIND NAT OR FIREWALL===============================
  443. ;
  444. ; This example assumes your transport is configured with a public IP and the
  445. ; endpoint itself is behind NAT and maybe a firewall, rather than having
  446. ; Asterisk behind NAT. For the sake of simplicity, we'll assume a typical
  447. ; VOIP phone. The most important settings to configure are:
  448. ;
  449. ; * direct_media, to ensure Asterisk stays in the media path
  450. ; * rtp_symmetric and force_rport options to help the far-end NAT/firewall
  451. ;
  452. ; Depending on the settings of your remote SIP device or NAT/firewall device
  453. ; you may have to experiment with a combination of these settings.
  454. ;
  455. ; If both Asterisk and the remote phones are a behind NAT/firewall then you'll
  456. ; have to make sure to use a transport with appropriate settings (as in the
  457. ; transport-udp-nat example).
  458. ;
  459. ;[6002]
  460. ;type=endpoint
  461. ;transport=transport-udp
  462. ;context=from-internal
  463. ;disallow=all
  464. ;allow=ulaw
  465. ;auth=6002
  466. ;aors=6002
  467. ;direct_media=no
  468. ;rtp_symmetric=yes
  469. ;force_rport=yes
  470. ;rewrite_contact=yes ; necessary if endpoint does not know/register public ip:port
  471. ;ice_support=yes ;This is specific to clients that support NAT traversal
  472. ;for media via ICE,STUN,TURN. See the wiki at:
  473. ;https://wiki.asterisk.org/wiki/x/D4FHAQ
  474. ;for a deeper explanation of this topic.
  475.  
  476. ;[6002]
  477. ;type=auth
  478. ;auth_type=userpass
  479. ;password=6002
  480. ;username=6002
  481.  
  482. ;[6002]
  483. ;type=aor
  484. ;max_contacts=2
  485.  
  486.  
  487. ;============EXAMPLE ACL CONFIGURATION==========================================
  488. ;
  489. ; The ACL or Access Control List section defines a set of permissions to permit
  490. ; or deny access to various address or addresses. Alternatively it references an
  491. ; ACL configuration already set in acl.conf.
  492. ;
  493. ; The ACL configuration is independent of individual endpoint configuration and
  494. ; operates on all inbound SIP communication using res_pjsip.
  495.  
  496. ; Reference an ACL defined in acl.conf.
  497. ;
  498. ;[acl]
  499. ;type=acl
  500. ;acl=example_named_acl1
  501.  
  502. ; Reference a contactacl specifically.
  503. ;
  504. ;[acl]
  505. ;type=acl
  506. ;contact_acl=example_contact_acl1
  507.  
  508. ; Define your own ACL here in pjsip.conf and
  509. ; permit or deny by IP address or range.
  510. ;
  511. ;[acl]
  512. ;type=acl
  513. ;deny=0.0.0.0/0.0.0.0
  514. ;permit=209.16.236.0/24
  515. ;deny=209.16.236.1
  516.  
  517. ; Restrict based on Contact Headers rather than IP.
  518. ; Define options multiple times for various addresses or use a comma-delimited string.
  519. ;
  520. ;[acl]
  521. ;type=acl
  522. ;contact_deny=0.0.0.0/0.0.0.0
  523. ;contact_permit=209.16.236.0/24
  524. ;contact_permit=209.16.236.1
  525. ;contact_permit=209.16.236.2,209.16.236.3
  526.  
  527. ; Restrict based on Contact Headers rather than IP and use
  528. ; advanced syntax. Note the bang symbol used for "NOT", so we can deny
  529. ; 209.16.236.12/32 within the permit= statement.
  530. ;
  531. ;[acl]
  532. ;type=acl
  533. ;contact_deny=0.0.0.0/0.0.0.0
  534. ;contact_permit=209.16.236.0
  535. ;permit=209.16.236.0/24, !209.16.236.12/32
  536.  
  537.  
  538. ;============EXAMPLE RLS CONFIGURATION==========================================
  539. ;
  540. ;Asterisk provides support for RFC 4662 Resource List Subscriptions. This allows
  541. ;for an endpoint to, through a single subscription, subscribe to the states of
  542. ;multiple resources. Resource lists are configured in pjsip.conf using the
  543. ;resource_list configuration object. Below is an example of a resource list that
  544. ;allows an endpoint to subscribe to the presence of alice, bob, and carol.
  545.  
  546. ;[my_list]
  547. ;type=resource_list
  548. ;list_item=alice
  549. ;list_item=bob
  550. ;list_item=carol
  551. ;event=presence
  552.  
  553. ;The "event" option in the resource list corresponds to the SIP event-package
  554. ;that the subscribed resources belong to. A resource list can only provide states
  555. ;for resources that belong to the same event-package. This means that you cannot
  556. ;create a list that is a combination of presence and message-summary resources,
  557. ;for instance. Any event-package that Asterisk supports can be used in a resource
  558. ;list (presence, dialog, and message-summary). Whenever support for a new event-
  559. ;package is added to Asterisk, support for that event-package in resource lists
  560. ;will automatically be supported.
  561.  
  562. ;The "list_item" options indicate the names of resources to subscribe to. The
  563. ;way these are interpreted is event-package specific. For instance, with presence
  564. ;list_items, hints in the dialplan are looked up. With message-summary list_items,
  565. ;mailboxes are looked up using your installed voicemail provider (app_voicemail
  566. ;by default). Note that in the above example, the list_item options were given
  567. ;one per line. However, it is also permissible to provide multiple list_item
  568. ;options on a single line (e.g. list_item = alice,bob,carol).
  569.  
  570. ;In addition to the options presented in the above configuration, there are two
  571. ;more configuration options that can be set.
  572. ; * full_state: dictates whether Asterisk should always send the states of
  573. ; all resources in the list at once. Defaults to "no". You should only set
  574. ; this to "yes" if you are interoperating with an endpoint that does not
  575. ; behave correctly when partial state notifications are sent to it.
  576. ; * notification_batch_interval: By default, Asterisk will send a NOTIFY request
  577. ; immediately when a resource changes state. This option causes Asterisk to
  578. ; start batching resource state changes for the specified number of milliseconds
  579. ; after a resource changes states. This way, if multiple resources change state
  580. ; within a brief interval, Asterisk can send a single NOTIFY request with all
  581. ; of the state changes reflected in it.
  582.  
  583. ;There is a limitation to the size of resource lists in Asterisk. If a constructed
  584. ;notification from Asterisk will exceed 64000 bytes, then the message is deemed
  585. ;too large to send. If you find that you are seeing error messages about SIP
  586. ;NOTIFY requests being too large to send, consider breaking your lists into
  587. ;sub-lists.
  588.  
  589. ;============EXAMPLE PHONEPROV CONFIGURATION================================
  590.  
  591. ; Before configuring provisioning here, see the documentation for res_phoneprov
  592. ; and configure phoneprov.conf appropriately.
  593.  
  594. ; For each user to be autoprovisioned, a [phoneprov] configuration section
  595. ; must be created. At a minimum, the 'type', 'PROFILE' and 'MAC' variables must
  596. ; be set. All other variables are optional.
  597. ; Example:
  598.  
  599. ;[1000]
  600. ;type=phoneprov ; must be specified as 'phoneprov'
  601. ;endpoint=1000 ; Required only if automatic setting of
  602. ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
  603. ; are needed.
  604. ;PROFILE=digium ; required
  605. ;MAC=deadbeef4dad ; required
  606. ;SERVER=myserver.example.com ; A standard variable
  607. ;TIMEZONE=America/Denver ; A standard variable
  608. ;MYVAR=somevalue ; A user confdigured variable
  609.  
  610. ; If the phoneprov sections have common variables, it is best to create a
  611. ; phoneprov template. The example below will produce the same configuration
  612. ; as the one specified above except that MYVAR will be overridden for
  613. ; the specific user.
  614. ; Example:
  615.  
  616. ;[phoneprov_defaults](!)
  617. ;type=phoneprov ; must be specified as 'phoneprov'
  618. ;PROFILE=digium ; required
  619. ;SERVER=myserver.example.com ; A standard variable
  620. ;TIMEZONE=America/Denver ; A standard variable
  621. ;MYVAR=somevalue ; A user configured variable
  622.  
  623. ;[1000](phoneprov_defaults)
  624. ;endpoint=1000 ; Required only if automatic setting of
  625. ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
  626. ; are needed.
  627. ;MAC=deadbeef4dad ; required
  628. ;MYVAR=someOTHERvalue ; A user confdigured variable
  629.  
  630. ; To have USERNAME and SECRET automatically set, the endpoint
  631. ; specified here must in turn have an outbound_auth section defined.
  632.  
  633. ; Fuller example:
  634.  
  635. ;[1000]
  636. ;type=endpoint
  637. ;outbound_auth=1000-auth
  638. ;callerid=My Name <8005551212>
  639. ;transport=transport-udp-nat
  640.  
  641. ;[1000-auth]
  642. ;type=auth
  643. ;auth_type=userpass
  644. ;username=myname
  645. ;password=mysecret
  646.  
  647. ;[phoneprov_defaults](!)
  648. ;type=phoneprov ; must be specified as 'phoneprov'
  649. ;PROFILE=someprofile ; required
  650. ;SERVER=myserver.example.com ; A standard variable
  651. ;TIMEZONE=America/Denver ; A standard variable
  652. ;MYVAR=somevalue ; A user configured variable
  653.  
  654. ;[1000](phoneprov_defaults)
  655. ;endpoint=1000 ; Required only if automatic setting of
  656. ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
  657. ; are needed.
  658. ;MAC=deadbeef4dad ; required
  659. ;MYVAR=someUSERvalue ; A user confdigured variable
  660. ;LABEL=1000 ; A standard variable
  661.  
  662. ; The previous sections would produce a template substitution map as follows:
  663.  
  664. ;MAC=deadbeef4dad ;added by pp1000
  665. ;USERNAME=myname ;automatically added by 1000-auth username
  666. ;SECRET=mysecret ;automatically added by 1000-auth password
  667. ;PROFILE=someprofile ;added by defaults
  668. ;SERVER=myserver.example.com ;added by defaults
  669. ;SERVER_PORT=5060 ;added by defaults
  670. ;MYVAR=someUSERvalue ;added by defaults but overdidden by user
  671. ;CALLERID=8005551212 ;automatically added by 1000 callerid
  672. ;DISPLAY_NAME=My Name ;automatically added by 1000 callerid
  673. ;TIMEZONE=America/Denver ;added by defaults
  674. ;TZOFFSET=252100 ;automatically calculated by res_phoneprov
  675. ;DST_ENABLE=1 ;automatically calculated by res_phoneprov
  676. ;DST_START_MONTH=3 ;automatically calculated by res_phoneprov
  677. ;DST_START_MDAY=9 ;automatically calculated by res_phoneprov
  678. ;DST_START_HOUR=3 ;automatically calculated by res_phoneprov
  679. ;DST_END_MONTH=11 ;automatically calculated by res_phoneprov
  680. ;DST_END_MDAY=2 ;automatically calculated by res_phoneprov
  681. ;DST_END_HOUR=1 ;automatically calculated by res_phoneprov
  682. ;ENDPOINT_ID=1000 ;automatically added by this module
  683. ;AUTH_ID=1000-auth ;automatically added by this module
  684. ;TRANSPORT_ID=transport-udp-nat ;automatically added by this module
  685. ;LABEL=1000 ;added by user
  686.  
  687. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip
  688. ;==========================ENDPOINT SECTION OPTIONS=========================
  689. ;[endpoint]
  690. ; SYNOPSIS: Endpoint
  691. ;100rel=yes ; Allow support for RFC3262 provisional ACK tags (default:
  692. ; "yes")
  693. ;aggregate_mwi=yes ; (default: "yes")
  694. ;allow= ; Media Codec s to allow (default: "")
  695. ;allow_overlap=yes ; Enable RFC3578 overlap dialing support. (default: "yes")
  696. ;aors= ; AoR s to be used with the endpoint (default: "")
  697. ;auth= ; Authentication Object s associated with the endpoint (default: "")
  698. ;callerid= ; CallerID information for the endpoint (default: "")
  699. ;callerid_privacy=allowed_not_screened ; Default privacy level (default: "allowed_not_screened")
  700. ;callerid_tag= ; Internal id_tag for the endpoint (default: "")
  701. ;context=default ; Dialplan context for inbound sessions (default:
  702. ; "default")
  703. ;direct_media_glare_mitigation=none ; Mitigation of direct media re INVITE
  704. ; glare (default: "none")
  705. ;direct_media_method=invite ; Direct Media method type (default: "invite")
  706. ;connected_line_method=invite ; Connected line method type.
  707. ; When set to "invite", check the remote's
  708. ; Allow header and if UPDATE is allowed, send
  709. ; UPDATE instead of INVITE to avoid SDP
  710. ; renegotiation. If UPDATE is not Allowed,
  711. ; send INVITE.
  712. ; If set to "update", send UPDATE regardless
  713. ; of what the remote Allows.
  714. ; (default: "invite")
  715. ;direct_media=yes ; Determines whether media may flow directly between
  716. ; endpoints (default: "yes")
  717. ;disable_direct_media_on_nat=no ; Disable direct media session refreshes when
  718. ; NAT obstructs the media session (default:
  719. ; "no")
  720. ;disallow= ; Media Codec s to disallow (default: "")
  721. ;dtmf_mode=rfc4733 ; DTMF mode (default: "rfc4733")
  722. ;media_address= ; IP address used in SDP for media handling (default: "")
  723. ;bind_rtp_to_media_address= ; Bind the RTP session to the media_address.
  724. ; This causes all RTP packets to be sent from
  725. ; the specified address. (default: "no")
  726. ;force_rport=yes ; Force use of return port (default: "yes")
  727. ;ice_support=no ; Enable the ICE mechanism to help traverse NAT (default: "no")
  728. ;identify_by=username ; A comma-separated list of ways the Endpoint or AoR can be
  729. ; identified.
  730. ; "username": Identify by the From or To username and domain
  731. ; "auth_username": Identify by the Authorization username and realm
  732. ; In all cases, if an exact match on username and domain/realm fails,
  733. ; the match will be retried with just the username.
  734. ; (default: "username")
  735. ;redirect_method=user ; How redirects received from an endpoint are handled
  736. ; (default: "user")
  737. ;mailboxes= ; NOTIFY the endpoint when state changes for any of the specified mailboxes.
  738. ; Asterisk will send unsolicited MWI NOTIFY messages to the endpoint when state
  739. ; changes happen for any of the specified mailboxes. (default: "")
  740. ;voicemail_extension= ; The voicemail extension to send in the NOTIFY Message-Account header
  741. ; (default: global/default_voicemail_extension)
  742. ;mwi_subscribe_replaces_unsolicited=no
  743. ; An MWI subscribe will replace unsoliticed NOTIFYs
  744. ; (default: "no")
  745. ;moh_suggest=default ; Default Music On Hold class (default: "default")
  746. ;outbound_auth= ; Authentication object used for outbound requests (default:
  747. ; "")
  748. ;outbound_proxy= ; Proxy through which to send requests, a full SIP URI
  749. ; must be provided (default: "")
  750. ;rewrite_contact=no ; Allow Contact header to be rewritten with the source
  751. ; IP address port (default: "no")
  752. ;rtp_symmetric=no ; Enforce that RTP must be symmetric (default: "no")
  753. ;send_diversion=yes ; Send the Diversion header conveying the diversion
  754. ; information to the called user agent (default: "yes")
  755. ;send_pai=no ; Send the P Asserted Identity header (default: "no")
  756. ;send_rpid=no ; Send the Remote Party ID header (default: "no")
  757. ;rpid_immediate=no ; Send connected line updates on unanswered incoming calls immediately. (default: "no")
  758. ;timers_min_se=90 ; Minimum session timers expiration period (default:
  759. ; "90")
  760. ;timers=yes ; Session timers for SIP packets (default: "yes")
  761. ;timers_sess_expires=1800 ; Maximum session timer expiration period
  762. ; (default: "1800")
  763. ;transport= ; Desired transport configuration (default: "")
  764. ;trust_id_inbound=no ; Accept identification information received from this
  765. ; endpoint (default: "no")
  766. ;trust_id_outbound=no ; Send private identification details to the endpoint
  767. ; (default: "no")
  768. ;type= ; Must be of type endpoint (default: "")
  769. ;use_ptime=no ; Use Endpoint s requested packetisation interval (default:
  770. ; "no")
  771. ;use_avpf=no ; Determines whether res_pjsip will use and enforce usage of
  772. ; AVPF for this endpoint (default: "no")
  773. ;media_encryption=no ; Determines whether res_pjsip will use and enforce
  774. ; usage of media encryption for this endpoint (default:
  775. ; "no")
  776. ;media_encryption_optimistic=no ; Use encryption if possible but don't fail the call
  777. ; if not possible.
  778. ;g726_non_standard=no ; When set to "yes" and an endpoint negotiates g.726
  779. ; audio then g.726 for AAL2 packing order is used contrary
  780. ; to what is recommended in RFC3551. Note, 'g726aal2' also
  781. ; needs to be specified in the codec allow list
  782. ; (default: "no")
  783. ;inband_progress=no ; Determines whether chan_pjsip will indicate ringing
  784. ; using inband progress (default: "no")
  785. ;call_group= ; The numeric pickup groups for a channel (default: "")
  786. ;pickup_group= ; The numeric pickup groups that a channel can pickup (default:
  787. ; "")
  788. ;named_call_group= ; The named pickup groups for a channel (default: "")
  789. ;named_pickup_group= ; The named pickup groups that a channel can pickup
  790. ; (default: "")
  791. ;device_state_busy_at=0 ; The number of in use channels which will cause busy
  792. ; to be returned as device state (default: "0")
  793. ;t38_udptl=no ; Whether T 38 UDPTL support is enabled or not (default: "no")
  794. ;t38_udptl_ec=none ; T 38 UDPTL error correction method (default: "none")
  795. ;t38_udptl_maxdatagram=0 ; T 38 UDPTL maximum datagram size (default:
  796. ; "0")
  797. ;fax_detect=no ; Whether CNG tone detection is enabled (default: "no")
  798. ;fax_detect_timeout=30 ; How many seconds into a call before fax_detect is
  799. ; disabled for the call.
  800. ; Zero disables the timeout.
  801. ; (default: "0")
  802. ;t38_udptl_nat=no ; Whether NAT support is enabled on UDPTL sessions
  803. ; (default: "no")
  804. ;tone_zone= ; Set which country s indications to use for channels created
  805. ; for this endpoint (default: "")
  806. ;language= ; Set the default language to use for channels created for this
  807. ; endpoint (default: "")
  808. ;one_touch_recording=no ; Determines whether one touch recording is allowed for
  809. ; this endpoint (default: "no")
  810. ;record_on_feature=automixmon ; The feature to enact when one touch recording
  811. ; is turned on (default: "automixmon")
  812. ;record_off_feature=automixmon ; The feature to enact when one touch recording
  813. ; is turned off (default: "automixmon")
  814. ;rtp_engine=asterisk ; Name of the RTP engine to use for channels created
  815. ; for this endpoint (default: "asterisk")
  816. ;allow_transfer=yes ; Determines whether SIP REFER transfers are allowed
  817. ; for this endpoint (default: "yes")
  818. ;sdp_owner=- ; String placed as the username portion of an SDP origin o line
  819. ; (default: "-")
  820. ;sdp_session=Asterisk ; String used for the SDP session s line (default:
  821. ; "Asterisk")
  822. ;tos_audio=0 ; DSCP TOS bits for audio streams (default: "0")
  823. ;tos_video=0 ; DSCP TOS bits for video streams (default: "0")
  824. ;cos_audio=0 ; Priority for audio streams (default: "0")
  825. ;cos_video=0 ; Priority for video streams (default: "0")
  826. ;allow_subscribe=yes ; Determines if endpoint is allowed to initiate
  827. ; subscriptions with Asterisk (default: "yes")
  828. ;sub_min_expiry=0 ; The minimum allowed expiry time for subscriptions
  829. ; initiated by the endpoint (default: "0")
  830. ;from_user= ; Username to use in From header for requests to this endpoint
  831. ; (default: "")
  832. ;mwi_from_user= ; Username to use in From header for unsolicited MWI NOTIFYs to
  833. ; this endpoint (default: "")
  834. ;from_domain= ; Domain to user in From header for requests to this endpoint
  835. ; (default: "")
  836. ;dtls_verify=no ; Verify that the provided peer certificate is valid (default:
  837. ; "no")
  838. ;dtls_rekey=0 ; Interval at which to renegotiate the TLS session and rekey
  839. ; the SRTP session (default: "0")
  840. ;dtls_cert_file= ; Path to certificate file to present to peer (default:
  841. ; "")
  842. ;dtls_private_key= ; Path to private key for certificate file (default:
  843. ; "")
  844. ;dtls_cipher= ; Cipher to use for DTLS negotiation (default: "")
  845. ;dtls_ca_file= ; Path to certificate authority certificate (default: "")
  846. ;dtls_ca_path= ; Path to a directory containing certificate authority
  847. ; certificates (default: "")
  848. ;dtls_setup= ; Whether we are willing to accept connections connect to the
  849. ; other party or both (default: "")
  850. ;dtls_fingerprint= ; Hash to use for the fingerprint placed into SDP
  851. ; (default: "SHA-256")
  852. ;srtp_tag_32=no ; Determines whether 32 byte tags should be used instead of 80
  853. ; byte tags (default: "no")
  854. ;set_var= ; Variable set on a channel involving the endpoint. For multiple
  855. ; channel variables specify multiple 'set_var'(s)
  856. ;rtp_keepalive= ; Interval, in seconds, between comfort noise RTP packets if
  857. ; RTP is not flowing. This setting is useful for ensuring that
  858. ; holes in NATs and firewalls are kept open throughout a call.
  859. ;rtp_timeout= ; Hang up channel if RTP is not received for the specified
  860. ; number of seconds when the channel is off hold (default:
  861. ; "0" or not enabled)
  862. ;rtp_timeout_hold= ; Hang up channel if RTP is not received for the specified
  863. ; number of seconds when the channel is on hold (default:
  864. ; "0" or not enabled)
  865. ;contact_user= ; On outgoing requests, force the user portion of the Contact
  866. ; header to this value (default: "")
  867. ;asymmetric_rtp_codec= ; Allow the sending and receiving codec to differ and
  868. ; not be automatically matched (default: "no")
  869. ;refer_blind_progress= ; Whether to notifies all the progress details on blind
  870. ; transfer (default: "yes"). The value "no" is useful
  871. ; for some SIP phones (Mitel/Aastra, Snom) which expect
  872. ; a sip/frag "200 OK" after REFER has been accepted.
  873. ;notify_early_inuse_ringing = ; Whether to notifies dialog-info 'early'
  874. ; on INUSE && RINGING state (default: "no").
  875. ; The value "yes" is useful for some SIP phones
  876. ; (Cisco SPA) to be able to indicate and pick up
  877. ; ringing devices.
  878.  
  879. ;==========================AUTH SECTION OPTIONS=========================
  880. ;[auth]
  881. ; SYNOPSIS: Authentication type
  882. ;
  883. ; Note: Using the same auth section for inbound and outbound
  884. ; authentication is not recommended. There is a difference in
  885. ; meaning for an empty realm setting between inbound and outbound
  886. ; authentication uses. Look to the CLI config help
  887. ; "config show help res_pjsip auth realm" or on the wiki for the
  888. ; difference.
  889. ;
  890. ;auth_type=userpass ; Authentication type (default: "userpass")
  891. ;nonce_lifetime=32 ; Lifetime of a nonce associated with this
  892. ; authentication config (default: "32")
  893. ;md5_cred= ; MD5 Hash used for authentication (default: "")
  894. ;password= ; PlainText password used for authentication (default: "")
  895. ;realm= ; SIP realm for endpoint (default: "")
  896. ;type= ; Must be auth (default: "")
  897. ;username= ; Username to use for account (default: "")
  898.  
  899.  
  900. ;==========================DOMAIN_ALIAS SECTION OPTIONS=========================
  901. ;[domain_alias]
  902. ; SYNOPSIS: Domain Alias
  903. ;type= ; Must be of type domain_alias (default: "")
  904. ;domain= ; Domain to be aliased (default: "")
  905.  
  906.  
  907. ;==========================TRANSPORT SECTION OPTIONS=========================
  908. ;[transport]
  909. ; SYNOPSIS: SIP Transport
  910. ;async_operations=1 ; Number of simultaneous Asynchronous Operations
  911. ; (default: "1")
  912. ;bind= ; IP Address and optional port to bind to for this transport (default:
  913. ; "")
  914. ;ca_list_file= ; File containing a list of certificates to read TLS ONLY
  915. ; (default: "")
  916. ;ca_list_path= ; Path to directory containing certificates to read TLS ONLY.
  917. ; PJProject version 2.4 or higher is required for this option to
  918. ; be used.
  919. ; (default: "")
  920. ;cert_file= ; Certificate file for endpoint TLS ONLY
  921. ; Will read .crt or .pem file but only uses cert,
  922. ; a .key file must be specified via priv_key_file
  923. ; (default: "")
  924. ;cipher= ; Preferred cryptography cipher names TLS ONLY (default: "")
  925. ;domain= ; Domain the transport comes from (default: "")
  926. ;external_media_address= ; External IP address to use in RTP handling
  927. ; (default: "")
  928. ;external_signaling_address= ; External address for SIP signalling (default:
  929. ; "")
  930. ;external_signaling_port=0 ; External port for SIP signalling (default:
  931. ; "0")
  932. ;method= ; Method of SSL transport TLS ONLY (default: "")
  933. ;local_net= ; Network to consider local used for NAT purposes (default: "")
  934. ;password= ; Password required for transport (default: "")
  935. ;priv_key_file= ; Private key file TLS ONLY (default: "")
  936. ;protocol=udp ; Protocol to use for SIP traffic (default: "udp")
  937. ;require_client_cert= ; Require client certificate TLS ONLY (default: "")
  938. ;type= ; Must be of type transport (default: "")
  939. ;verify_client= ; Require verification of client certificate TLS ONLY (default:
  940. ; "")
  941. ;verify_server= ; Require verification of server certificate TLS ONLY (default:
  942. ; "")
  943. ;tos=0 ; Enable TOS for the signalling sent over this transport (default: "0")
  944. ;cos=0 ; Enable COS for the signalling sent over this transport (default: "0")
  945. ;websocket_write_timeout=100 ; Default write timeout to set on websocket
  946. ; transports. This value may need to be adjusted
  947. ; for connections where Asterisk must write a
  948. ; substantial amount of data and the receiving
  949. ; clients are slow to process the received
  950. ; information. Value is in milliseconds; default
  951. ; is 100 ms.
  952. ;allow_reload=no ; Although transports can now be reloaded, that may not be
  953. ; desirable because of the slight possibility of dropped
  954. ; calls. To make sure there are no unintentional drops, if
  955. ; this option is set to 'no' (the default) changes to the
  956. ; particular transport will be ignored. If set to 'yes',
  957. ; changes (if any) will be applied.
  958. ;symmetric_transport=no ; When a request from a dynamic contact comes in on a
  959. ; transport with this option set to 'yes', the transport
  960. ; name will be saved and used for subsequent outgoing
  961. ; requests like OPTIONS, NOTIFY and INVITE. It's saved
  962. ; as a contact uri parameter named 'x-ast-txp' and will
  963. ; display with the contact uri in CLI, AMI, and ARI
  964. ; output. On the outgoing request, if a transport
  965. ; wasn't explicitly set on the endpoint AND the request
  966. ; URI is not a hostname, the saved transport will be
  967. ; used and the 'x-ast-txp' parameter stripped from the
  968. ; outgoing packet.
  969.  
  970. ;==========================AOR SECTION OPTIONS=========================
  971. ;[aor]
  972. ; SYNOPSIS: The configuration for a location of an endpoint
  973. ;contact= ; Permanent contacts assigned to AoR (default: "")
  974. ;default_expiration=3600 ; Default expiration time in seconds for
  975. ; contacts that are dynamically bound to an AoR
  976. ; (default: "3600")
  977. ;mailboxes= ; Allow subscriptions for the specified mailbox(es)
  978. ; This option applies when an external entity subscribes to an AoR
  979. ; for Message Waiting Indications. (default: "")
  980. ;voicemail_extension= ; The voicemail extension to send in the NOTIFY Message-Account header
  981. ; (default: global/default_voicemail_extension)
  982. ;maximum_expiration=7200 ; Maximum time to keep an AoR (default: "7200")
  983. ;max_contacts=0 ; Maximum number of contacts that can bind to an AoR (default:
  984. ; "0")
  985. ;minimum_expiration=60 ; Minimum keep alive time for an AoR (default: "60")
  986. ;remove_existing=no ; Determines whether new contacts replace existing ones
  987. ; (default: "no")
  988. ;type= ; Must be of type aor (default: "")
  989. ;qualify_frequency=0 ; Interval at which to qualify an AoR (default: "0")
  990. ;qualify_timeout=3.0 ; Qualify timeout in fractional seconds (default: "3.0")
  991. ;authenticate_qualify=no ; Authenticates a qualify request if needed
  992. ; (default: "no")
  993. ;outbound_proxy= ; Proxy through which to send OPTIONS requests, a full SIP URI
  994. ; must be provided (default: "")
  995.  
  996.  
  997. ;==========================SYSTEM SECTION OPTIONS=========================
  998. ;[system]
  999. ; SYNOPSIS: Options that apply to the SIP stack as well as other system-wide settings
  1000. ;timer_t1=500 ; Set transaction timer T1 value milliseconds (default: "500")
  1001. ;timer_b=32000 ; Set transaction timer B value milliseconds (default: "32000")
  1002. ;compact_headers=no ; Use the short forms of common SIP header names
  1003. ; (default: "no")
  1004. ;threadpool_initial_size=0 ; Initial number of threads in the res_pjsip
  1005. ; threadpool (default: "0")
  1006. ;threadpool_auto_increment=5 ; The amount by which the number of threads is
  1007. ; incremented when necessary (default: "5")
  1008. ;threadpool_idle_timeout=60 ; Number of seconds before an idle thread
  1009. ; should be disposed of (default: "60")
  1010. ;threadpool_max_size=0 ; Maximum number of threads in the res_pjsip threadpool
  1011. ; A value of 0 indicates no maximum (default: "0")
  1012. ;disable_tcp_switch=yes ; Disable automatic switching from UDP to TCP transports
  1013. ; if outgoing request is too large.
  1014. ; See RFC 3261 section 18.1.1.
  1015. ; Disabling this option has been known to cause interoperability
  1016. ; issues, so disable at your own risk.
  1017. ; (default: "yes")
  1018. ;type= ; Must be of type system (default: "")
  1019.  
  1020. ;==========================GLOBAL SECTION OPTIONS=========================
  1021. ;[global]
  1022. ; SYNOPSIS: Options that apply globally to all SIP communications
  1023. ;max_forwards=70 ; Value used in Max Forwards header for SIP requests
  1024. ; (default: "70")
  1025. ;type= ; Must be of type global (default: "")
  1026. ;user_agent=Asterisk PBX ; Allows you to change the user agent string
  1027. ; The default user agent string also contains
  1028. ; the Asterisk version. If you don't want to
  1029. ; expose this, change the user_agent string.
  1030. ;default_outbound_endpoint=default_outbound_endpoint ; Endpoint to use when
  1031. ; sending an outbound
  1032. ; request to a URI
  1033. ; without a specified
  1034. ; endpoint (default: "d
  1035. ; efault_outbound_endpo
  1036. ; int")
  1037. ;debug=no ; Enable/Disable SIP debug logging. Valid options include yes|no
  1038. ; or a host address (default: "no")
  1039. ;keep_alive_interval=20 ; The interval (in seconds) at which to send keepalive
  1040. ; messages on all active connection-oriented transports
  1041. ; (default: "0")
  1042. ;contact_expiration_check_interval=30
  1043. ; The interval (in seconds) to check for expired contacts.
  1044. ;disable_multi_domain=no
  1045. ; Disable Multi Domain support.
  1046. ; If disabled it can improve realtime performace by reducing
  1047. ; number of database requsts
  1048. ; (default: "no")
  1049. ;endpoint_identifier_order=ip,username,anonymous
  1050. ; The order by which endpoint identifiers are given priority.
  1051. ; Currently, "ip", "username", "auth_username" and "anonymous" are valid
  1052. ; identifiers as registered by the res_pjsip_endpoint_identifier_* modules.
  1053. ; Some modules like res_pjsip_endpoint_identifier_user register more than
  1054. ; one identifier. Use the CLI command "pjsip show identifiers" to see the
  1055. ; identifiers currently available.
  1056. ; (default: ip,username,anonymous)
  1057. ;max_initial_qualify_time=4 ; The maximum amount of time (in seconds) from
  1058. ; startup that qualifies should be attempted on all
  1059. ; contacts. If greater than the qualify_frequency
  1060. ; for an aor, qualify_frequency will be used instead.
  1061. ;regcontext=sipregistrations ; If regcontext is specified, Asterisk will dynamically
  1062. ; create and destroy a NoOp priority 1 extension for a
  1063. ; given endpoint who registers or unregisters with us.
  1064. ; The extension added is the name of the endpoint.
  1065. ;default_voicemail_extension=asterisk
  1066. ; The voicemail extension to send in the NOTIFY Message-Account header
  1067. ; if not set on endpoint or aor.
  1068. ; (default: "")
  1069. ;
  1070. ; The following unidentified_request options are only used when "auth_username"
  1071. ; matching is enabled in "endpoint_identifier_order".
  1072. ;
  1073. ;unidentified_request_count=5 ; The number of unidentified requests that can be
  1074. ; received from a single IP address in
  1075. ; unidentified_request_period seconds before a security
  1076. ; event is generated. (default: 5)
  1077. ;unidentified_request_period=5 ; See above. (default: 5 seconds)
  1078. ;unidentified_request_prune_interval=30
  1079. ; The interval at which unidentified requests
  1080. ; are check to see if they can be pruned. If they're
  1081. ; older than twice the unidentified_request_period,
  1082. ; they're pruned.
  1083. ;
  1084. ;default_from_user=asterisk ; When Asterisk generates an outgoing SIP request, the
  1085. ; From header username will be set to this value if
  1086. ; there is no better option (such as CallerID or
  1087. ; endpoint/from_user) to be used
  1088. ;default_realm=asterisk ; When Asterisk generates a challenge, the digest realm
  1089. ; will be set to this value if there is no better option
  1090. ; (such as auth/realm) to be used.
  1091.  
  1092. ; Asterisk Task Processor Queue Size
  1093. ; On heavy loaded system with DB storage you may need to increase
  1094. ; taskprocessor queue.
  1095. ; If the taskprocessor queue size reached high water level,
  1096. ; the alert is triggered.
  1097. ; If the alert is set the pjsip distibutor stops processing incoming
  1098. ; requests until the alert is cleared.
  1099. ; The alert is cleared when taskprocessor queue size drops to the
  1100. ; low water clear level.
  1101. ; The next options set taskprocessor queue levels for MWI.
  1102. ;mwi_tps_queue_high=500 ; Taskprocessor high water alert trigger level.
  1103. ;mwi_tps_queue_low=450 ; Taskprocessor low water clear alert level.
  1104. ; The default is -1 for 90% of high water level.
  1105.  
  1106. ; Unsolicited MWI
  1107. ; If there are endpoints configured with unsolicited MWI
  1108. ; then res_pjsip_mwi module tries to send MWI to all endpoints on startup.
  1109. ;mwi_disable_initial_unsolicited=no ; Disable sending unsolicited mwi to all endpoints on startup.
  1110. ; If disabled then unsolicited mwi will start processing
  1111. ; on the endpoint's next contact update.
  1112.  
  1113. ;ignore_uri_user_options=no ; Enable/Disable ignoring SIP URI user field options.
  1114. ; If you have this option enabled and there are semicolons
  1115. ; in the user field of a SIP URI then the field is truncated
  1116. ; at the first semicolon. This effectively makes the semicolon
  1117. ; a non-usable character for PJSIP endpoint names, extensions,
  1118. ; and AORs. This can be useful for improving compatability with
  1119. ; an ITSP that likes to use user options for whatever reason.
  1120. ; Example:
  1121. ; URI: "sip:1235557890;phone-context=national@x.x.x.x;user=phone"
  1122. ; The user field is "1235557890;phone-context=national"
  1123. ; Which becomes this: "1235557890"
  1124. ;
  1125. ; Note: The caller-id and redirecting number strings obtained
  1126. ; from incoming SIP URI user fields are always truncated at the
  1127. ; first semicolon.
  1128.  
  1129. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_acl
  1130. ;==========================ACL SECTION OPTIONS=========================
  1131. ;[acl]
  1132. ; SYNOPSIS: Access Control List
  1133. ;acl= ; List of IP ACL section names in acl conf (default: "")
  1134. ;contact_acl= ; List of Contact ACL section names in acl conf (default: "")
  1135. ;contact_deny= ; List of Contact header addresses to deny (default: "")
  1136. ;contact_permit= ; List of Contact header addresses to permit (default:
  1137. ; "")
  1138. ;deny= ; List of IP addresses to deny access from (default: "")
  1139. ;permit= ; List of IP addresses to permit access from (default: "")
  1140. ;type= ; Must be of type acl (default: "")
  1141.  
  1142.  
  1143.  
  1144.  
  1145. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_outbound_registration
  1146. ;==========================REGISTRATION SECTION OPTIONS=========================
  1147. ;[registration]
  1148. ; SYNOPSIS: The configuration for outbound registration
  1149. ;auth_rejection_permanent=yes ; Determines whether failed authentication
  1150. ; challenges are treated as permanent failures
  1151. ; (default: "yes")
  1152. ;client_uri= ; Client SIP URI used when attemping outbound registration
  1153. ; (default: "")
  1154. ;contact_user= ; Contact User to use in request (default: "")
  1155. ;expiration=3600 ; Expiration time for registrations in seconds
  1156. ; (default: "3600")
  1157. ;max_retries=10 ; Maximum number of registration attempts (default: "10")
  1158. ;outbound_auth= ; Authentication object to be used for outbound registrations
  1159. ; (default: "")
  1160. ;outbound_proxy= ; Proxy through which to send registrations, a full SIP URI
  1161. ; must be provided (default: "")
  1162. ;retry_interval=60 ; Interval in seconds between retries if outbound
  1163. ; registration is unsuccessful (default: "60")
  1164. ;forbidden_retry_interval=0 ; Interval used when receiving a 403 Forbidden
  1165. ; response (default: "0")
  1166. ;fatal_retry_interval=0 ; Interval used when receiving a fatal response.
  1167. ; (default: "0") A fatal response is any permanent
  1168. ; failure (non-temporary 4xx, 5xx, 6xx) response
  1169. ; received from the registrar. NOTE - if also set
  1170. ; the 'forbidden_retry_interval' takes precedence
  1171. ; over this one when a 403 is received. Also, if
  1172. ; 'auth_rejection_permanent' equals 'yes' a 401 and
  1173. ; 407 become subject to this retry interval.
  1174. ;server_uri= ; SIP URI of the server to register against (default: "")
  1175. ;transport= ; Transport used for outbound authentication (default: "")
  1176. ;line= ; When enabled this option will cause a 'line' parameter to be
  1177. ; added to the Contact header placed into the outgoing
  1178. ; registration request. If the remote server sends a call
  1179. ; this line parameter will be used to establish a relationship
  1180. ; to the outbound registration, ultimately causing the
  1181. ; configured endpoint to be used (default: "no")
  1182. ;endpoint= ; When line support is enabled this configured endpoint name
  1183. ; is used for incoming calls that are related to the outbound
  1184. ; registration (default: "")
  1185. ;type= ; Must be of type registration (default: "")
  1186.  
  1187.  
  1188.  
  1189.  
  1190. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_endpoint_identifier_ip
  1191. ;==========================IDENTIFY SECTION OPTIONS=========================
  1192. ;[identify]
  1193. ; SYNOPSIS: Identifies endpoints via source IP address
  1194. ;endpoint= ; Name of Endpoint (default: "")
  1195. ;match= ; IP addresses or networks to match against (default: "")
  1196. ;type= ; Must be of type identify (default: "")
  1197.  
  1198.  
  1199.  
  1200.  
  1201. ;========================PHONEPROV_USER SECTION OPTIONS=======================
  1202. ;[phoneprov]
  1203. ; SYNOPSIS: Contains variables for autoprovisioning each user
  1204. ;endpoint= ; The endpoint from which to gather username, secret, etc. (default: "")
  1205. ;PROFILE= ; The name of a profile configured in phoneprov.conf (default: "")
  1206. ;MAC= ; The mac address for this user (default: "")
  1207. ;OTHERVAR= ; Any other name value pair to be used in templates (default: "")
  1208. ; Common variables include LINE, LINEKEYS, etc.
  1209. ; See phoneprov.conf.sample for others.
  1210. ;type= ; Must be of type phoneprov (default: "")
  1211.  
  1212.  
  1213.  
  1214. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_outbound_publish
  1215. ;======================OUTBOUND_PUBLISHEN SECTION OPTIONS=====================
  1216. ; See https://wiki.asterisk.org/wiki/display/AST/Publishing+Extension+State
  1217. ; for more information.
  1218. ;[outbound-publish]
  1219. ;type=outbound-publish ; Must be of type 'outbound-publish'.
  1220.  
  1221. ;expiration=3600 ; Expiration time for publications in seconds
  1222.  
  1223. ;outbound_auth= ; Authentication object(s) to be used for outbound
  1224. ; publishes.
  1225. ; This is a comma-delimited list of auth sections
  1226. ; defined in pjsip.conf used to respond to outbound
  1227. ; authentication challenges.
  1228. ; Using the same auth section for inbound and
  1229. ; outbound authentication is not recommended. There
  1230. ; is a difference in meaning for an empty realm
  1231. ; setting between inbound and outbound authentication
  1232. ; uses. See the auth realm description for details.
  1233.  
  1234. ;outbound_proxy= ; SIP URI of the outbound proxy used to send
  1235. ; publishes
  1236.  
  1237. ;server_uri= ; SIP URI of the server and entity to publish to.
  1238. ; This is the URI at which to find the entity and
  1239. ; server to send the outbound PUBLISH to.
  1240. ; This URI is used as the request URI of the outbound
  1241. ; PUBLISH request from Asterisk.
  1242.  
  1243. ;from_uri= ; SIP URI to use in the From header.
  1244. ; This is the URI that will be placed into the From
  1245. ; header of outgoing PUBLISH messages. If no URI is
  1246. ; specified then the URI provided in server_uri will
  1247. ; be used.
  1248.  
  1249. ;to_uri= ; SIP URI to use in the To header.
  1250. ; This is the URI that will be placed into the To
  1251. ; header of outgoing PUBLISH messages. If no URI is
  1252. ; specified then the URI provided in server_uri will
  1253. ; be used.
  1254.  
  1255. ;event= ; Event type of the PUBLISH.
  1256.  
  1257. ;max_auth_attempts= ; Maximum number of authentication attempts before
  1258. ; stopping the pub.
  1259.  
  1260. ;transport= ; Transport used for outbound publish.
  1261. ; A transport configured in pjsip.conf. As with other
  1262. ; res_pjsip modules, this will use the first
  1263. ; available transport of the appropriate type if
  1264. ; unconfigured.
  1265.  
  1266. ;multi_user=no ; Enable multi-user support (Asterisk 14+ only)
  1267.  
  1268.  
  1269.  
  1270. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_pubsub
  1271. ;=============================RESOURCE-LIST===================================
  1272. ; See https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=30278158
  1273. ; for more information.
  1274. ;[resource_list]
  1275. ;type=resource_list ; Must be of type 'resource_list'.
  1276.  
  1277. ;event= ; The SIP event package that the list resource.
  1278. ; belongs to. The SIP event package describes the
  1279. ; types of resources that Asterisk reports the state
  1280. ; of.
  1281.  
  1282. ;list_item= ; The name of a resource to report state on.
  1283. ; In general Asterisk looks up list items in the
  1284. ; following way:
  1285. ; 1. Check if the list item refers to another
  1286. ; configured resource list.
  1287. ; 2. Pass the name of the resource off to
  1288. ; event-package-specific handlers to find the
  1289. ; specified resource.
  1290. ; The second part means that the way the list item
  1291. ; is specified depends on what type of list this is.
  1292. ; For instance, if you have the event set to
  1293. ; presence, then list items should be in the form of
  1294. ; dialplan_extension@dialplan_context. For
  1295. ; message-summary, mailbox names should be listed.
  1296.  
  1297. ;full_state=no ; Indicates if the entire list's state should be
  1298. ; sent out.
  1299. ; If this option is enabled, and a resource changes
  1300. ; state, then Asterisk will construct a notification
  1301. ; that contains the state of all resources in the
  1302. ; list. If the option is disabled, Asterisk will
  1303. ; construct a notification that only contains the
  1304. ; states of resources that have changed.
  1305. ; NOTE: Even with this option disabled, there are
  1306. ; certain situations where Asterisk is forced to send
  1307. ; a notification with the states of all resources in
  1308. ; the list. When a subscriber renews or terminates
  1309. ; its subscription to the list, Asterisk MUST send
  1310. ; a full state notification.
  1311.  
  1312. ;notification_batch_interval=0
  1313. ; Time Asterisk should wait, in milliseconds,
  1314. ; before sending notifications.
  1315.  
  1316. ;==========================INBOUND_PUBLICATION================================
  1317. ; See https://wiki.asterisk.org/wiki/display/AST/Exchanging+Device+and+Mailbox+State+Using+PJSIP
  1318. ; for more information.
  1319. ;[inbound-publication]
  1320. ;type= ; Must be of type 'inbound-publication'.
  1321.  
  1322. ;endpoint= ; Optional name of an endpoint that is only allowed
  1323. ; to publish to this resource.
  1324.  
  1325.  
  1326. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_publish_asterisk
  1327. ;==========================ASTERISK_PUBLICATION===============================
  1328. ; See https://wiki.asterisk.org/wiki/display/AST/Exchanging+Device+and+Mailbox+State+Using+PJSIP
  1329. ; for more information.
  1330. ;[asterisk-publication]
  1331. ;type=asterisk-publication ; Must be of type 'asterisk-publication'.
  1332.  
  1333. ;devicestate_publish= ; Optional name of a publish item that can be used
  1334. ; to publish a req.
  1335.  
  1336. ;mailboxstate_publish= ; Optional name of a publish item that can be used
  1337. ; to publish a req.
  1338.  
  1339. ;device_state=no ; Whether we should permit incoming device state
  1340. ; events.
  1341.  
  1342. ;device_state_filter= ; Optional regular expression used to filter what
  1343. ; devices we accept events for.
  1344.  
  1345. ;mailbox_state=no ; Whether we should permit incoming mailbox state
  1346. ; events.
  1347.  
  1348. ;mailbox_state_filter= ; Optional regular expression used to filter what
  1349. ; mailboxes we accept events for.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement