asterisk.conf.sample 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. [directories](!)
  2. astetcdir => /etc/asterisk
  3. astmoddir => /usr/lib/asterisk/modules
  4. astvarlibdir => /var/lib/asterisk
  5. astdbdir => /var/lib/asterisk
  6. astkeydir => /var/lib/asterisk
  7. astdatadir => /var/lib/asterisk
  8. astagidir => /var/lib/asterisk/agi-bin
  9. astspooldir => /var/spool/asterisk
  10. astrundir => /var/run/asterisk
  11. astlogdir => /var/log/asterisk
  12. astsbindir => /usr/sbin
  13. [options]
  14. ;verbose = 3
  15. ;debug = 3
  16. ;alwaysfork = yes ; Same as -F at startup.
  17. ;nofork = yes ; Same as -f at startup.
  18. ;quiet = yes ; Same as -q at startup.
  19. ;timestamp = yes ; Same as -T at startup.
  20. ;execincludes = yes ; Support #exec in config files.
  21. ;console = yes ; Run as console (same as -c at startup).
  22. ;highpriority = yes ; Run realtime priority (same as -p at
  23. ; startup).
  24. ;initcrypto = yes ; Initialize crypto keys (same as -i at
  25. ; startup).
  26. ;nocolor = yes ; Disable console colors.
  27. ;dontwarn = yes ; Disable some warnings.
  28. ;dumpcore = yes ; Dump core on crash (same as -g at startup).
  29. ;languageprefix = yes ; Use the new sound prefix path syntax.
  30. ;systemname = my_system_name ; Prefix uniqueid with a system name for
  31. ; Global uniqueness issues.
  32. ;autosystemname = yes ; Automatically set systemname to hostname,
  33. ; uses 'localhost' on failure, or systemname if
  34. ; set.
  35. ;mindtmfduration = 80 ; Set minimum DTMF duration in ms (default 80 ms)
  36. ; If we get shorter DTMF messages, these will be
  37. ; changed to the minimum duration
  38. ;maxcalls = 10 ; Maximum amount of calls allowed.
  39. ;maxload = 0.9 ; Asterisk stops accepting new calls if the
  40. ; load average exceed this limit.
  41. ;maxfiles = 1000 ; Maximum amount of openfiles.
  42. ;minmemfree = 1 ; In MBs, Asterisk stops accepting new calls if
  43. ; the amount of free memory falls below this
  44. ; watermark.
  45. ;cache_media_frames = yes ; Cache media frames for performance
  46. ; Disable this option to help track down media frame
  47. ; mismanagement when using valgrind or MALLOC_DEBUG.
  48. ; The cache gets in the way of determining if the
  49. ; frame is used after being freed and who freed it.
  50. ; NOTE: This option has no effect when Asterisk is
  51. ; compiled with the LOW_MEMORY compile time option
  52. ; enabled because the cache code does not exist.
  53. ; Default yes
  54. ;cache_record_files = yes ; Cache recorded sound files to another
  55. ; directory during recording.
  56. ;record_cache_dir = /tmp ; Specify cache directory (used in conjunction
  57. ; with cache_record_files).
  58. ;transmit_silence = yes ; Transmit silence while a channel is in a
  59. ; waiting state, a recording only state, or
  60. ; when DTMF is being generated. Note that the
  61. ; silence internally is generated in raw signed
  62. ; linear format. This means that it must be
  63. ; transcoded into the native format of the
  64. ; channel before it can be sent to the device.
  65. ; It is for this reason that this is optional,
  66. ; as it may result in requiring a temporary
  67. ; codec translation path for a channel that may
  68. ; not otherwise require one.
  69. ;transcode_via_sln = yes ; Build transcode paths via SLINEAR, instead of
  70. ; directly.
  71. ;runuser = asterisk ; The user to run as.
  72. ;rungroup = asterisk ; The group to run as.
  73. ;lightbackground = yes ; If your terminal is set for a light-colored
  74. ; background.
  75. ;forceblackbackground = yes ; Force the background of the terminal to be
  76. ; black, in order for terminal colors to show
  77. ; up properly.
  78. ;defaultlanguage = en ; Default language
  79. documentation_language = en_US ; Set the language you want documentation
  80. ; displayed in. Value is in the same format as
  81. ; locale names.
  82. ;hideconnect = yes ; Hide messages displayed when a remote console
  83. ; connects and disconnects.
  84. ;lockconfdir = no ; Protect the directory containing the
  85. ; configuration files (/etc/asterisk) with a
  86. ; lock.
  87. ;stdexten = gosub ; How to invoke the extensions.conf stdexten.
  88. ; macro - Invoke the stdexten using a macro as
  89. ; done by legacy Asterisk versions.
  90. ; gosub - Invoke the stdexten using a gosub as
  91. ; documented in extensions.conf.sample.
  92. ; Default gosub.
  93. ;live_dangerously = no ; Enable the execution of 'dangerous' dialplan
  94. ; functions from external sources (AMI,
  95. ; etc.) These functions (such as SHELL) are
  96. ; considered dangerous because they can allow
  97. ; privilege escalation.
  98. ; Default no
  99. ;entityid=00:11:22:33:44:55 ; Entity ID.
  100. ; This is in the form of a MAC address.
  101. ; It should be universally unique.
  102. ; It must be unique between servers communicating
  103. ; with a protocol that uses this value.
  104. ; This is currently is used by DUNDi and
  105. ; Exchanging Device and Mailbox State
  106. ; using protocols: XMPP, Corosync and PJSIP.
  107. ;rtp_pt_dynamic = 96 ; Normally the Dynamic RTP Payload Type numbers
  108. ; are 96-127, which allow 32 formats. When you
  109. ; use more and receive the message "No Dynamic
  110. ; RTP mapping available", extend the dynamic
  111. ; range by going for 35 (or 0) instead of 96.
  112. ; This allows 29 (or 64) more formats. 96 is the
  113. ; default because any number below might be
  114. ; rejected by a remote implementation; although
  115. ; no such broken implementation is known, yet.
  116. ; Changing the following lines may compromise your security.
  117. ;[files]
  118. ;astctlpermissions = 0660
  119. ;astctlowner = root
  120. ;astctlgroup = apache
  121. ;astctl = asterisk.ctl