pjsip.conf.sample 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  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. ; Documentation
  15. ;
  16. ; The official documentation is at http://wiki.asterisk.org
  17. ; You can read the XML configuration help via Asterisk command line with
  18. ; "config show help res_pjsip", then you can drill down through the various
  19. ; sections and their options.
  20. ;
  21. ;========!!!!!!!!!!!!!!!!!!! SECURITY NOTICE !!!!!!!!!!!!!!!!!!!!===========
  22. ;
  23. ; At a minimum please read the file "README-SERIOUSLY.bestpractices.txt",
  24. ; located in the Asterisk source directory before starting Asterisk.
  25. ; Otherwise you risk allowing the security of the Asterisk system to be
  26. ; compromised. Beyond that please visit and read the security information on
  27. ; the wiki at: https://wiki.asterisk.org/wiki/x/EwFB
  28. ;
  29. ; A few basics to pay attention to:
  30. ;
  31. ; Anonymous Calls
  32. ;
  33. ; By default anonymous inbound calls via PJSIP are not allowed. If you want to
  34. ; route anonymous calls you'll need to define an endpoint named "anonymous".
  35. ; res_pjsip_endpoint_identifier_anonymous.so handles that functionality so it
  36. ; must be loaded. It is not recommended to accept anonymous calls.
  37. ;
  38. ; Access Control Lists
  39. ;
  40. ; See the example ACL configuration in this file. Read the configuration help
  41. ; for the section and all of its options. Look over the samples in acl.conf
  42. ; and documentation at https://wiki.asterisk.org/wiki/x/uA80AQ
  43. ; If possible, restrict access to only networks and addresses you trust.
  44. ;
  45. ; Dialplan Contexts
  46. ;
  47. ; When defining configuration (such as an endpoint) that links into
  48. ; dialplan configuration, be aware of what that dialplan does. It's easy to
  49. ; accidentally provide access to internal or outbound dialing extensions which
  50. ; could cost you severely. The "context=" line in endpoint configuration
  51. ; determines which dialplan context inbound calls will enter into.
  52. ;
  53. ;=============================================================================
  54. ; Overview of Configuration Section Types Used in the Examples
  55. ;
  56. ; * Transport "transport"
  57. ; * Configures res_pjsip transport layer interaction.
  58. ; * Endpoint "endpoint"
  59. ; * Configures core SIP functionality related to SIP endpoints.
  60. ; * Authentication "auth"
  61. ; * Stores inbound or outbound authentication credentials for use by trunks,
  62. ; endpoints, registrations.
  63. ; * Address of Record "aor"
  64. ; * Stores contact information for use by endpoints.
  65. ; * Endpoint Identification "identify"
  66. ; * Maps a host directly to an endpoint
  67. ; * Access Control List "acl"
  68. ; * Defines a permission list or references one stored in acl.conf
  69. ; * Registration "registration"
  70. ; * Contains information about an outbound SIP registration
  71. ; * Phone Provisioning "phoneprov"
  72. ; * Contains information needed by res_phoneprov for autoprovisioning
  73. ; The following sections show example configurations for various scenarios.
  74. ; Most require a couple or more configuration types configured in concert.
  75. ;=============================================================================
  76. ; Naming of Configuration Sections
  77. ;
  78. ; Configuration section names are denoted with enclosing brackets,
  79. ; e.g. [6001]
  80. ; In most cases, you can name a section whatever makes sense to you. For example
  81. ; you might name a transport [transport-udp-nat] to help you remember how that
  82. ; section is being used. However, in some cases, ("endpoint" and "aor" types)
  83. ; the section name has a relationship to its function.
  84. ;
  85. ; Depending on the modules loaded, Asterisk can match SIP requests to an
  86. ; endpoint or aor in a few ways:
  87. ;
  88. ; 1) Match a section name for endpoint type sections to the username in the
  89. ; "From" header of inbound SIP requests.
  90. ; 2) Match a section name for aor type sections to the username in the "To"
  91. ; header of inbound SIP REGISTER requests.
  92. ; 3) With an identify type section configured, match an inbound SIP request of
  93. ; any type to an endpoint or aor based on the IP source address of the
  94. ; request.
  95. ;
  96. ; Note that sections can have the same name as long as their "type" options are
  97. ; set to different values. In most cases it makes sense to have associated
  98. ; configuration sections use the same name, as you'll see in the examples within
  99. ; this file.
  100. ;===============EXAMPLE TRANSPORTS============================================
  101. ;
  102. ; A few examples for potential transport options.
  103. ;
  104. ; For the NAT transport example, be aware that the options starting with
  105. ; the prefix "external_" will only apply to communication with addresses
  106. ; outside the range set with "local_net=".
  107. ;
  108. ; IPv6: For endpoints using IPv6, remember to set "rtp_ipv6=yes" so that the RTP
  109. ; engine will also be able to bind to an IPv6 address.
  110. ;
  111. ; You can have more than one of any type of transport, as long as it doesn't
  112. ; use the same resources (bind address, port, etc) as the others.
  113. ; Basic UDP transport
  114. ;
  115. ;[transport-udp]
  116. ;type=transport
  117. ;protocol=udp ;udp,tcp,tls,ws,wss
  118. ;bind=0.0.0.0
  119. ; UDP transport behind NAT
  120. ;
  121. ;[transport-udp-nat]
  122. ;type=transport
  123. ;protocol=udp
  124. ;bind=0.0.0.0
  125. ;local_net=192.0.2.0/24
  126. ;external_media_address=203.0.113.1
  127. ;external_signaling_address=203.0.113.1
  128. ; Basic IPv6 UDP transport
  129. ;
  130. ;[transport-udp-ipv6]
  131. ;type=transport
  132. ;protocol=udp
  133. ;bind=::
  134. ; Example IPv4 TLS transport
  135. ;
  136. ;[transport-tls]
  137. ;type=transport
  138. ;protocol=tls
  139. ;bind=0.0.0.0
  140. ;cert_file=/path/mycert.crt
  141. ;priv_key_file=/path/mykey.key
  142. ;cipher=ADH-AES256-SHA,ADH-AES128-SHA
  143. ;method=tlsv1
  144. ;===============OUTBOUND REGISTRATION WITH OUTBOUND AUTHENTICATION============
  145. ;
  146. ; This is a simple registration that works with some SIP trunking providers.
  147. ; You'll need to set up the auth example "mytrunk_auth" below to enable outbound
  148. ; authentication. Note that we "outbound_auth=" use for outbound authentication
  149. ; instead of "auth=", which is for inbound authentication.
  150. ;
  151. ; If you are registering to a server from behind NAT, be sure you assign a transport
  152. ; that is appropriately configured with NAT related settings. See the NAT transport example.
  153. ;
  154. ; "contact_user=" sets the SIP contact header's user portion of the SIP URI
  155. ; this will affect the extension reached in dialplan when the far end calls you at this
  156. ; registration. The default is 's'.
  157. ;[mytrunk]
  158. ;type=registration
  159. ;transport=transport-udp
  160. ;outbound_auth=mytrunk_auth
  161. ;server_uri=sip:sip.example.com
  162. ;client_uri=sip:1234567890@sip.example.com
  163. ;contact_user=1234567890
  164. ;retry_interval=60
  165. ;forbidden_retry_interval=600
  166. ;expiration=3600
  167. ;[mytrunk_auth]
  168. ;type=auth
  169. ;auth_type=userpass
  170. ;password=1234567890
  171. ;username=1234567890
  172. ;realm=sip.example.com
  173. ;===============ENDPOINT CONFIGURED AS A TRUNK, OUTBOUND AUTHENTICATION=======
  174. ;
  175. ; This is one way to configure an endpoint as a trunk. It is set up with
  176. ; "outbound_auth=" to enable authentication when dialing out through this
  177. ; endpoint. There is no inbound authentication set up since a provider will
  178. ; not normally authenticate when calling you.
  179. ;
  180. ; The identify configuration enables IP address matching against this endpoint.
  181. ; For calls from a trunking provider, the From user may be different every time,
  182. ; so we want to match against IP address instead of From user.
  183. ;
  184. ; If you want the provider of your trunk to know where to send your calls
  185. ; you'll need to use an outbound registration as in the example above this
  186. ; section.
  187. ;
  188. ; NAT
  189. ;
  190. ; At a basic level configure the endpoint with a transport that is set up
  191. ; with the appropriate NAT settings. There may be some additional settings you
  192. ; need here based on your NAT/Firewall scenario. Look to the CLI config help
  193. ; "config show help res_pjsip endpoint" or on the wiki for other NAT related
  194. ; options and configuration. We've included a few below.
  195. ;
  196. ; AOR
  197. ;
  198. ; Endpoints use one or more AOR sections to store their contact details.
  199. ; You can define multiple contact addresses in SIP URI format in multiple
  200. ; "contact=" entries.
  201. ;
  202. ;[mytrunk]
  203. ;type=endpoint
  204. ;transport=transport-udp
  205. ;context=from-external
  206. ;disallow=all
  207. ;allow=ulaw
  208. ;outbound_auth=mytrunk_auth
  209. ;aors=mytrunk
  210. ; ;A few NAT relevant options that may come in handy.
  211. ;force_rport=yes ;It's a good idea to read the configuration help for each
  212. ;direct_media=no ;of these options.
  213. ;ice_support=yes
  214. ;[mytrunk]
  215. ;type=aor
  216. ;contact=sip:198.51.100.1:5060
  217. ;contact=sip:198.51.100.2:5060
  218. ;[mytrunk]
  219. ;type=identify
  220. ;endpoint=mytrunk
  221. ;match=198.51.100.1
  222. ;match=198.51.100.2
  223. ;=============ENDPOINT CONFIGURED AS A TRUNK, INBOUND AUTH AND REGISTRATION===
  224. ;
  225. ; Here we are allowing a remote device to register to Asterisk and requiring
  226. ; that they authenticate for registration and calls.
  227. ; You'll note that this configuration is essentially the same as configuring
  228. ; an endpoint for use with a SIP phone.
  229. ;[7000]
  230. ;type=endpoint
  231. ;context=from-external
  232. ;disallow=all
  233. ;allow=ulaw
  234. ;transport=transport-udp
  235. ;auth=7000
  236. ;aors=7000
  237. ;[7000]
  238. ;type=auth
  239. ;auth_type=userpass
  240. ;password=7000
  241. ;username=7000
  242. ;[7000]
  243. ;type=aor
  244. ;max_contacts=1
  245. ;===============ENDPOINT CONFIGURED FOR USE WITH A SIP PHONE==================
  246. ;
  247. ; This example includes the endpoint, auth and aor configurations. It
  248. ; requires inbound authentication and allows registration, as well as references
  249. ; a transport that you'll need to uncomment from the previous examples.
  250. ;
  251. ; Uncomment one of the transport lines to choose which transport you want. If
  252. ; not specified then the default transport chosen is the first defined transport
  253. ; in the configuration file.
  254. ;
  255. ; Modify the "max_contacts=" line to change how many unique registrations to allow.
  256. ;
  257. ; Use the "contact=" line instead of max_contacts= if you want to statically
  258. ; define the location of the device.
  259. ;
  260. ; If using the TLS enabled transport, you may want the "media_encryption=sdes"
  261. ; option to additionally enable SRTP, though they are not mutually inclusive.
  262. ;
  263. ; Use the "rtp_ipv6=yes" option if you want to utilize RTP over an ipv6 transport.
  264. ;
  265. ; If this endpoint were remote, and it was using a transport configured for NAT
  266. ; then you likely want to use "direct_media=no" to prevent audio issues.
  267. ;[6001]
  268. ;type=endpoint
  269. ;transport=transport-udp
  270. ;context=from-internal
  271. ;disallow=all
  272. ;allow=ulaw
  273. ;allow=gsm
  274. ;auth=6001
  275. ;aors=6001
  276. ;
  277. ; A few more transports to pick from, and some related options below them.
  278. ;
  279. ;transport=transport-tls
  280. ;media_encryption=sdes
  281. ;transport=transport-udp-ipv6
  282. ;rtp_ipv6=yes
  283. ;transport=transport-udp-nat
  284. ;direct_media=no
  285. ;
  286. ; MWI related options
  287. ;aggregate_mwi=yes
  288. ;mailboxes=6001@default,7001@default
  289. ;mwi_from_user=6001
  290. ;
  291. ; Extension and Device state options
  292. ;
  293. ;device_state_busy_at=1
  294. ;allow_subscribe=yes
  295. ;sub_min_expiry=30
  296. ;[6001]
  297. ;type=auth
  298. ;auth_type=userpass
  299. ;password=6001
  300. ;username=6001
  301. ;[6001]
  302. ;type=aor
  303. ;max_contacts=1
  304. ;contact=sip:6001@192.0.2.1:5060
  305. ;===============ENDPOINT BEHIND NAT OR FIREWALL===============================
  306. ;
  307. ; This example assumes your transport is configured with a public IP and the
  308. ; endpoint itself is behind NAT and maybe a firewall, rather than having
  309. ; Asterisk behind NAT. For the sake of simplicity, we'll assume a typical
  310. ; VOIP phone. The most important settings to configure are:
  311. ;
  312. ; * direct_media, to ensure Asterisk stays in the media path
  313. ; * rtp_symmetric and force_rport options to help the far-end NAT/firewall
  314. ;
  315. ; Depending on the settings of your remote SIP device or NAT/firewall device
  316. ; you may have to experiment with a combination of these settings.
  317. ;
  318. ; If both Asterisk and the remote phones are a behind NAT/firewall then you'll
  319. ; have to make sure to use a transport with appropriate settings (as in the
  320. ; transport-udp-nat example).
  321. ;
  322. ;[6002]
  323. ;type=endpoint
  324. ;transport=transport-udp
  325. ;context=from-internal
  326. ;disallow=all
  327. ;allow=ulaw
  328. ;auth=6002
  329. ;aors=6002
  330. ;direct_media=no
  331. ;rtp_symmetric=yes
  332. ;force_rport=yes
  333. ;rewrite_contact=yes ; necessary if endpoint does not know/register public ip:port
  334. ;ice_support=yes ;This is specific to clients that support NAT traversal
  335. ;for media via ICE,STUN,TURN. See the wiki at:
  336. ;https://wiki.asterisk.org/wiki/x/D4FHAQ
  337. ;for a deeper explanation of this topic.
  338. ;[6002]
  339. ;type=auth
  340. ;auth_type=userpass
  341. ;password=6002
  342. ;username=6002
  343. ;[6002]
  344. ;type=aor
  345. ;max_contacts=2
  346. ;============EXAMPLE ACL CONFIGURATION==========================================
  347. ;
  348. ; The ACL or Access Control List section defines a set of permissions to permit
  349. ; or deny access to various address or addresses. Alternatively it references an
  350. ; ACL configuration already set in acl.conf.
  351. ;
  352. ; The ACL configuration is independent of individual endpoint configuration and
  353. ; operates on all inbound SIP communication using res_pjsip.
  354. ; Reference an ACL defined in acl.conf.
  355. ;
  356. ;[acl]
  357. ;type=acl
  358. ;acl=example_named_acl1
  359. ; Reference a contactacl specifically.
  360. ;
  361. ;[acl]
  362. ;type=acl
  363. ;contact_acl=example_contact_acl1
  364. ; Define your own ACL here in pjsip.conf and
  365. ; permit or deny by IP address or range.
  366. ;
  367. ;[acl]
  368. ;type=acl
  369. ;deny=0.0.0.0/0.0.0.0
  370. ;permit=209.16.236.0/24
  371. ;deny=209.16.236.1
  372. ; Restrict based on Contact Headers rather than IP.
  373. ; Define options multiple times for various addresses or use a comma-delimited string.
  374. ;
  375. ;[acl]
  376. ;type=acl
  377. ;contact_deny=0.0.0.0/0.0.0.0
  378. ;contact_permit=209.16.236.0/24
  379. ;contact_permit=209.16.236.1
  380. ;contact_permit=209.16.236.2,209.16.236.3
  381. ; Restrict based on Contact Headers rather than IP and use
  382. ; advanced syntax. Note the bang symbol used for "NOT", so we can deny
  383. ; 209.16.236.12/32 within the permit= statement.
  384. ;
  385. ;[acl]
  386. ;type=acl
  387. ;contact_deny=0.0.0.0/0.0.0.0
  388. ;contact_permit=209.16.236.0
  389. ;permit=209.16.236.0/24, !209.16.236.12/32
  390. ;============EXAMPLE PHONEPROV CONFIGURATION================================
  391. ; Before configuring provisioning here, see the documentation for res_phoneprov
  392. ; and configure phoneprov.conf appropriately.
  393. ; For each user to be autoprovisioned, a [phoneprov] configuration section
  394. ; must be created. At a minimum, the 'type', 'PROFILE' and 'MAC' variables must
  395. ; be set. All other variables are optional.
  396. ; Example:
  397. ;[1000]
  398. ;type=phoneprov ; must be specified as 'phoneprov'
  399. ;endpoint=1000 ; Required only if automatic setting of
  400. ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
  401. ; are needed.
  402. ;PROFILE=digium ; required
  403. ;MAC=deadbeef4dad ; required
  404. ;SERVER=myserver.example.com ; A standard variable
  405. ;TIMEZONE=America/Denver ; A standard variable
  406. ;MYVAR=somevalue ; A user confdigured variable
  407. ; If the phoneprov sections have common variables, it is best to create a
  408. ; phoneprov template. The example below will produce the same configuration
  409. ; as the one specified above except that MYVAR will be overridden for
  410. ; the specific user.
  411. ; Example:
  412. ;[phoneprov_defaults](!)
  413. ;type=phoneprov ; must be specified as 'phoneprov'
  414. ;PROFILE=digium ; required
  415. ;SERVER=myserver.example.com ; A standard variable
  416. ;TIMEZONE=America/Denver ; A standard variable
  417. ;MYVAR=somevalue ; A user configured variable
  418. ;[1000](phoneprov_defaults)
  419. ;endpoint=1000 ; Required only if automatic setting of
  420. ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
  421. ; are needed.
  422. ;MAC=deadbeef4dad ; required
  423. ;MYVAR=someOTHERvalue ; A user confdigured variable
  424. ; To have USERNAME and SECRET automatically set, the endpoint
  425. ; specified here must in turn have an outbound_auth section defined.
  426. ; Fuller example:
  427. ;[1000]
  428. ;type=endpoint
  429. ;outbound_auth=1000-auth
  430. ;callerid=My Name <8005551212>
  431. ;transport=transport-udp-nat
  432. ;[1000-auth]
  433. ;type=auth
  434. ;auth_type=userpass
  435. ;username=myname
  436. ;password=mysecret
  437. ;[phoneprov_defaults](!)
  438. ;type=phoneprov ; must be specified as 'phoneprov'
  439. ;PROFILE=someprofile ; required
  440. ;SERVER=myserver.example.com ; A standard variable
  441. ;TIMEZONE=America/Denver ; A standard variable
  442. ;MYVAR=somevalue ; A user configured variable
  443. ;[1000](phoneprov_defaults)
  444. ;endpoint=1000 ; Required only if automatic setting of
  445. ; USERNAME, SECRET, DISPLAY_NAME and CALLERID
  446. ; are needed.
  447. ;MAC=deadbeef4dad ; required
  448. ;MYVAR=someUSERvalue ; A user confdigured variable
  449. ;LABEL=1000 ; A standard variable
  450. ; The previous sections would produce a template substitution map as follows:
  451. ;MAC=deadbeef4dad ;added by pp1000
  452. ;USERNAME=myname ;automatically added by 1000-auth username
  453. ;SECRET=mysecret ;automatically added by 1000-auth password
  454. ;PROFILE=someprofile ;added by defaults
  455. ;SERVER=myserver.example.com ;added by defaults
  456. ;SERVER_PORT=5060 ;added by defaults
  457. ;MYVAR=someUSERvalue ;added by defaults but overdidden by user
  458. ;CALLERID=8005551212 ;automatically added by 1000 callerid
  459. ;DISPLAY_NAME=My Name ;automatically added by 1000 callerid
  460. ;TIMEZONE=America/Denver ;added by defaults
  461. ;TZOFFSET=252100 ;automatically calculated by res_phoneprov
  462. ;DST_ENABLE=1 ;automatically calculated by res_phoneprov
  463. ;DST_START_MONTH=3 ;automatically calculated by res_phoneprov
  464. ;DST_START_MDAY=9 ;automatically calculated by res_phoneprov
  465. ;DST_START_HOUR=3 ;automatically calculated by res_phoneprov
  466. ;DST_END_MONTH=11 ;automatically calculated by res_phoneprov
  467. ;DST_END_MDAY=2 ;automatically calculated by res_phoneprov
  468. ;DST_END_HOUR=1 ;automatically calculated by res_phoneprov
  469. ;ENDPOINT_ID=1000 ;automatically added by this module
  470. ;AUTH_ID=1000-auth ;automatically added by this module
  471. ;TRANSPORT_ID=transport-udp-nat ;automatically added by this module
  472. ;LABEL=1000 ;added by user
  473. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip
  474. ;==========================ENDPOINT SECTION OPTIONS=========================
  475. ;[endpoint]
  476. ; SYNOPSIS: Endpoint
  477. ;100rel=yes ; Allow support for RFC3262 provisional ACK tags (default:
  478. ; "yes")
  479. ;accountcode=foo ; Set a default account code for channels created for
  480. ; this endpoint
  481. ;aggregate_mwi=yes ; (default: "yes")
  482. ;allow= ; Media Codec s to allow (default: "")
  483. ;aors= ; AoR s to be used with the endpoint (default: "")
  484. ;auth= ; Authentication Object s associated with the endpoint (default: "")
  485. ;callerid= ; CallerID information for the endpoint (default: "")
  486. ;callerid_privacy=allowed_not_screened ; Default privacy level (default: "allowed_not_screened")
  487. ;callerid_tag= ; Internal id_tag for the endpoint (default: "")
  488. ;context=default ; Dialplan context for inbound sessions (default:
  489. ; "default")
  490. ;direct_media_glare_mitigation=none ; Mitigation of direct media re INVITE
  491. ; glare (default: "none")
  492. ;direct_media_method=invite ; Direct Media method type (default: "invite")
  493. ;connected_line_method=invite ; Connected line method type (default:
  494. ; "invite")
  495. ;direct_media=yes ; Determines whether media may flow directly between
  496. ; endpoints (default: "yes")
  497. ;disable_direct_media_on_nat=no ; Disable direct media session refreshes when
  498. ; NAT obstructs the media session (default:
  499. ; "no")
  500. ;disallow= ; Media Codec s to disallow (default: "")
  501. ;dtmf_mode=rfc4733 ; DTMF mode (default: "rfc4733")
  502. ;media_address= ; IP address used in SDP for media handling (default: "")
  503. ;force_rport=yes ; Force use of return port (default: "yes")
  504. ;ice_support=no ; Enable the ICE mechanism to help traverse NAT (default: "no")
  505. ;identify_by=username ; Way s for Endpoint to be identified (default:
  506. ; "username")
  507. ;redirect_method=user ; How redirects received from an endpoint are handled
  508. ; (default: "user")
  509. ;mailboxes= ; Mailbox es to be associated with (default: "")
  510. ;moh_suggest=default ; Default Music On Hold class (default: "default")
  511. ;outbound_auth= ; Authentication object used for outbound requests (default:
  512. ; "")
  513. ;outbound_proxy= ; Proxy through which to send requests a full SIP URI
  514. ; must be provided (default: "")
  515. ;rewrite_contact=no ; Allow Contact header to be rewritten with the source
  516. ; IP address port (default: "no")
  517. ;rtp_ipv6=no ; Allow use of IPv6 for RTP traffic (default: "no")
  518. ;rtp_symmetric=no ; Enforce that RTP must be symmetric (default: "no")
  519. ;send_diversion=yes ; Send the Diversion header conveying the diversion
  520. ; information to the called user agent (default: "yes")
  521. ;send_pai=no ; Send the P Asserted Identity header (default: "no")
  522. ;send_rpid=no ; Send the Remote Party ID header (default: "no")
  523. ;timers_min_se=90 ; Minimum session timers expiration period (default:
  524. ; "90")
  525. ;timers=yes ; Session timers for SIP packets (default: "yes")
  526. ;timers_sess_expires=1800 ; Maximum session timer expiration period
  527. ; (default: "1800")
  528. ;transport= ; Desired transport configuration (default: "")
  529. ;trust_id_inbound=no ; Accept identification information received from this
  530. ; endpoint (default: "no")
  531. ;trust_id_outbound=no ; Send private identification details to the endpoint
  532. ; (default: "no")
  533. ;type= ; Must be of type endpoint (default: "")
  534. ;use_ptime=no ; Use Endpoint s requested packetisation interval (default:
  535. ; "no")
  536. ;use_avpf=no ; Determines whether res_pjsip will use and enforce usage of
  537. ; AVPF for this endpoint (default: "no")
  538. ;media_encryption=no ; Determines whether res_pjsip will use and enforce
  539. ; usage of media encryption for this endpoint (default:
  540. ; "no")
  541. ;inband_progress=no ; Determines whether chan_pjsip will indicate ringing
  542. ; using inband progress (default: "no")
  543. ;call_group= ; The numeric pickup groups for a channel (default: "")
  544. ;pickup_group= ; The numeric pickup groups that a channel can pickup (default:
  545. ; "")
  546. ;named_call_group= ; The named pickup groups for a channel (default: "")
  547. ;named_pickup_group= ; The named pickup groups that a channel can pickup
  548. ; (default: "")
  549. ;device_state_busy_at=0 ; The number of in use channels which will cause busy
  550. ; to be returned as device state (default: "0")
  551. ;t38_udptl=no ; Whether T 38 UDPTL support is enabled or not (default: "no")
  552. ;t38_udptl_ec=none ; T 38 UDPTL error correction method (default: "none")
  553. ;t38_udptl_maxdatagram=0 ; T 38 UDPTL maximum datagram size (default:
  554. ; "0")
  555. ;fax_detect=no ; Whether CNG tone detection is enabled (default: "no")
  556. ;t38_udptl_nat=no ; Whether NAT support is enabled on UDPTL sessions
  557. ; (default: "no")
  558. ;t38_udptl_ipv6=no ; Whether IPv6 is used for UDPTL Sessions (default:
  559. ; "no")
  560. ;tone_zone= ; Set which country s indications to use for channels created
  561. ; for this endpoint (default: "")
  562. ;language= ; Set the default language to use for channels created for this
  563. ; endpoint (default: "")
  564. ;one_touch_recording=no ; Determines whether one touch recording is allowed for
  565. ; this endpoint (default: "no")
  566. ;record_on_feature=automixmon ; The feature to enact when one touch recording
  567. ; is turned on (default: "automixmon")
  568. ;record_off_feature=automixmon ; The feature to enact when one touch recording
  569. ; is turned off (default: "automixmon")
  570. ;rtp_engine=asterisk ; Name of the RTP engine to use for channels created
  571. ; for this endpoint (default: "asterisk")
  572. ;allow_transfer=yes ; Determines whether SIP REFER transfers are allowed
  573. ; for this endpoint (default: "yes")
  574. ;sdp_owner=- ; String placed as the username portion of an SDP origin o line
  575. ; (default: "-")
  576. ;sdp_session=Asterisk ; String used for the SDP session s line (default:
  577. ; "Asterisk")
  578. ;tos_audio=0 ; DSCP TOS bits for audio streams (default: "0")
  579. ;tos_video=0 ; DSCP TOS bits for video streams (default: "0")
  580. ;cos_audio=0 ; Priority for audio streams (default: "0")
  581. ;cos_video=0 ; Priority for video streams (default: "0")
  582. ;allow_subscribe=yes ; Determines if endpoint is allowed to initiate
  583. ; subscriptions with Asterisk (default: "yes")
  584. ;sub_min_expiry=0 ; The minimum allowed expiry time for subscriptions
  585. ; initiated by the endpoint (default: "0")
  586. ;from_user= ; Username to use in From header for requests to this endpoint
  587. ; (default: "")
  588. ;mwi_from_user= ; Username to use in From header for unsolicited MWI NOTIFYs to
  589. ; this endpoint (default: "")
  590. ;from_domain= ; Domain to user in From header for requests to this endpoint
  591. ; (default: "")
  592. ;dtls_verify=no ; Verify that the provided peer certificate is valid (default:
  593. ; "no")
  594. ;dtls_rekey=0 ; Interval at which to renegotiate the TLS session and rekey
  595. ; the SRTP session (default: "0")
  596. ;dtls_cert_file= ; Path to certificate file to present to peer (default:
  597. ; "")
  598. ;dtls_private_key= ; Path to private key for certificate file (default:
  599. ; "")
  600. ;dtls_cipher= ; Cipher to use for DTLS negotiation (default: "")
  601. ;dtls_ca_file= ; Path to certificate authority certificate (default: "")
  602. ;dtls_ca_path= ; Path to a directory containing certificate authority
  603. ; certificates (default: "")
  604. ;dtls_setup= ; Whether we are willing to accept connections connect to the
  605. ; other party or both (default: "")
  606. ;dtls_fingerprint= ; Hash to use for the fingerprint placed into SDP
  607. ; (default: "SHA-256")
  608. ;srtp_tag_32=no ; Determines whether 32 byte tags should be used instead of 80
  609. ; byte tags (default: "no")
  610. ;set_var= ; Variable set on a channel involving the endpoint. For multiple
  611. ; channel variables specify multiple 'set_var'(s)
  612. ;==========================AUTH SECTION OPTIONS=========================
  613. ;[auth]
  614. ; SYNOPSIS: Authentication type
  615. ;auth_type=userpass ; Authentication type (default: "userpass")
  616. ;nonce_lifetime=32 ; Lifetime of a nonce associated with this
  617. ; authentication config (default: "32")
  618. ;md5_cred= ; MD5 Hash used for authentication (default: "")
  619. ;password= ; PlainText password used for authentication (default: "")
  620. ;realm= ; SIP realm for endpoint (default: "")
  621. ;type= ; Must be auth (default: "")
  622. ;username= ; Username to use for account (default: "")
  623. ;==========================DOMAIN_ALIAS SECTION OPTIONS=========================
  624. ;[domain_alias]
  625. ; SYNOPSIS: Domain Alias
  626. ;type= ; Must be of type domain_alias (default: "")
  627. ;domain= ; Domain to be aliased (default: "")
  628. ;==========================TRANSPORT SECTION OPTIONS=========================
  629. ;[transport]
  630. ; SYNOPSIS: SIP Transport
  631. ;async_operations=1 ; Number of simultaneous Asynchronous Operations
  632. ; (default: "1")
  633. ;bind= ; IP Address and optional port to bind to for this transport (default:
  634. ; "")
  635. ;ca_list_file= ; File containing a list of certificates to read TLS ONLY
  636. ; (default: "")
  637. ;cert_file= ; Certificate file for endpoint TLS ONLY
  638. ; Will read .crt or .pem file but only uses cert,
  639. ; a .key file must be specified via priv_key_file
  640. ; (default: "")
  641. ;cipher= ; Preferred cryptography cipher names TLS ONLY (default: "")
  642. ;domain= ; Domain the transport comes from (default: "")
  643. ;external_media_address= ; External IP address to use in RTP handling
  644. ; (default: "")
  645. ;external_signaling_address= ; External address for SIP signalling (default:
  646. ; "")
  647. ;external_signaling_port=0 ; External port for SIP signalling (default:
  648. ; "0")
  649. ;method= ; Method of SSL transport TLS ONLY (default: "")
  650. ;local_net= ; Network to consider local used for NAT purposes (default: "")
  651. ;password= ; Password required for transport (default: "")
  652. ;priv_key_file= ; Private key file TLS ONLY (default: "")
  653. ;protocol=udp ; Protocol to use for SIP traffic (default: "udp")
  654. ;require_client_cert= ; Require client certificate TLS ONLY (default: "")
  655. ;type= ; Must be of type transport (default: "")
  656. ;verify_client= ; Require verification of client certificate TLS ONLY (default:
  657. ; "")
  658. ;verify_server= ; Require verification of server certificate TLS ONLY (default:
  659. ; "")
  660. ;tos=0 ; Enable TOS for the signalling sent over this transport (default: "0")
  661. ;cos=0 ; Enable COS for the signalling sent over this transport (default: "0")
  662. ;websocket_write_timeout=100 ; Default write timeout to set on websocket
  663. ; transports. This value may need to be adjusted
  664. ; for connections where Asterisk must write a
  665. ; substantial amount of data and the receiving
  666. ; clients are slow to process the received
  667. ; information. Value is in milliseconds; default
  668. ; is 100 ms.
  669. ;==========================CONTACT SECTION OPTIONS=========================
  670. ;[contact]
  671. ; SYNOPSIS: A way of creating an aliased name to a SIP URI
  672. ;type= ; Must be of type contact (default: "")
  673. ;uri= ; SIP URI to contact peer (default: "")
  674. ;expiration_time= ; Time to keep alive a contact (default: "")
  675. ;qualify_frequency=0 ; Interval at which to qualify a contact (default: "0")
  676. ;outbound_proxy= ; Outbound proxy used when sending OPTIONS request
  677. ; (default: "")
  678. ;==========================AOR SECTION OPTIONS=========================
  679. ;[aor]
  680. ; SYNOPSIS: The configuration for a location of an endpoint
  681. ;contact= ; Permanent contacts assigned to AoR (default: "")
  682. ;default_expiration=3600 ; Default expiration time in seconds for
  683. ; contacts that are dynamically bound to an AoR
  684. ; (default: "3600")
  685. ;mailboxes= ; Mailbox es to be associated with (default: "")
  686. ;maximum_expiration=7200 ; Maximum time to keep an AoR (default: "7200")
  687. ;max_contacts=0 ; Maximum number of contacts that can bind to an AoR (default:
  688. ; "0")
  689. ;minimum_expiration=60 ; Minimum keep alive time for an AoR (default: "60")
  690. ;remove_existing=no ; Determines whether new contacts replace existing ones
  691. ; (default: "no")
  692. ;type= ; Must be of type aor (default: "")
  693. ;qualify_frequency=0 ; Interval at which to qualify an AoR (default: "0")
  694. ;authenticate_qualify=no ; Authenticates a qualify request if needed
  695. ; (default: "no")
  696. ;outbound_proxy= ; Outbound proxy used when sending OPTIONS request
  697. ; (default: "")
  698. ;==========================SYSTEM SECTION OPTIONS=========================
  699. ;[system]
  700. ; SYNOPSIS: Options that apply to the SIP stack as well as other system-wide settings
  701. ;timer_t1=500 ; Set transaction timer T1 value milliseconds (default: "500")
  702. ;timer_b=32000 ; Set transaction timer B value milliseconds (default: "32000")
  703. ;compact_headers=no ; Use the short forms of common SIP header names
  704. ; (default: "no")
  705. ;threadpool_initial_size=0 ; Initial number of threads in the res_pjsip
  706. ; threadpool (default: "0")
  707. ;threadpool_auto_increment=5 ; The amount by which the number of threads is
  708. ; incremented when necessary (default: "5")
  709. ;threadpool_idle_timeout=60 ; Number of seconds before an idle thread
  710. ; should be disposed of (default: "60")
  711. ;threadpool_max_size=0 ; Maximum number of threads in the res_pjsip threadpool
  712. ; A value of 0 indicates no maximum (default: "0")
  713. ;disable_tcp_switch=no ; Disable automatic switching from UDP to TCP transports
  714. ; if outgoing request is too large.
  715. ; See RFC 3261 section 18.1.1.
  716. ; (default: "no")
  717. ;type= ; Must be of type system (default: "")
  718. ;==========================GLOBAL SECTION OPTIONS=========================
  719. ;[global]
  720. ; SYNOPSIS: Options that apply globally to all SIP communications
  721. ;max_forwards=70 ; Value used in Max Forwards header for SIP requests
  722. ; (default: "70")
  723. ;type= ; Must be of type global (default: "")
  724. ;user_agent=Asterisk PBX SVN-branch-12-r404375 ; Value used in User Agent
  725. ; header for SIP requests and
  726. ; Server header for SIP
  727. ; responses (default: "Asterisk
  728. ; PBX SVN-branch-12-r404375")
  729. ;default_outbound_endpoint=default_outbound_endpoint ; Endpoint to use when
  730. ; sending an outbound
  731. ; request to a URI
  732. ; without a specified
  733. ; endpoint (default: "d
  734. ; efault_outbound_endpo
  735. ; int")
  736. ;debug=no ; Enable/Disable SIP debug logging. Valid options include yes|no
  737. ; or a host address (default: "no")
  738. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_acl
  739. ;==========================ACL SECTION OPTIONS=========================
  740. ;[acl]
  741. ; SYNOPSIS: Access Control List
  742. ;acl= ; List of IP ACL section names in acl conf (default: "")
  743. ;contact_acl= ; List of Contact ACL section names in acl conf (default: "")
  744. ;contact_deny= ; List of Contact header addresses to deny (default: "")
  745. ;contact_permit= ; List of Contact header addresses to permit (default:
  746. ; "")
  747. ;deny= ; List of IP addresses to deny access from (default: "")
  748. ;permit= ; List of IP addresses to permit access from (default: "")
  749. ;type= ; Must be of type acl (default: "")
  750. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_outbound_registration
  751. ;==========================REGISTRATION SECTION OPTIONS=========================
  752. ;[registration]
  753. ; SYNOPSIS: The configuration for outbound registration
  754. ;auth_rejection_permanent=yes ; Determines whether failed authentication
  755. ; challenges are treated as permanent failures
  756. ; (default: "yes")
  757. ;client_uri= ; Client SIP URI used when attemping outbound registration
  758. ; (default: "")
  759. ;contact_user= ; Contact User to use in request (default: "")
  760. ;expiration=3600 ; Expiration time for registrations in seconds
  761. ; (default: "3600")
  762. ;max_retries=10 ; Maximum number of registration attempts (default: "10")
  763. ;outbound_auth= ; Authentication object to be used for outbound registrations
  764. ; (default: "")
  765. ;outbound_proxy= ; Outbound Proxy used to send registrations (default:
  766. ; "")
  767. ;retry_interval=60 ; Interval in seconds between retries if outbound
  768. ; registration is unsuccessful (default: "60")
  769. ;forbidden_retry_interval=0 ; Interval used when receiving a 403 Forbidden
  770. ; response (default: "0")
  771. ;server_uri= ; SIP URI of the server to register against (default: "")
  772. ;transport= ; Transport used for outbound authentication (default: "")
  773. ;type= ; Must be of type registration (default: "")
  774. ; MODULE PROVIDING BELOW SECTION(S): res_pjsip_endpoint_identifier_ip
  775. ;==========================IDENTIFY SECTION OPTIONS=========================
  776. ;[identify]
  777. ; SYNOPSIS: Identifies endpoints via source IP address
  778. ;endpoint= ; Name of Endpoint (default: "")
  779. ;match= ; IP addresses or networks to match against (default: "")
  780. ;type= ; Must be of type identify (default: "")
  781. ;========================PHONEPROV_USER SECTION OPTIONS=======================
  782. ;[phoneprov]
  783. ; SYNOPSIS: Contains variables for autoprovisioning each user
  784. ;endpoint= ; The endpoint from which to gather username, secret, etc. (default: "")
  785. ;PROFILE= ; The name of a profile configured in phoneprov.conf (default: "")
  786. ;MAC= ; The mac address for this user (default: "")
  787. ;OTHERVAR= ; Any other name value pair to be used in templates (default: "")
  788. ; Common variables include LINE, LINEKEYS, etc.
  789. ; See phoneprov.conf.sample for others.
  790. ;type= ; Must be of type phoneprov (default: "")