Sat, 24 Mar 2012 21:40:49 +0100
Introduce many changes to the buildconf and source code including:
(01) clean up, update, and partially update default config files,
(02) seems that Melware is unable to perform release engineering so
update chan_capi to new daily snapshot to solve echo problems,
(03) correct Asterisk inadequate hard coded gmime version check,
(04) force postgresql pthreads linkage to solve build problem,
(05) remove buggy hard coded LibXML configure definitions,
(06) remove local architecture specification to allow GCC
internal logic to determine proper CPU type instead,
(07) remove vendor sound install target causing uncontrolled
downloads and non RPM managed file installation,
(08) solve long outstanding bug in tcptls causing Asterisk
to ignore any intermediate CA certificate signatures,
(09) back out Digium engineering team's bright idea of replacing the
very portable and pervasive POSIX rand(1) with ast_random(), and
then not even implementing it causing all references to fail in
platforms not providing the very new POSIX.1-2008 mkdtemp(3)
function only distributed by BSD and some Linux,
(10) withdraw advanced linker symbol manipulations from SVR5 builds
until either Binutils supports hybrid versioned and anonymous
linker scripts or GCC stops hard coding versioned linker scripts,
(11) correct missing library linkage, some tailored to a specific OS,
(12) remove outdated logic for the no longer distributed gmime-config(1),
(13) remove local gmime buildconf hacks now that Asterisk has corrected
their own build configuration to almost portably support gmime,
(14) solve build problems relating to undetected LibXML paths,
(15) correct erroneous out of tree include definitions,
(16) improve some variable and comment naming,
(17) simplify sound language path hierarchy creation,
and correct australian english installation logic.
michael@310 | 1 | <file name="asterisk.conf"> |
michael@310 | 2 | ;; |
michael@310 | 3 | ;; asterisk.conf -- Asterisk master configuration |
michael@310 | 4 | ;; |
michael@310 | 5 | |
michael@310 | 6 | [directories] |
michael@310 | 7 | astetcdir = @l_prefix@/etc/asterisk |
michael@310 | 8 | astmoddir = @l_prefix@/lib/asterisk/modules |
michael@310 | 9 | astagidir = @l_prefix@/lib/asterisk/agi-bin |
michael@310 | 10 | astvarlibdir = @l_prefix@/share/asterisk |
michael@310 | 11 | astspooldir = @l_prefix@/var/asterisk/spool |
michael@310 | 12 | astrundir = @l_prefix@/var/asterisk/run |
michael@310 | 13 | astlogdir = @l_prefix@/var/asterisk/log |
michael@310 | 14 | astdbdir = @l_prefix@/var/asterisk/db |
michael@310 | 15 | |
michael@310 | 16 | [files] |
michael@310 | 17 | astctlowner = @l_rusr@ |
michael@310 | 18 | astctlgroup = @l_rgrp@ |
michael@310 | 19 | astctlpermissions = 700 |
michael@310 | 20 | astctl = asterisk.ctl |
michael@310 | 21 | |
michael@310 | 22 | [options] |
michael@310 | 23 | systemname = openpkg-pbx |
michael@310 | 24 | runuser = @l_rusr@ |
michael@310 | 25 | rungroup = @l_rgrp@ |
michael@310 | 26 | verbose = 0 |
michael@310 | 27 | alwaysfork = yes |
michael@310 | 28 | dumpcore = no |
michael@310 | 29 | quiet = yes |
michael@310 | 30 | highpriority = no |
michael@310 | 31 | initcrypto = no |
michael@310 | 32 | nocolor = yes |
michael@310 | 33 | execincludes = no |
michael@310 | 34 | ;timestamp = yes |
michael@310 | 35 | ;optiondebug = no |
michael@310 | 36 | ;nofork = no |
michael@310 | 37 | ;console = no |
michael@310 | 38 | ;dontwarn = no |
michael@310 | 39 | |
michael@310 | 40 | </file> |
michael@414 | 41 | <file name="amd.conf"> |
michael@414 | 42 | ;; |
michael@414 | 43 | ;; amd.conf -- Answering Machine Detection configuration |
michael@414 | 44 | ;; |
michael@414 | 45 | |
michael@414 | 46 | [general] |
michael@414 | 47 | initial_silence = 2500 ; Maximum silence duration before the greeting. |
michael@414 | 48 | ; If exceeded then MACHINE. |
michael@414 | 49 | greeting = 1500 ; Maximum length of a greeting. |
michael@414 | 50 | ;If exceeded then MACHINE. |
michael@414 | 51 | after_greeting_silence = 800 ; Silence after detecting a greeting. |
michael@414 | 52 | ; If exceeded then HUMAN. |
michael@414 | 53 | total_analysis_time = 5000 ; Maximum time allowed for the algorithm to |
michael@414 | 54 | ; decide on a HUMAN or MACHINE. |
michael@414 | 55 | min_word_length = 100 ; Minimum duration of Voice to considered a word. |
michael@414 | 56 | between_words_silence = 50 ; Minimum duration of silence after a word to |
michael@414 | 57 | ; consider the audio what follows as a new word. |
michael@414 | 58 | maximum_number_of_words = 3 ; Maximum number of words in the greeting. |
michael@414 | 59 | ; If exceeded then MACHINE. |
michael@414 | 60 | silence_threshold = 256 |
michael@414 | 61 | |
michael@414 | 62 | </file> |
michael@310 | 63 | <file name="modules.conf"> |
michael@310 | 64 | ;; |
michael@310 | 65 | ;; modules.conf -- Asterisk functionality module configuration |
michael@310 | 66 | ;; |
michael@310 | 67 | |
michael@310 | 68 | [modules] |
michael@310 | 69 | autoload = yes |
michael@310 | 70 | |
michael@310 | 71 | [global] |
michael@310 | 72 | |
michael@310 | 73 | </file> |
michael@310 | 74 | <file name="logger.conf"> |
michael@310 | 75 | ;; |
michael@310 | 76 | ;; logger.conf -- Asterisk logging configuration |
michael@310 | 77 | ;; |
michael@310 | 78 | |
michael@310 | 79 | [general] |
michael@310 | 80 | dateformat = %F %T |
michael@310 | 81 | queue_log = no |
michael@310 | 82 | event_log = no |
michael@310 | 83 | |
michael@310 | 84 | [logfiles] |
michael@310 | 85 | console = error,warning,notice,verbose |
michael@310 | 86 | asterisk.log = error,warning,notice ; verbose,debug |
michael@310 | 87 | |
michael@310 | 88 | </file> |
michael@310 | 89 | <file name="manager.conf"> |
michael@310 | 90 | ;; |
michael@310 | 91 | ;; manager.conf -- Asterisk internal manager API configuration |
michael@310 | 92 | ;; |
michael@310 | 93 | |
michael@310 | 94 | [general] |
michael@310 | 95 | enabled = yes |
michael@310 | 96 | webenabled = no |
michael@310 | 97 | bindaddr = 127.0.0.1 |
michael@310 | 98 | port = 5038 |
michael@347 | 99 | |
michael@347 | 100 | ; You can open a TLS connection to this socket with: |
michael@347 | 101 | ; |
michael@399 | 102 | ; openssl s_client -connect my_host:5039 |
michael@347 | 103 | ; |
michael@347 | 104 | tlsenable = no |
michael@347 | 105 | tlsbindaddr = 127.0.0.1 |
michael@347 | 106 | tlsbindport = 5039 |
michael@347 | 107 | tlscertfile = @l_prefix@/etc/asterisk/asterisk.pem |
michael@347 | 108 | ; if tlsprivatekey is not specified search tlscertfile for key |
michael@347 | 109 | ;tlsprivatekey = @l_prefix@/etc/asterisk/asterkey.pem |
michael@347 | 110 | ;tlscipher = ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL |
michael@347 | 111 | |
michael@310 | 112 | displayconnects = yes |
michael@310 | 113 | allowmultiplelogin = yes |
michael@310 | 114 | timestampevents = yes |
michael@310 | 115 | |
michael@310 | 116 | [asterisk] |
michael@310 | 117 | secret = asterisk |
michael@310 | 118 | deny = 0.0.0.0/0.0.0.0 |
michael@310 | 119 | permit = 127.0.0.1/255.0.0.0 |
michael@310 | 120 | read = system,call,agent,user,config,log,verbose,dtmf,reporting,cdr,dialplan |
michael@310 | 121 | write = system,call,agent,user,config,command,reporting |
michael@310 | 122 | |
michael@310 | 123 | </file> |
michael@310 | 124 | <file name="http.conf"> |
michael@310 | 125 | ;; |
michael@414 | 126 | ;; http.conf -- Asterisk HTTP server interface |
michael@310 | 127 | ;; |
michael@310 | 128 | |
michael@310 | 129 | [general] |
michael@310 | 130 | enabled = no |
michael@310 | 131 | bindaddr = 127.0.0.1 |
michael@310 | 132 | bindport = 8088 |
michael@347 | 133 | tlsenable = no |
michael@347 | 134 | tlsbindport = 8089 |
michael@347 | 135 | tlsbindaddr = 127.0.0.1 |
michael@347 | 136 | tlscertfile = @l_prefix@/etc/asterisk/asterisk.pem |
michael@310 | 137 | enablestatic = yes |
michael@310 | 138 | prefix = asterisk |
michael@310 | 139 | redirect = / /asterisk/static/docs/index.html |
michael@310 | 140 | |
michael@310 | 141 | [post_mappings] |
michael@310 | 142 | uploads = @l_prefix@/var/asterisk/spool/uploads/ |
michael@310 | 143 | |
michael@310 | 144 | </file> |
michael@310 | 145 | <file name="sip.conf"> |
michael@310 | 146 | ;; |
michael@310 | 147 | ;; sip.conf -- Asterisk SIP configuration |
michael@310 | 148 | ;; |
michael@310 | 149 | |
michael@310 | 150 | [general] |
michael@310 | 151 | useragent = OpenPKG Asterisk PBX |
michael@310 | 152 | realm = example |
michael@310 | 153 | bindaddr = 127.0.0.1 |
michael@310 | 154 | bindport = 5060 |
michael@310 | 155 | tcpenable = yes |
michael@310 | 156 | tcpbindaddr = 127.0.0.1:5060 |
michael@310 | 157 | tlsenable = no |
michael@310 | 158 | tlsbindaddr = 127.0.0.1:5061 |
michael@310 | 159 | tlscipher = ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL |
michael@310 | 160 | tlscertfile = asterisk.pem |
michael@310 | 161 | tlscafile = asterisk.pem |
michael@310 | 162 | srvlookup = yes |
michael@310 | 163 | useclientcode = yes |
michael@310 | 164 | allowguest = yes |
michael@310 | 165 | canreinvite = no |
michael@310 | 166 | nat = no |
michael@310 | 167 | disallow = all |
michael@310 | 168 | allow = speex |
michael@310 | 169 | allow = g726 |
michael@310 | 170 | allow = ulaw |
michael@310 | 171 | allow = alaw |
michael@310 | 172 | allow = gsm |
michael@310 | 173 | videosupport = no |
michael@310 | 174 | ;allow = h263 |
michael@310 | 175 | ;allow = h263p |
michael@310 | 176 | notifyhold = yes |
michael@310 | 177 | notifyringing = yes |
michael@310 | 178 | limitonpeer = yes |
michael@310 | 179 | call-limit = 1 |
michael@310 | 180 | incominglimit = 1 |
michael@310 | 181 | context = external |
michael@310 | 182 | ;register = NNNNNNN:XXXXXX:NNNNNNN@sipgate.de/s |
michael@310 | 183 | ;tos = 0x18 |
michael@310 | 184 | |
michael@310 | 185 | ;[sipgate] |
michael@310 | 186 | ;type = peer |
michael@310 | 187 | ;defaultuser = NNNNNNN |
michael@310 | 188 | ;host = sipgate.de |
michael@310 | 189 | ;fromuser = NNNNNNN |
michael@310 | 190 | ;fromdomain = sipgate.de |
michael@310 | 191 | ;canreinvite = no |
michael@310 | 192 | ;disallow = all |
michael@310 | 193 | ;allow = speex |
michael@310 | 194 | ;allow = g726 |
michael@310 | 195 | ;allow = ulaw |
michael@310 | 196 | ;allow = alaw |
michael@310 | 197 | ;allow = gsm |
michael@310 | 198 | ;context = external |
michael@310 | 199 | |
michael@310 | 200 | ;[gw] |
michael@310 | 201 | ;type = friend |
michael@310 | 202 | ;defaultuser = gw |
michael@310 | 203 | ;callerid = "ISDN-to-SIP" <gw> |
michael@310 | 204 | ;fromdomain = example.com |
michael@310 | 205 | ;secret = asterisk |
michael@310 | 206 | ;host = dynamic |
michael@310 | 207 | ;canreinvite = no |
michael@310 | 208 | ;disallow = all |
michael@310 | 209 | ;allow = g726 |
michael@310 | 210 | ;allow = ulaw |
michael@310 | 211 | ;allow = alaw |
michael@310 | 212 | ;allow = gsm |
michael@310 | 213 | ;dtmfmode = rfc2833 |
michael@310 | 214 | ;qualify = yes |
michael@310 | 215 | ;insecure = yes |
michael@310 | 216 | ;context = external |
michael@310 | 217 | ;nat = no |
michael@310 | 218 | |
michael@310 | 219 | [std-user](!) |
michael@310 | 220 | type = friend |
michael@310 | 221 | context = internal |
michael@310 | 222 | host = dynamic |
michael@310 | 223 | dtmfmode = rfc2833 |
michael@310 | 224 | qualify = yes |
michael@310 | 225 | disallow = all |
michael@310 | 226 | allow = speex |
michael@310 | 227 | allow = g726 |
michael@310 | 228 | allow = ulaw |
michael@310 | 229 | allow = alaw |
michael@310 | 230 | |
michael@310 | 231 | [behind-nat](!) |
michael@310 | 232 | nat = yes |
michael@310 | 233 | |
michael@310 | 234 | [with-mailbox](!) |
michael@310 | 235 | hasvoicemail = yes |
michael@310 | 236 | subscribemwi = yes |
michael@310 | 237 | subscribecontext = internal |
michael@310 | 238 | vmexten = voicemail |
michael@310 | 239 | |
michael@310 | 240 | [foo](std-user,with-mailbox) |
michael@310 | 241 | secret = asterisk |
michael@310 | 242 | callerid = "Mr. Foo" <11> |
michael@310 | 243 | mailbox = 11@internal |
michael@310 | 244 | |
michael@310 | 245 | [bar](std-user,with-mailbox) |
michael@310 | 246 | secret = asterisk |
michael@310 | 247 | callerid = "Mr. Bar" <12> |
michael@310 | 248 | mailbox = 12@internal |
michael@310 | 249 | |
michael@310 | 250 | </file> |
michael@347 | 251 | <file name="iax.conf"> |
michael@347 | 252 | ;; |
michael@347 | 253 | ;; iax.conf -- Asterisk IAX configuration |
michael@347 | 254 | ;; |
michael@347 | 255 | |
michael@347 | 256 | ;; This configuration is reread at reload |
michael@347 | 257 | ;; or with the CLI command |
michael@399 | 258 | ;; reload chan_iax2.so |
michael@347 | 259 | ;; |
michael@347 | 260 | ;; General settings, like port number to bind to, and |
michael@347 | 261 | ;; an option address (the default is to bind to all |
michael@347 | 262 | ;; local addresses). |
michael@347 | 263 | ;; |
michael@347 | 264 | ;[general] |
michael@347 | 265 | ;bindport=4569 ; bindport and bindaddr may be specified |
michael@347 | 266 | ; ; NOTE: bindport must be specified BEFORE |
michael@347 | 267 | ; ; bindaddr or may be specified on a specific |
michael@347 | 268 | ; ; bindaddr if followed by colon and port |
michael@347 | 269 | ; ; (e.g. bindaddr=192.168.0.1:4569) |
michael@347 | 270 | ;bindaddr=127.0.0.1 ; more than once to bind to multiple |
michael@399 | 271 | ; ; addresses, but the first will be the |
michael@347 | 272 | ; ; default |
michael@347 | 273 | |
michael@347 | 274 | </file> |
michael@414 | 275 | <file name="iaxprov.conf"> |
michael@414 | 276 | ;; |
michael@414 | 277 | ;; iaxprov.conf -- IAX2 provisioning information |
michael@414 | 278 | ;; |
michael@414 | 279 | |
michael@414 | 280 | ; Contains provisioning information for templates and for specific service |
michael@414 | 281 | ; entries. |
michael@414 | 282 | ; |
michael@414 | 283 | ; Templates provide a group of settings from which provisioning takes place. |
michael@414 | 284 | ; A template may be based upon any template that has been specified before |
michael@414 | 285 | ; it. If the template that an entry is based on is not specified then it is |
michael@414 | 286 | ; presumed to be 'default' (unless it is the first of course). |
michael@414 | 287 | ; |
michael@414 | 288 | ; Templates which begin with 'si-' are used for provisioning units with |
michael@414 | 289 | ; specific service identifiers. For example the entry "si-000364000126" |
michael@414 | 290 | ; would be used when the device with the corresponding service identifier of |
michael@414 | 291 | ; "000364000126" attempts to register or make a call. |
michael@414 | 292 | ; |
michael@414 | 293 | [default] |
michael@414 | 294 | port=4569 ; the port number the device should bind to (default 4569) |
michael@414 | 295 | server=127.0.0.1 ; our PRIMARY server for registration and placing calls |
michael@414 | 296 | |
michael@414 | 297 | ; altserver is the BACKUP server for registration and placing calls in the |
michael@414 | 298 | ; event the primary server is unavailable. |
michael@414 | 299 | ; |
michael@414 | 300 | altserver=127.0.0.2 |
michael@414 | 301 | |
michael@414 | 302 | ; port is the port number to use for IAX2 outbound. The connections to the |
michael@414 | 303 | ; server and altserver (default 4569) |
michael@414 | 304 | ; |
michael@414 | 305 | serverport=4569 |
michael@414 | 306 | language=es ; the preferred language for the device |
michael@414 | 307 | codec=ulaw ; requested codec, the iaxy supports ulaw and adpcm |
michael@414 | 308 | |
michael@414 | 309 | ; flags is a comma separated list of flags which the device should |
michael@414 | 310 | ; use and may contain any of the following keywords: |
michael@414 | 311 | ; |
michael@414 | 312 | ; "register" - Register with server |
michael@414 | 313 | ; "secure" - Do not accept calls / provisioning not originated by server |
michael@414 | 314 | ; "heartbeat" - Generate status packets on port 9999 sent to 255.255.255.255 |
michael@414 | 315 | ; "debug" - Output extra debugging to port 9999 |
michael@414 | 316 | ; |
michael@414 | 317 | ; Note that use can use += and -= to adjust parameters |
michael@414 | 318 | ; |
michael@414 | 319 | flags=register |
michael@414 | 320 | |
michael@414 | 321 | tos=ef ; see doc/ip-tos.txt |
michael@414 | 322 | |
michael@414 | 323 | ; Example iaxy provisioning |
michael@414 | 324 | ; |
michael@414 | 325 | ;[si-000364000126] |
michael@414 | 326 | ;user=iaxy |
michael@414 | 327 | ;pass=bitsy |
michael@414 | 328 | ;flags += debug |
michael@414 | 329 | |
michael@414 | 330 | ;[si-000364000127] |
michael@414 | 331 | ;user=iaxy2 |
michael@414 | 332 | ;pass=bitsy2 |
michael@414 | 333 | ;template=si-000364000126 |
michael@414 | 334 | ;flags += debug |
michael@414 | 335 | |
michael@414 | 336 | |
michael@414 | 337 | ; If specified, the '*' provisioning is used for all devices which do not |
michael@414 | 338 | ; have another provisioning entry within the file. If unspecified, no |
michael@414 | 339 | ; provisioning will take place for devices which have no entry. DO NOT |
michael@414 | 340 | ; USE A '*' PROVISIONING ENTRY UNLESS YOU KNOW WHAT YOU'RE DOING. |
michael@414 | 341 | ; |
michael@414 | 342 | ;[*] |
michael@414 | 343 | |
michael@414 | 344 | ;template=default |
michael@414 | 345 | </file> |
michael@310 | 346 | <file name="rtp.conf"> |
michael@310 | 347 | ;; |
michael@310 | 348 | ;; rtp.conf -- Asterisk RTP configuration |
michael@310 | 349 | ;; |
michael@310 | 350 | |
michael@310 | 351 | [general] |
michael@310 | 352 | rtpstart = 7070 |
michael@310 | 353 | rtpend = 7089 |
michael@310 | 354 | |
michael@310 | 355 | </file> |
michael@311 | 356 | <file name="sip_notify.conf"> |
michael@311 | 357 | ;; |
michael@311 | 358 | ;; sip_notify.conf -- Asterisk NOTIFY automation from command line |
michael@311 | 359 | ;; |
michael@311 | 360 | |
michael@311 | 361 | ; rfc3842 |
michael@311 | 362 | ; put empty "Content=>" at the end to have CRLF after last body line |
michael@311 | 363 | [clear-mwi] |
michael@311 | 364 | Event=>message-summary |
michael@311 | 365 | Content-type=>application/simple-message-summary |
michael@311 | 366 | Content=>Messages-Waiting: no |
michael@311 | 367 | Content=>Message-Account: sip:asterisk@127.0.0.1 |
michael@311 | 368 | Content=>Voice-Message: 0/0 (0/0) |
michael@311 | 369 | Content=> |
michael@311 | 370 | |
michael@311 | 371 | ; Aastra |
michael@311 | 372 | [aastra-check-cfg] |
michael@311 | 373 | Event=>check-sync |
michael@311 | 374 | |
michael@311 | 375 | [aastra-xml] |
michael@311 | 376 | Event=>aastra-xml |
michael@311 | 377 | |
michael@311 | 378 | ; Linksys |
michael@311 | 379 | [linksys-cold-restart] |
michael@311 | 380 | Event=>reboot_now |
michael@311 | 381 | |
michael@311 | 382 | [linksys-warm-restart] |
michael@311 | 383 | Event=>restart_now |
michael@311 | 384 | |
michael@311 | 385 | ; Polycom |
michael@311 | 386 | [polycom-check-cfg] |
michael@311 | 387 | Event=>check-sync |
michael@311 | 388 | |
michael@311 | 389 | ; Sipura |
michael@311 | 390 | [sipura-check-cfg] |
michael@311 | 391 | Event=>resync |
michael@311 | 392 | |
michael@311 | 393 | [sipura-get-report] |
michael@311 | 394 | Event=>report |
michael@311 | 395 | |
michael@311 | 396 | ; Snom |
michael@311 | 397 | [snom-check-cfg] |
michael@311 | 398 | Event=>check-sync\;reboot=false |
michael@311 | 399 | |
michael@311 | 400 | [snom-reboot] |
michael@311 | 401 | Event=>reboot |
michael@311 | 402 | |
michael@311 | 403 | ; Cisco |
michael@311 | 404 | [cisco-check-cfg] |
michael@311 | 405 | Event=>check-sync |
michael@311 | 406 | |
michael@311 | 407 | </file> |
michael@414 | 408 | <file name="extconfig.conf"> |
michael@414 | 409 | ;; |
michael@414 | 410 | ;; extconfig.conf -- Static and realtime external configuration engine |
michael@414 | 411 | ;; |
michael@414 | 412 | |
michael@414 | 413 | [settings] |
michael@414 | 414 | ; |
michael@414 | 415 | ; Static configuration files: |
michael@414 | 416 | ; |
michael@414 | 417 | ; file.conf => driver,database[,table[,priority]] |
michael@414 | 418 | ; |
michael@414 | 419 | ; maps a particular configuration file to the given |
michael@414 | 420 | ; database driver, database and table (or uses the |
michael@414 | 421 | ; name of the file as the table if not specified) |
michael@414 | 422 | ; |
michael@414 | 423 | ;uncomment to load queues.conf via the odbc engine. |
michael@414 | 424 | ; |
michael@414 | 425 | ;queues.conf => odbc,asterisk,ast_config |
michael@414 | 426 | ;extensions.conf => sqlite,asterisk,ast_config |
michael@414 | 427 | ; |
michael@414 | 428 | ; The following files CANNOT be loaded from Realtime storage: |
michael@414 | 429 | ; asterisk.conf |
michael@414 | 430 | ; extconfig.conf (this file) |
michael@414 | 431 | ; logger.conf |
michael@414 | 432 | ; |
michael@414 | 433 | ; Additionally, the following files cannot be loaded from |
michael@414 | 434 | ; Realtime storage unless the storage driver is loaded |
michael@414 | 435 | ; early using 'preload' statements in modules.conf: |
michael@414 | 436 | ; manager.conf |
michael@414 | 437 | ; cdr.conf |
michael@414 | 438 | ; rtp.conf |
michael@414 | 439 | ; |
michael@414 | 440 | ; |
michael@414 | 441 | ; Realtime configuration engine |
michael@414 | 442 | ; |
michael@414 | 443 | ; maps a particular family of realtime |
michael@414 | 444 | ; configuration to a given database driver, |
michael@414 | 445 | ; database and table (or uses the name of |
michael@414 | 446 | ; the family if the table is not specified |
michael@414 | 447 | ; |
michael@414 | 448 | ;example => odbc,asterisk,alttable,1 |
michael@414 | 449 | ;example => mysql,asterisk,alttable,2 |
michael@414 | 450 | ;example2 => ldap,"dc=oxymium,dc=net",example2 |
michael@414 | 451 | ; |
michael@414 | 452 | ; Additionally, priorities are now supported for use as failover methods |
michael@414 | 453 | ; for retrieving realtime data. If one connection fails to retrieve any |
michael@414 | 454 | ; information, the next sequential priority will be tried next. This |
michael@414 | 455 | ; especially works well with ODBC connections, since res_odbc now caches |
michael@414 | 456 | ; when connection failures occur and prevents immediately retrying those |
michael@414 | 457 | ; connections until after a specified timeout. Note: priorities must |
michael@414 | 458 | ; start at 1 and be sequential (i.e. if you have only priorities 1, 2, |
michael@414 | 459 | ; and 4, then 4 will be ignored, because there is no 3). |
michael@414 | 460 | ; |
michael@414 | 461 | ; "odbc" is shown in the examples below, but is not the only valid realtime |
michael@414 | 462 | ; engine. There is: |
michael@414 | 463 | ; odbc ... res_config_odbc |
michael@414 | 464 | ; sqlite ... res_config_sqlite |
michael@414 | 465 | ; pgsql ... res_config_pgsql |
michael@414 | 466 | ; curl ... res_config_curl |
michael@414 | 467 | ; ldap ... res_config_ldap |
michael@414 | 468 | ; |
michael@414 | 469 | ;iaxusers => odbc,asterisk |
michael@414 | 470 | ;iaxpeers => odbc,asterisk |
michael@414 | 471 | ;sippeers => odbc,asterisk |
michael@414 | 472 | ;sipregs => odbc,asterisk ; (avoid sipregs if possible, e.g. by using a view) |
michael@414 | 473 | ;voicemail => odbc,asterisk |
michael@414 | 474 | ;extensions => odbc,asterisk |
michael@414 | 475 | ;meetme => mysql,general |
michael@414 | 476 | ;queues => odbc,asterisk |
michael@414 | 477 | ;queue_members => odbc,asterisk |
michael@414 | 478 | ;musiconhold => mysql,general |
michael@414 | 479 | ;queue_log => mysql,general |
michael@414 | 480 | ; |
michael@414 | 481 | ; |
michael@414 | 482 | ; While most dynamic realtime engines are automatically used when defined in |
michael@414 | 483 | ; this file, 'extensions', distinctively, is not. To activate dynamic realtime |
michael@414 | 484 | ; extensions, you must turn them on in each respective context within |
michael@414 | 485 | ; extensions.conf with a switch statement. The syntax is: |
michael@414 | 486 | ; switch => Realtime/[[db_context@]tablename]/<opts> |
michael@414 | 487 | ; The only option available currently is the 'p' option, which disallows |
michael@414 | 488 | ; extension pattern queries to the database. If you have no patterns defined |
michael@414 | 489 | ; in a particular context, this will save quite a bit of CPU time. However, |
michael@414 | 490 | ; note that using dynamic realtime extensions is not recommended anymore as a |
michael@414 | 491 | ; best practice; instead, you should consider writing a static dialplan with |
michael@414 | 492 | ; proper data abstraction via a tool like func_odbc. |
michael@414 | 493 | |
michael@414 | 494 | </file> |
michael@310 | 495 | <file name="extensions.conf"> |
michael@310 | 496 | ;; |
michael@310 | 497 | ;; extensions.conf -- Asterisk inbound & outbound call configuration |
michael@310 | 498 | ;; |
michael@310 | 499 | |
michael@310 | 500 | [general] |
michael@310 | 501 | static = yes |
michael@310 | 502 | writeprotect = yes |
michael@310 | 503 | autofallthrough = yes |
michael@310 | 504 | |
michael@310 | 505 | [globals] |
michael@310 | 506 | MEETME_SPOOLDIR = @l_prefix@/var/asterisk/spool/meetme |
michael@310 | 507 | STAFF = SIP/foo&SIP/bar |
michael@310 | 508 | CONSOLE = Console/dsp |
michael@310 | 509 | DOLLAR = $ |
michael@310 | 510 | |
michael@310 | 511 | ;; |
michael@310 | 512 | ;; SPECIAL CONTEXTS |
michael@310 | 513 | ;; |
michael@310 | 514 | |
michael@310 | 515 | [macro-dial] |
michael@310 | 516 | exten = s,1,Dial(${ARG1},${ARG2},${ARG3}) |
michael@310 | 517 | exten = s,n,Goto(s-${DIALSTATUS},1) |
michael@310 | 518 | exten = s-ANSWER,1,Hangup |
michael@310 | 519 | exten = s-BUSY,1,GotoIf($["${ARG4}" == ""]?novm) |
michael@310 | 520 | exten = s-BUSY,n,GotoIf($[${MAILBOX_EXISTS(${ARG4})} == 0]?novm) |
michael@310 | 521 | exten = s-BUSY,n,VoiceMail(${ARG4},b) |
michael@310 | 522 | exten = s-BUSY,n,Playback(vm-goodbye) |
michael@310 | 523 | exten = s-BUSY,n(novm),Hangup |
michael@310 | 524 | exten = s-NOANSWER,1,GotoIf($["${ARG4}" == ""]?novm) |
michael@310 | 525 | exten = s-NOANSWER,n,MailboxExists(${ARG4}) |
michael@310 | 526 | exten = s-NOANSWER,n,GotoIf($[${MAILBOX_EXISTS(${ARG4})} == 0]?novm) |
michael@310 | 527 | exten = s-NOANSWER,n,VoiceMail(${ARG4},u) |
michael@310 | 528 | exten = s-NOANSWER,n,Playback(vm-goodbye) |
michael@310 | 529 | exten = s-NOANSWER,n(novm),Hangup |
michael@310 | 530 | exten = _s-.,1,Goto(s-NOANSWER,1) |
michael@310 | 531 | |
michael@310 | 532 | [default] |
michael@310 | 533 | ; currently empty |
michael@310 | 534 | |
michael@310 | 535 | ;; |
michael@310 | 536 | ;; EXTERNAL DIAL CONTEXT |
michael@310 | 537 | ;; |
michael@310 | 538 | |
michael@310 | 539 | [external] |
michael@310 | 540 | include = default |
michael@310 | 541 | |
michael@310 | 542 | ; external incoming SIP connection |
michael@310 | 543 | exten = example,hint,${STAFF} |
michael@310 | 544 | exten = example,1,Goto(s,1) |
michael@310 | 545 | exten = s,n,Ringing |
michael@310 | 546 | exten = s,n,Wait(1) |
michael@310 | 547 | exten = s,n,Answer |
michael@310 | 548 | exten = s,n,Macro(dial,${STAFF},30,gTtr,1@external) |
michael@310 | 549 | |
michael@310 | 550 | ; external to internal mapping |
michael@310 | 551 | exten = foo,hint,SIP/foo |
michael@310 | 552 | exten = foo,1,Goto(internal,foo,1) |
michael@310 | 553 | exten = bar,hint,SIP/bar |
michael@310 | 554 | exten = bar,1,Goto(internal,bar,1) |
michael@310 | 555 | |
michael@310 | 556 | ;; |
michael@310 | 557 | ;; INTERNAL DIAL CONTEXT |
michael@310 | 558 | ;; |
michael@310 | 559 | |
michael@310 | 560 | [internal] |
michael@310 | 561 | include = default |
michael@310 | 562 | ;include = parkedcalls |
michael@310 | 563 | |
michael@310 | 564 | ; internal to external mapping |
michael@310 | 565 | exten = example,1,Goto(external,example,1) |
michael@310 | 566 | |
michael@310 | 567 | ; internal user <foo> #11 |
michael@310 | 568 | exten = foo,hint,SIP/foo |
michael@310 | 569 | exten = foo,1,Goto(11,1) |
michael@310 | 570 | exten = 11,hint,SIP/foo |
michael@310 | 571 | exten = 11,1,Macro(dial,SIP/foo,30,gTtr,11@internal) |
michael@310 | 572 | |
michael@310 | 573 | ; internal user <bar> #12 |
michael@310 | 574 | exten = bar,hint,SIP/bar |
michael@310 | 575 | exten = bar,1,Goto(12,1) |
michael@310 | 576 | exten = 12,hint,SIP/bar |
michael@310 | 577 | exten = 12,1,Macro(dial,SIP/bar,30,gTtr,12@internal) |
michael@310 | 578 | |
michael@310 | 579 | ; internal group <all> #20 |
michael@310 | 580 | exten = all,1,Goto(20,1) |
michael@310 | 581 | exten = 20/foo,1,Macro(dial,SIP/bar,60,) |
michael@310 | 582 | exten = 20/bar,1,Macro(dial,SIP/foo,60,) |
michael@310 | 583 | |
michael@310 | 584 | ; internal service <conference> #7<n> |
michael@310 | 585 | exten = conference,1,Goto(70,1) |
michael@310 | 586 | exten = _7[0-9],1,Set(confno=${EXTEN:1}) |
michael@310 | 587 | exten = _7[0-9],n,Goto(7,enter) |
michael@310 | 588 | exten = 7,1,Set(TIMEOUT(digit)=3) |
michael@310 | 589 | exten = 7,n,Set(TIMEOUT(response)=6) |
michael@310 | 590 | exten = 7,n(repeat),Read(confno,conf-getconfno,3) |
michael@310 | 591 | exten = 7,n,GotoIf($[${confno} >= 0 & ${confno} <= 9]?enter) |
michael@310 | 592 | exten = 7,n,Playback(conf-invalid) |
michael@310 | 593 | exten = 7,n,Goto(repeat) |
michael@310 | 594 | exten = 7,n(enter),Playback(conf-placeintoconf) |
michael@310 | 595 | exten = 7,n,SayNumber(${confno}) |
michael@310 | 596 | exten = 7,n,Set(SPYGROUP=conference-${confno}) |
michael@310 | 597 | exten = 7,n,Set(confopt=cCpsMvio) |
michael@310 | 598 | exten = 7,n,GotoIf($[${confno} >= 4 & ${confno} <= 9]?l1:l2) |
michael@310 | 599 | exten = 7,n(l1),Set(confopt=${confopt}i) |
michael@310 | 600 | exten = 7,n(l2),GotoIf($[${confno} >= 7 & ${confno} <= 9]?l3:l4) |
michael@310 | 601 | exten = 7,n(l3),Set(confopt=${confopt}r) |
michael@310 | 602 | exten = 7,n,Set(MEETME_RECORDINGFILE=${MEETME_SPOOLDIR}/meetme-conference-${confno}-${STRFTIME(${EPOCH},UTC,%Y%m%d%H%M)}) |
michael@310 | 603 | exten = 7,n,Set(MEETME_RECORDINGFORMAT=wav49) |
michael@310 | 604 | exten = 7,n,Playback(this-call-may-be-monitored-or-recorded) |
michael@310 | 605 | exten = 7,n(l4),MeetMe(${confno},${confopt}) |
michael@310 | 606 | exten = 7,n,Playback(beep) |
michael@310 | 607 | exten = 7,n,Wait(1) |
michael@310 | 608 | exten = 7,n,Playback(vm-goodbye) |
michael@310 | 609 | exten = 7,n,Hangup |
michael@310 | 610 | |
michael@310 | 611 | ; internal service <voicemail> #80/#*80<n> |
michael@310 | 612 | exten = voicemail,1,Goto(80,1) |
michael@310 | 613 | exten = 80,1,GotoIf($[${MAILBOX_EXISTS(${CALLERID(num)}@internal)} == 0]?novm) |
michael@310 | 614 | exten = 80,n,VoiceMailMain(${CALLERID(num)}@internal,s) |
michael@310 | 615 | exten = 80,n,Hangup |
michael@310 | 616 | exten = 80,n(novm),Playback(invalid) |
michael@310 | 617 | exten = 80,n,Hangup |
michael@310 | 618 | exten = _*80.,1,GotoIf($[${MAILBOX_EXISTS(${EXTEN:3}@internal)} == 0]?novm) |
michael@310 | 619 | exten = _*80.,n,VoiceMailMain(${EXTEN:3}@internal) |
michael@310 | 620 | exten = _*80.,n,Hangup |
michael@310 | 621 | exten = _*80.,n(novm),Playback(invalid) |
michael@310 | 622 | exten = _*80.,n,Hangup |
michael@310 | 623 | |
michael@310 | 624 | ; internal service <echo> #81 |
michael@310 | 625 | exten = echo,1,Goto(81,1) |
michael@310 | 626 | exten = 81,1,Answer |
michael@310 | 627 | exten = 81,n,Playback(demo-echotest) |
michael@310 | 628 | exten = 81,n,Wait(1) |
michael@310 | 629 | exten = 81,n,Playback(beep) |
michael@310 | 630 | exten = 81,n,Echo |
michael@310 | 631 | exten = 81,n,Wait(1) |
michael@310 | 632 | exten = 81,n,Playback(demo-echodone) |
michael@310 | 633 | exten = 81,n,Wait(1) |
michael@310 | 634 | exten = 81,n,Playback(vm-goodbye) |
michael@310 | 635 | exten = 81,n,Hangup |
michael@310 | 636 | |
michael@310 | 637 | ; internal service <reload> #82 |
michael@310 | 638 | exten = reload,1,Goto(82,1) |
michael@310 | 639 | exten = 82,1,Answer |
michael@310 | 640 | exten = 82,n,Read(pin,conf-getpin,4) |
michael@310 | 641 | exten = 82,n,GotoIf($[${pin} = 1234]?ok) |
michael@310 | 642 | exten = 82,n,Playback(conf-invalidpin) |
michael@310 | 643 | exten = 82,n,Hangup |
michael@310 | 644 | exten = 82,n(ok),Playback(beep) |
michael@310 | 645 | exten = 82,n,Wait(1) |
michael@310 | 646 | exten = 82,n,Playback(beep) |
michael@310 | 647 | exten = 82,n,Wait(1) |
michael@310 | 648 | exten = 82,n,Playback(beep) |
michael@310 | 649 | exten = 82,n,Wait(1) |
michael@310 | 650 | exten = 82,n,System(@l_prefix@/sbin/asterisk -rx reload) |
michael@310 | 651 | exten = 82,n,Hangup |
michael@310 | 652 | |
michael@310 | 653 | ; external outgoing ISDN (via SIP-to-ISDN gateway call-through) |
michael@310 | 654 | ;exten = _0.,1,Set(number=${EXTEN:1}) |
michael@310 | 655 | ;exten = _0.,n,Set(enum=${ENUMLOOKUP(+${number},ALL)}) |
michael@310 | 656 | ;exten = _0.,n,Set(enum_is_sip_url=${REGEX("^SIP/.+" ${enum})}) |
michael@310 | 657 | ;exten = _0.,n,GotoIf($["${enum_is_sip_url}" = "1"]?sip:isdn) |
michael@310 | 658 | ;exten = _0.,n(sip),Dial(${enum},60,o) |
michael@310 | 659 | ;exten = _0.,n,Goto(_0.,7) |
michael@310 | 660 | ;exten = _0.,n(isdn),Dial(SIP/gw,60,D(w1234w0#31#${number}#)) |
michael@310 | 661 | ;exten = _0.,n,Hangup |
michael@310 | 662 | |
michael@310 | 663 | ; internal outgoing SIP call (part 1/2) |
michael@310 | 664 | ; (notice sort-order trickery!) |
michael@310 | 665 | include = internal-siponly |
michael@310 | 666 | |
michael@310 | 667 | [internal-siponly] |
michael@310 | 668 | ; internal outgoing SIP call (part 2/2) |
michael@310 | 669 | ; (notice sort-order trickery!) |
michael@310 | 670 | exten = _.[@].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},60,o) |
michael@310 | 671 | exten = _.[@].,n,Hangup |
michael@310 | 672 | exten = _.[@].,102,Busy |
michael@310 | 673 | |
michael@310 | 674 | </file> |
michael@310 | 675 | <file name="enum.conf"> |
michael@310 | 676 | ;; |
michael@310 | 677 | ;; enum.conf -- Asterisk ENUM configuration |
michael@310 | 678 | ;; |
michael@310 | 679 | |
michael@310 | 680 | [general] |
michael@310 | 681 | search = e164.arpa |
michael@310 | 682 | search = e164.org |
michael@310 | 683 | |
michael@310 | 684 | </file> |
michael@310 | 685 | <file name="musiconhold.conf"> |
michael@310 | 686 | ;; |
michael@414 | 687 | ;; musiconhold.conf -- Asterisk music on hold configuration |
michael@310 | 688 | ;; |
michael@310 | 689 | |
michael@310 | 690 | [default] |
michael@310 | 691 | mode = files |
michael@310 | 692 | directory = @l_prefix@/share/asterisk/moh |
michael@310 | 693 | |
michael@310 | 694 | </file> |
michael@310 | 695 | <file name="voicemail.conf"> |
michael@310 | 696 | ;; |
michael@310 | 697 | ;; voicemail.conf -- Asterisk voice mail configuration |
michael@310 | 698 | ;; |
michael@310 | 699 | |
michael@310 | 700 | [general] |
michael@310 | 701 | format = wav49 |
michael@310 | 702 | serveremail = example@example.com |
michael@310 | 703 | attach = yes |
michael@310 | 704 | maxmsg = 20 |
michael@310 | 705 | maxsecs = 180 |
michael@310 | 706 | minsecs = 3 |
michael@310 | 707 | maxgreet = 60 |
michael@310 | 708 | skipms = 3000 |
michael@310 | 709 | maxsilence = 10 |
michael@310 | 710 | silencethreshold = 128 |
michael@310 | 711 | maxlogins = 3 |
michael@310 | 712 | charset = ISO-8859-1 |
michael@310 | 713 | pbxskip = yes |
michael@310 | 714 | fromstring = Asterisk PBX |
michael@310 | 715 | usedirectory = yes |
michael@310 | 716 | emailsubject = [PBX]: New voice message ${VM_MSGNUM} in mailbox ${VM_MAILBOX} |
michael@310 | 717 | emailbody = Dear ${VM_NAME},\n\njust wanted to let you know you were left a ${VM_DUR} long\nvoice message (number ${VM_MSGNUM}) in voice mailbox ${VM_MAILBOX}\nfrom caller ${VM_CALLERID},\non ${VM_DATE}.\nYou might want to check it when you get a chance. Thanks!\n\n\t\t\t\t-- OpenPKG Asterisk PBX\n |
michael@310 | 718 | pagerfromstring = Asterisk PBX |
michael@310 | 719 | pagersubject = New VM |
michael@310 | 720 | pagerbody = New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE} |
michael@310 | 721 | emaildateformat = %A, %d %B %Y %H:%M:%S %r |
michael@310 | 722 | mailcmd = @l_prefix@/sbin/sendmail -t |
michael@310 | 723 | |
michael@310 | 724 | [default] |
michael@310 | 725 | |
michael@310 | 726 | [external] |
michael@310 | 727 | 1 = 1234,Example,example@example.com,,delete=yes |
michael@310 | 728 | |
michael@310 | 729 | [internal] |
michael@310 | 730 | 11 = 1234,Mr. Foo,foo@example.com,,delete=no |
michael@310 | 731 | 12 = 1234,Mr. Bar,bar@example.com,,delete=no |
michael@310 | 732 | |
michael@310 | 733 | </file> |
michael@310 | 734 | <file name="cdr.conf"> |
michael@310 | 735 | ;; |
michael@310 | 736 | ;; cdr.conf -- Asterisk Call Detail Record (CDR) configuration |
michael@310 | 737 | ;; |
michael@310 | 738 | |
michael@310 | 739 | [general] |
michael@310 | 740 | enable = yes |
michael@310 | 741 | unanswered = no |
michael@310 | 742 | batch = no |
michael@310 | 743 | size = 100 |
michael@310 | 744 | time = 300 |
michael@310 | 745 | scheduleronly = no |
michael@310 | 746 | safeshutdown = yes |
michael@310 | 747 | endbeforehexten = yes |
michael@310 | 748 | |
michael@310 | 749 | </file> |
michael@310 | 750 | <file name="cdr_custom.conf"> |
michael@310 | 751 | ;; |
michael@310 | 752 | ;; cdr_custom.conf -- Asterisk Call Detail Record (CDR) via Comma Separated Value (CSV) format configuration |
michael@310 | 753 | ;; |
michael@310 | 754 | |
michael@310 | 755 | [mappings] |
michael@310 | 756 | master.csv = "${CDR(start)}", "${CDR(answer)}", "${CDR(end)}", "${CDR(duration)}", "${CDR(billsec)}", "${CDR(clid)}", "${CDR(src)}", "${CDR(dst)}", "${CDR(dcontext)}", "${CDR(channel)}", "${CDR(dstchannel)}", "${CDR(lastapp)}", "${CDR(lastdata)}", "${CDR(disposition)}", "${CDR(amaflags)}", "${CDR(accountcode)}", "${CDR(uniqueid)}", "${CDR(userfield)}" |
michael@310 | 757 | |
michael@310 | 758 | </file> |
michael@310 | 759 | <file name="cdr_sqlite3_custom.conf"> |
michael@310 | 760 | ;; |
michael@310 | 761 | ;; cdr_sqlite3_custom.conf -- Asterisk Call Detail Record (CDR) via SQLite RDBMS format configuration |
michael@310 | 762 | ;; |
michael@310 | 763 | |
michael@310 | 764 | [master] |
michael@310 | 765 | table = cdr |
michael@310 | 766 | columns = start, answer, end, duration, billsec, clid, src, dst, dcontext, channel, dstchannel, lastapp, lastdata, disposition, amaflags, accountcode, uniqueid, userfield |
michael@310 | 767 | values = "${CDR(start)}", "${CDR(answer)}", "${CDR(end)}", "${CDR(duration)}", "${CDR(billsec)}", "${CDR(clid)}", "${CDR(src)}", "${CDR(dst)}", "${CDR(dcontext)}", "${CDR(channel)}", "${CDR(dstchannel)}", "${CDR(lastapp)}", "${CDR(lastdata)}", "${CDR(disposition)}", "${CDR(amaflags)}", "${CDR(accountcode)}", "${CDR(uniqueid)}", "${CDR(userfield)}" |
michael@310 | 768 | |
michael@310 | 769 | </file> |
michael@310 | 770 | <file name="cdr_manager.conf"> |
michael@310 | 771 | ;; |
michael@310 | 772 | ;; cdr_manager.conf -- Asterisk Call Detail Record (CDR) via Asterisk Manager Interface (AMI) configuration |
michael@310 | 773 | ;; |
michael@310 | 774 | |
michael@310 | 775 | [general] |
michael@310 | 776 | enabled = yes |
michael@310 | 777 | |
michael@310 | 778 | </file> |
michael@310 | 779 | <file name="meetme.conf"> |
michael@310 | 780 | ;; |
michael@310 | 781 | ;; meetme.conf -- Asterisk conference configuration |
michael@310 | 782 | ;; |
michael@310 | 783 | |
michael@310 | 784 | [general] |
michael@310 | 785 | audiobuffers = 32 |
michael@310 | 786 | ;schedule = yes |
michael@310 | 787 | ;logmembercount = yes |
michael@310 | 788 | ;fuzzystart = 300 |
michael@310 | 789 | ;earlyalert = 3600 |
michael@310 | 790 | ;endalert = 120 |
michael@310 | 791 | |
michael@310 | 792 | [rooms] |
michael@310 | 793 | conf = 0 |
michael@310 | 794 | conf = 1 |
michael@310 | 795 | conf = 2 |
michael@310 | 796 | conf = 3 |
michael@310 | 797 | conf = 4 |
michael@310 | 798 | conf = 5 |
michael@310 | 799 | conf = 6 |
michael@310 | 800 | conf = 7 |
michael@310 | 801 | conf = 8 |
michael@310 | 802 | conf = 9,1234,1234 |
michael@310 | 803 | |
michael@310 | 804 | </file> |
michael@310 | 805 | <file name="codecs.conf"> |
michael@310 | 806 | ;; |
michael@310 | 807 | ;; codecs.conf -- Asterisk codec configuration |
michael@310 | 808 | ;; |
michael@310 | 809 | |
michael@310 | 810 | [speex] |
michael@310 | 811 | quality = 6 |
michael@310 | 812 | complexity = 4 |
michael@310 | 813 | enhancement = true |
michael@310 | 814 | vad = true |
michael@310 | 815 | vbr = true |
michael@310 | 816 | abr = 8000 |
michael@310 | 817 | vbr_quality = 5 |
michael@310 | 818 | dtx = false |
michael@310 | 819 | preprocess = false |
michael@310 | 820 | pp_vad = false |
michael@310 | 821 | pp_agc = false |
michael@310 | 822 | pp_agc_level = 8000 |
michael@310 | 823 | pp_denoise = false |
michael@310 | 824 | pp_dereverb = false |
michael@310 | 825 | pp_dereverb_decay = 0.4 |
michael@310 | 826 | pp_dereverb_level = 0.3 |
michael@310 | 827 | |
michael@310 | 828 | [plc] |
michael@310 | 829 | genericplc = true |
michael@310 | 830 | |
michael@310 | 831 | </file> |
michael@310 | 832 | <file name="chan_dahdi.conf"> |
michael@310 | 833 | ;; |
michael@310 | 834 | ;; chan_dahdi.conf -- Asterisk DAHDI channel configuration |
michael@310 | 835 | ;; |
michael@310 | 836 | |
michael@310 | 837 | ; (an empty configuration is ok, but required even for DAHDI "dahdidummy" only) |
michael@310 | 838 | [trunkgroups] |
michael@310 | 839 | [channels] |
michael@310 | 840 | |
michael@310 | 841 | </file> |
michael@310 | 842 | <file name="capi.conf"> |
michael@310 | 843 | ;; |
michael@310 | 844 | ;; capi.conf -- Asterisk ISDN/CAPI channel configuration |
michael@310 | 845 | ;; |
michael@310 | 846 | |
michael@310 | 847 | [general] |
michael@310 | 848 | nationalprefix = 0 |
michael@310 | 849 | internationalprefix= 00 |
michael@310 | 850 | rxgain = 1.0 |
michael@310 | 851 | txgain = 1.0 |
michael@310 | 852 | ulaw = no |
michael@310 | 853 | debug = yes |
michael@310 | 854 | |
michael@310 | 855 | [ISDN1] |
michael@310 | 856 | isdnmode = msn |
michael@310 | 857 | incomingmsn = * |
michael@310 | 858 | controller = 0 |
michael@310 | 859 | group = 1 |
michael@310 | 860 | ;prefix = 0 |
michael@310 | 861 | softdtmf = off |
michael@310 | 862 | relaxdtmf = off |
michael@310 | 863 | accountcode = |
michael@310 | 864 | context = external |
michael@310 | 865 | holdtype = local |
michael@310 | 866 | ;immediate = yes |
michael@310 | 867 | echocancel = no |
michael@310 | 868 | echosquelch = no |
michael@310 | 869 | ;echotail = 64 |
michael@310 | 870 | ;bridge = yes |
michael@310 | 871 | ;callgroup = 1 |
michael@310 | 872 | ;deflect = 1234567 |
michael@310 | 873 | devices = 2 |
michael@310 | 874 | ;dtmf_generate = yes |
michael@310 | 875 | |
michael@310 | 876 | </file> |
michael@310 | 877 | <file name="features.conf"> |
michael@310 | 878 | ;; |
michael@414 | 879 | ;; features.conf -- Asterisk call features configuration |
michael@310 | 880 | ;; |
michael@310 | 881 | |
michael@310 | 882 | [general] |
michael@310 | 883 | ;parkext = 700 |
michael@310 | 884 | ;parkpos = 701-720 |
michael@310 | 885 | ;context = parkedcalls |
michael@310 | 886 | |
michael@310 | 887 | </file> |
michael@414 | 888 | <file name="festival.conf"> |
michael@414 | 889 | ;; |
michael@414 | 890 | ;; festival.conf -- Asterisk festival configuration |
michael@414 | 891 | ;; |
michael@414 | 892 | |
michael@414 | 893 | [general] |
michael@414 | 894 | host = localhost ; default 'localhost' |
michael@414 | 895 | port = 1314 ; default '1314' |
michael@414 | 896 | usecache = no ; default 'no' |
michael@414 | 897 | |
michael@414 | 898 | ; If usecache=yes, a directory to store waveform cache files. |
michael@414 | 899 | ; The cache is never cleared (yet), so you must take care of cleaning it |
michael@414 | 900 | ; yourself (just delete any or all files from the cache). |
michael@414 | 901 | ; THIS DIRECTORY *MUST* EXIST and must be writable from the asterisk process. |
michael@414 | 902 | ; Defaults to /tmp/ |
michael@414 | 903 | ; |
michael@414 | 904 | ;cachedir = /opsw/var/asterisk/festivalcache/ |
michael@414 | 905 | ; |
michael@414 | 906 | ; Festival command to send to the server. |
michael@414 | 907 | ; Defaults to: (tts_textasterisk "%s" 'file)(quit)\n |
michael@414 | 908 | ; %s is replaced by the desired text to say. The command MUST end with a |
michael@414 | 909 | ; (quit) directive, or the cache handling mechanism will hang. Do not |
michael@414 | 910 | ; forget the \n at the end. |
michael@414 | 911 | ; |
michael@414 | 912 | festivalcommand = (tts_textasterisk "%s" 'file)(quit)\n |
michael@414 | 913 | |
michael@414 | 914 | </file> |
michael@399 | 915 | <file name="gtalk.conf"> |
michael@399 | 916 | ;; |
michael@399 | 917 | ;; gtalk.conf -- Asterisk GTalk configuration |
michael@399 | 918 | ;; |
michael@399 | 919 | |
michael@399 | 920 | [general] |
michael@399 | 921 | ;context = default ; Context to dump call into |
michael@399 | 922 | ;bindaddr = 0.0.0.0 ; Address to bind to |
michael@399 | 923 | ;externip = 127.0.0.1 ; Set your external ip if you are behind a NAT. |
michael@399 | 924 | ;stunaddr = <hostname> ; Get your external ip from a STUN server. |
michael@399 | 925 | ; ; Note, if the STUN query is successful, this |
michael@399 | 926 | ; ; will replace any value placed in externip; |
michael@399 | 927 | ;allowguest = yes ; Allow calls from people not in list of peers |
michael@399 | 928 | |
michael@399 | 929 | [guest] ; special account for options on guest account |
michael@399 | 930 | ;disallow = all |
michael@399 | 931 | ;allow = ulaw |
michael@399 | 932 | ;context = guest |
michael@399 | 933 | |
michael@399 | 934 | [ogorman] |
michael@399 | 935 | ;username = <person>@gmail.com ; username of the peer you're |
michael@399 | 936 | ; ; calling or accepting calls from |
michael@399 | 937 | ;disallow = all |
michael@399 | 938 | ;allow = ulaw |
michael@399 | 939 | ;context = default |
michael@399 | 940 | ;connection = asterisk ; client or component in jabber.conf |
michael@399 | 941 | ; ; for the call to leave on. |
michael@399 | 942 | |
michael@399 | 943 | </file> |
michael@310 | 944 | <file name="jabber.conf"> |
michael@310 | 945 | ;; |
michael@310 | 946 | ;; jabber.conf -- Asterisk Jabber configuration |
michael@310 | 947 | ;; |
michael@310 | 948 | |
michael@310 | 949 | [general] |
michael@310 | 950 | ;debug = yes |
michael@310 | 951 | ;autoprune = yes |
michael@310 | 952 | ;autoregister = yes |
michael@310 | 953 | |
michael@310 | 954 | ;[asterisk] |
michael@310 | 955 | ;type = client |
michael@310 | 956 | ;serverhost = jabber.example.com |
michael@310 | 957 | ;username = asterisk@example.com/asterisk |
michael@310 | 958 | ;secret = asterisk |
michael@310 | 959 | ;priority = 1 |
michael@310 | 960 | ;port = 5222 |
michael@310 | 961 | ;usetls = no |
michael@310 | 962 | ;usesasl = no |
michael@310 | 963 | ;buddy = buddy@example.com |
michael@310 | 964 | ;status = available |
michael@310 | 965 | ;timeout = 100 |
michael@310 | 966 | |
michael@310 | 967 | </file> |
michael@310 | 968 | <file name="indications.conf"> |
michael@310 | 969 | ;; |
michael@414 | 970 | ;; indications.conf -- Asterisk tone indications |
michael@310 | 971 | ;; |
michael@310 | 972 | |
michael@310 | 973 | [general] |
michael@310 | 974 | country = us |
michael@310 | 975 | |
michael@310 | 976 | ; United States |
michael@310 | 977 | ; (according to tones in North America) |
michael@310 | 978 | [us] |
michael@310 | 979 | description = United States (US) |
michael@310 | 980 | ringcadence = 2000,4000 |
michael@310 | 981 | dial = 350+440 |
michael@310 | 982 | busy = 480+620/500,0/500 |
michael@310 | 983 | ring = 440+480/2000,0/4000 |
michael@310 | 984 | congestion = 480+620/250,0/250 |
michael@310 | 985 | callwaiting = 440/300,0/10000 |
michael@310 | 986 | dialrecall = !350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440 |
michael@310 | 987 | record = 1400/500,0/15000 |
michael@310 | 988 | info = !950/330,!1400/330,!1800/330,0 |
michael@310 | 989 | stutter = !350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440 |
michael@310 | 990 | |
michael@310 | 991 | ; United Kingdom |
michael@310 | 992 | ; (partly according to BT SIN350) |
michael@310 | 993 | [uk] |
michael@310 | 994 | description = United Kingdom (UK) |
michael@310 | 995 | ringcadence = 400,200,400,2000 |
michael@310 | 996 | dial = 350+440 |
michael@310 | 997 | busy = 400/375,0/375 |
michael@310 | 998 | ring = 400+450/400,0/200,400+450/400,0/2000 |
michael@310 | 999 | congestion = 400/400,0/350,400/225,0/525 |
michael@310 | 1000 | callwaiting = 400/100,0/4000 |
michael@310 | 1001 | dialrecall = !350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440 |
michael@310 | 1002 | record = 1400/500,0/60000 |
michael@310 | 1003 | info = 950/330,0/15,1400/330,0/15,1800/330,0/1000 |
michael@310 | 1004 | stutter = 350+440/750,440/750 |
michael@310 | 1005 | |
michael@310 | 1006 | ; Germany |
michael@310 | 1007 | ; (according to http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf) |
michael@310 | 1008 | [de] |
michael@310 | 1009 | description = Germany (DE) |
michael@310 | 1010 | ringcadence = 1000,4000 |
michael@310 | 1011 | dial = 425 |
michael@310 | 1012 | busy = 425/480,0/480 |
michael@310 | 1013 | ring = 425/1000,0/4000 |
michael@310 | 1014 | congestion = 425/240,0/240 |
michael@310 | 1015 | callwaiting = !425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,0 |
michael@310 | 1016 | dialrecall = !425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425 |
michael@310 | 1017 | record = 1400/80,0/15000 |
michael@310 | 1018 | info = 950/330,1400/330,1800/330,0/1000 |
michael@310 | 1019 | stutter = 425+400 |
michael@310 | 1020 | |
michael@310 | 1021 | </file> |
michael@347 | 1022 | <file name="ccss.conf"> |
michael@347 | 1023 | ;; |
michael@347 | 1024 | ;; ccss.conf -- Asterisk Call Completion Supplementary Services configuration |
michael@347 | 1025 | ;; |
michael@347 | 1026 | |
michael@347 | 1027 | ; Warning! The CCSS implementation brings several changes to the |
michael@347 | 1028 | ; channel components of Asterisk. To use CCSS, specify the number |
michael@347 | 1029 | ; of maximum requests in this file but do not forget to specify |
michael@347 | 1030 | ; the new CCSS related channel specific options in other config |
michael@347 | 1031 | ; files as well! Some are 'cc_offer_timer', 'ccbs_available_timer', |
michael@347 | 1032 | ; 'cc_agent_policy=never' and many more (in other files.) |
michael@347 | 1033 | |
michael@347 | 1034 | [general] |
michael@347 | 1035 | ; There is only a single option that may be defined in this file. |
michael@347 | 1036 | ; The cc_max_requests option is a global limit on the number of |
michael@347 | 1037 | ; CC requests that may be in the Asterisk system at any time. |
michael@347 | 1038 | ; |
michael@347 | 1039 | cc_max_requests = 20 |
michael@347 | 1040 | |
michael@347 | 1041 | </file> |
michael@347 | 1042 | <file name="res_fax.conf"> |
michael@347 | 1043 | ;; |
michael@347 | 1044 | ;; res_fax.conf -- Asterisk fax resource configuration |
michael@347 | 1045 | ;; |
michael@347 | 1046 | |
michael@347 | 1047 | [general] |
michael@347 | 1048 | ; Maximum Transmission Rate |
michael@347 | 1049 | ; Possible values are { 2400 | 4800 | 7200 | 9600 | 12000 | 14400 } |
michael@347 | 1050 | ; Set this value to the maximum desired transfer rate. Default: 14400 |
michael@347 | 1051 | maxrate=14400 |
michael@347 | 1052 | |
michael@347 | 1053 | ; Minimum Transmission Rate |
michael@347 | 1054 | ; Possible values are { 2400 | 4800 | 7200 | 9600 | 12000 | 14400 } |
michael@347 | 1055 | ; Set this value to the minimum desired transfer rate. Default: 2400 |
michael@347 | 1056 | minrate=2400 |
michael@347 | 1057 | |
michael@347 | 1058 | ; Send Progress/Status events to manager session |
michael@347 | 1059 | ; Manager events with 'call' class permissions will receive events indicating the |
michael@347 | 1060 | ; steps to initiate a fax session. Fax completion events are always sent to manager |
michael@347 | 1061 | ; sessions with 'call' class permissions, regardless of the value of this option. |
michael@347 | 1062 | ; Default: no |
michael@347 | 1063 | statusevents=yes |
michael@347 | 1064 | |
michael@347 | 1065 | ; modem capabilities |
michael@347 | 1066 | ; Possible values are { v17 | v27 | v29 } |
michael@347 | 1067 | ; Set this value to modify the default modem options. Default: v17,v27,v29 |
michael@347 | 1068 | modems=v17,v27,v29 |
michael@347 | 1069 | |
michael@347 | 1070 | ; Enable/disable T.30 ECM (error correction mode) by default. |
michael@347 | 1071 | ; Default: Enabled |
michael@347 | 1072 | ecm=yes |
michael@347 | 1073 | |
michael@347 | 1074 | </file> |
michael@310 | 1075 | <file name="res_odbc.conf"> |
michael@310 | 1076 | ;; |
michael@310 | 1077 | ;; res_odbc.conf -- Asterisk ODBC resource configuration |
michael@310 | 1078 | ;; |
michael@310 | 1079 | |
michael@310 | 1080 | [ENV] |
michael@310 | 1081 | |
michael@310 | 1082 | [asterisk-sqlite] |
michael@310 | 1083 | enabled = no |
michael@310 | 1084 | dsn = asterisk-sqlite |
michael@310 | 1085 | username = |
michael@310 | 1086 | password = |
michael@310 | 1087 | pre-connect = no |
michael@310 | 1088 | sanitysql = SELECT 1 |
michael@310 | 1089 | ;idlecheck = 3600 |
michael@310 | 1090 | backslash_is_escape= yes |
michael@310 | 1091 | share_connections = yes |
michael@310 | 1092 | limit = 10 |
michael@310 | 1093 | |
michael@310 | 1094 | </file> |
michael@310 | 1095 | <file name="func_odbc.conf"> |
michael@310 | 1096 | ;; |
michael@310 | 1097 | ;; func_odbc.conf -- Asterisk ODBC dialplan function configuration |
michael@310 | 1098 | ;; |
michael@310 | 1099 | |
michael@310 | 1100 | ; SQLite-based Asterisk Database Access (random SQL access) |
michael@310 | 1101 | ; Set(<variable_name>=${ASTDB_SQL(SELECT [...])}) |
michael@310 | 1102 | ; Set(ASTDB_SQL(UPDATE [...])) |
michael@310 | 1103 | [SQL] |
michael@310 | 1104 | prefix = ASTDB |
michael@310 | 1105 | dsn = asterisk-sqlite |
michael@310 | 1106 | readsql = ${ARG1} |
michael@310 | 1107 | writesql = ${ARG1} |
michael@310 | 1108 | |
michael@310 | 1109 | ; SQLite-based Asterisk Database Access (fixed key/value access) |
michael@310 | 1110 | ; Set(<variable_name>=${ASTDB_MAP(<key>)}) |
michael@310 | 1111 | ; Set(ASTDB_MAP(<key>)=<value>) |
michael@310 | 1112 | [MAP] |
michael@310 | 1113 | prefix = ASTDB |
michael@310 | 1114 | dsn = asterisk-sqlite |
michael@310 | 1115 | readsql = SELECT val FROM map WHERE key='${SQL_ESC(${ARG1})}' |
michael@310 | 1116 | writesql = UPDATE map SET val='${SQL_ESC(${VAL1})}' WHERE key='${SQL_ESC(${ARG1})}' |
michael@310 | 1117 | escapecommas = no |
michael@310 | 1118 | |
michael@310 | 1119 | </file> |
michael@310 | 1120 | <file name="asterisk.pem"> |
michael@310 | 1121 | -----BEGIN CERTIFICATE----- |
michael@310 | 1122 | MIIDNjCCAp+gAwIBAgIBATANBgkqhkiG9w0BAQQFADCBqTELMAkGA1UEBhMCWFkx |
michael@310 | 1123 | FTATBgNVBAgTDFNuYWtlIERlc2VydDETMBEGA1UEBxMKU25ha2UgVG93bjEXMBUG |
michael@310 | 1124 | A1UEChMOU25ha2UgT2lsLCBMdGQxHjAcBgNVBAsTFUNlcnRpZmljYXRlIEF1dGhv |
michael@310 | 1125 | cml0eTEVMBMGA1UEAxMMU25ha2UgT2lsIENBMR4wHAYJKoZIhvcNAQkBFg9jYUBz |
michael@310 | 1126 | bmFrZW9pbC5kb20wHhcNOTkxMDIxMTgyMTUxWhcNMDExMDIwMTgyMTUxWjCBpzEL |
michael@310 | 1127 | MAkGA1UEBhMCWFkxFTATBgNVBAgTDFNuYWtlIERlc2VydDETMBEGA1UEBxMKU25h |
michael@310 | 1128 | a2UgVG93bjEXMBUGA1UEChMOU25ha2UgT2lsLCBMdGQxFzAVBgNVBAsTDldlYnNl |
michael@310 | 1129 | cnZlciBUZWFtMRkwFwYDVQQDExB3d3cuc25ha2VvaWwuZG9tMR8wHQYJKoZIhvcN |
michael@310 | 1130 | AQkBFhB3d3dAc25ha2VvaWwuZG9tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB |
michael@310 | 1131 | gQC554Ro+VH0dJONqljPBW+C72MDNGNy9eXnzejXrczsHs3Pc92Vaat6CpIEEGue |
michael@310 | 1132 | yG29xagb1o7Gj2KRgpVYcmdx6tHd2JkFW5BcFVfWXL42PV4rf9ziYon8jWsbK2aE |
michael@310 | 1133 | +L6hCtcbxdbHOGZdSIWZJwc/1Vs70S/7ImW+Zds8YEFiAwIDAQABo24wbDAbBgNV |
michael@310 | 1134 | HREEFDASgRB3d3dAc25ha2VvaWwuZG9tMDoGCWCGSAGG+EIBDQQtFittb2Rfc3Ns |
michael@310 | 1135 | IGdlbmVyYXRlZCBjdXN0b20gc2VydmVyIGNlcnRpZmljYXRlMBEGCWCGSAGG+EIB |
michael@310 | 1136 | AQQEAwIGQDANBgkqhkiG9w0BAQQFAAOBgQB6MRsYGTXUR53/nTkRDQlBdgCcnhy3 |
michael@310 | 1137 | hErfmPNl/Or5jWOmuufeIXqCvM6dK7kW/KBboui4pffIKUVafLUMdARVV6BpIGMI |
michael@310 | 1138 | 5LmVFK3sgwuJ01v/90hCt4kTWoT8YHbBLtQh7PzWgJoBAY7MJmjSguYCRt91sU4K |
michael@310 | 1139 | s0dfWsdItkw4uQ== |
michael@310 | 1140 | -----END CERTIFICATE----- |
michael@310 | 1141 | -----BEGIN RSA PRIVATE KEY----- |
michael@310 | 1142 | MIICXgIBAAKBgQC554Ro+VH0dJONqljPBW+C72MDNGNy9eXnzejXrczsHs3Pc92V |
michael@310 | 1143 | aat6CpIEEGueyG29xagb1o7Gj2KRgpVYcmdx6tHd2JkFW5BcFVfWXL42PV4rf9zi |
michael@310 | 1144 | Yon8jWsbK2aE+L6hCtcbxdbHOGZdSIWZJwc/1Vs70S/7ImW+Zds8YEFiAwIDAQAB |
michael@310 | 1145 | AoGBAKTvnFGKSkUJnNQGe66I0wunGgCA3W7kbarAzEF2qKYhGlZhJQnn68RmVnAW |
michael@310 | 1146 | pXUFvB+vmtu/+4J9OmWBJsGHFvC9xH32a0PWNr7APjAKrjAD8GWS7Z6BjuxN8QhD |
michael@310 | 1147 | WlFMmpYhYIjT1jt7RNfs2gJGS2Ryu3zutUQGwtUB9Pou03dJAkEA6yttwVINFqQP |
michael@310 | 1148 | utgUZ1JUHrN/rE73FzYsF/CwJp5d3rLHenZzLT0iW+kNDLUw/VpzYxK7bF2Qrt/3 |
michael@310 | 1149 | QIUWwm2InQJBAMpe+jhNMJeLDLc3tG3zeithT0mFkuzWWmT2PJgQ0V78UWhw/fSn |
michael@310 | 1150 | Qqnq7KBY/DNjlfhezrozLDD73/ccmha0Ax8CQQCBaBlyOtNm9QqO116K6HvPlRiZ |
michael@310 | 1151 | Wa6QQEgNOG3GInknFZu9ILcKWsywZNLAfmgh0gcSqnkmDWqTQD0PbOz0Ok/lAkEA |
michael@310 | 1152 | g24JrfUbwOASww9PhDUju/a36rTwhhZ0oKt3EP+jKsBOErmHhZP3bKlhQoZoTOu5 |
michael@310 | 1153 | Y5QXSMChS7LZcwDFZkdE2wJATRgMbhErif+ZRwt9XJRdCo5Sx6ewyGyxjc5gvUyK |
michael@310 | 1154 | KegHcgru/ZC3pGlujRD2LqxgJNAn5QTdW4LK8xVPFySTYg== |
michael@310 | 1155 | -----END RSA PRIVATE KEY----- |
michael@310 | 1156 | </file> |