pjsip.conf 72 KB

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