asterisk/asterisk.txt

Fri, 02 Dec 2011 19:22:01 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 02 Dec 2011 19:22:01 +0100
changeset 399
9360a38b5c9f
parent 347
10bd406e1c51
child 414
fd611cde817f
permissions
-rw-r--r--

Correct DB path, add gtalk config and build logic, note CAPI header problem.

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@310 41 <file name="modules.conf">
michael@310 42 ;;
michael@310 43 ;; modules.conf -- Asterisk functionality module configuration
michael@310 44 ;;
michael@310 45
michael@310 46 [modules]
michael@310 47 autoload = yes
michael@310 48 noload = chan_iax2.so
michael@310 49 noload = chan_mgcp.so
michael@310 50 noload = chan_skinny.so
michael@310 51 noload = chan_gtalk.so
michael@310 52 noload = chan_ooh323.so
michael@310 53
michael@310 54 [global]
michael@310 55
michael@310 56 </file>
michael@310 57 <file name="logger.conf">
michael@310 58 ;;
michael@310 59 ;; logger.conf -- Asterisk logging configuration
michael@310 60 ;;
michael@310 61
michael@310 62 [general]
michael@310 63 dateformat = %F %T
michael@310 64 queue_log = no
michael@310 65 event_log = no
michael@310 66
michael@310 67 [logfiles]
michael@310 68 console = error,warning,notice,verbose
michael@310 69 asterisk.log = error,warning,notice ; verbose,debug
michael@310 70
michael@310 71 </file>
michael@310 72 <file name="manager.conf">
michael@310 73 ;;
michael@310 74 ;; manager.conf -- Asterisk internal manager API configuration
michael@310 75 ;;
michael@310 76
michael@310 77 [general]
michael@310 78 enabled = yes
michael@310 79 webenabled = no
michael@310 80 bindaddr = 127.0.0.1
michael@310 81 port = 5038
michael@347 82
michael@347 83 ; You can open a TLS connection to this socket with:
michael@347 84 ;
michael@399 85 ; openssl s_client -connect my_host:5039
michael@347 86 ;
michael@347 87 tlsenable = no
michael@347 88 tlsbindaddr = 127.0.0.1
michael@347 89 tlsbindport = 5039
michael@347 90 tlscertfile = @l_prefix@/etc/asterisk/asterisk.pem
michael@347 91 ; if tlsprivatekey is not specified search tlscertfile for key
michael@347 92 ;tlsprivatekey = @l_prefix@/etc/asterisk/asterkey.pem
michael@347 93 ;tlscipher = ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
michael@347 94
michael@310 95 displayconnects = yes
michael@310 96 allowmultiplelogin = yes
michael@310 97 timestampevents = yes
michael@310 98
michael@310 99 [asterisk]
michael@310 100 secret = asterisk
michael@310 101 deny = 0.0.0.0/0.0.0.0
michael@310 102 permit = 127.0.0.1/255.0.0.0
michael@310 103 read = system,call,agent,user,config,log,verbose,dtmf,reporting,cdr,dialplan
michael@310 104 write = system,call,agent,user,config,command,reporting
michael@310 105
michael@310 106 </file>
michael@310 107 <file name="http.conf">
michael@310 108 ;;
michael@310 109 ;; http.conf -- Asterisk HTTP Server Interface
michael@310 110 ;;
michael@310 111
michael@310 112 [general]
michael@310 113 enabled = no
michael@310 114 bindaddr = 127.0.0.1
michael@310 115 bindport = 8088
michael@347 116 tlsenable = no
michael@347 117 tlsbindport = 8089
michael@347 118 tlsbindaddr = 127.0.0.1
michael@347 119 tlscertfile = @l_prefix@/etc/asterisk/asterisk.pem
michael@310 120 enablestatic = yes
michael@310 121 prefix = asterisk
michael@310 122 redirect = / /asterisk/static/docs/index.html
michael@310 123
michael@310 124 [post_mappings]
michael@310 125 uploads = @l_prefix@/var/asterisk/spool/uploads/
michael@310 126
michael@310 127 </file>
michael@310 128 <file name="sip.conf">
michael@310 129 ;;
michael@310 130 ;; sip.conf -- Asterisk SIP configuration
michael@310 131 ;;
michael@310 132
michael@310 133 [general]
michael@310 134 useragent = OpenPKG Asterisk PBX
michael@310 135 realm = example
michael@310 136 bindaddr = 127.0.0.1
michael@310 137 bindport = 5060
michael@310 138 tcpenable = yes
michael@310 139 tcpbindaddr = 127.0.0.1:5060
michael@310 140 tlsenable = no
michael@310 141 tlsbindaddr = 127.0.0.1:5061
michael@310 142 tlscipher = ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
michael@310 143 tlscertfile = asterisk.pem
michael@310 144 tlscafile = asterisk.pem
michael@310 145 srvlookup = yes
michael@310 146 useclientcode = yes
michael@310 147 allowguest = yes
michael@310 148 canreinvite = no
michael@310 149 nat = no
michael@310 150 disallow = all
michael@310 151 allow = speex
michael@310 152 allow = g726
michael@310 153 allow = ulaw
michael@310 154 allow = alaw
michael@310 155 allow = gsm
michael@310 156 videosupport = no
michael@310 157 ;allow = h263
michael@310 158 ;allow = h263p
michael@310 159 notifyhold = yes
michael@310 160 notifyringing = yes
michael@310 161 limitonpeer = yes
michael@310 162 call-limit = 1
michael@310 163 incominglimit = 1
michael@310 164 context = external
michael@310 165 ;register = NNNNNNN:XXXXXX:NNNNNNN@sipgate.de/s
michael@310 166 ;tos = 0x18
michael@310 167
michael@310 168 ;[sipgate]
michael@310 169 ;type = peer
michael@310 170 ;defaultuser = NNNNNNN
michael@310 171 ;host = sipgate.de
michael@310 172 ;fromuser = NNNNNNN
michael@310 173 ;fromdomain = sipgate.de
michael@310 174 ;canreinvite = no
michael@310 175 ;disallow = all
michael@310 176 ;allow = speex
michael@310 177 ;allow = g726
michael@310 178 ;allow = ulaw
michael@310 179 ;allow = alaw
michael@310 180 ;allow = gsm
michael@310 181 ;context = external
michael@310 182
michael@310 183 ;[gw]
michael@310 184 ;type = friend
michael@310 185 ;defaultuser = gw
michael@310 186 ;callerid = "ISDN-to-SIP" <gw>
michael@310 187 ;fromdomain = example.com
michael@310 188 ;secret = asterisk
michael@310 189 ;host = dynamic
michael@310 190 ;canreinvite = no
michael@310 191 ;disallow = all
michael@310 192 ;allow = g726
michael@310 193 ;allow = ulaw
michael@310 194 ;allow = alaw
michael@310 195 ;allow = gsm
michael@310 196 ;dtmfmode = rfc2833
michael@310 197 ;qualify = yes
michael@310 198 ;insecure = yes
michael@310 199 ;context = external
michael@310 200 ;nat = no
michael@310 201
michael@310 202 [std-user](!)
michael@310 203 type = friend
michael@310 204 context = internal
michael@310 205 host = dynamic
michael@310 206 dtmfmode = rfc2833
michael@310 207 qualify = yes
michael@310 208 disallow = all
michael@310 209 allow = speex
michael@310 210 allow = g726
michael@310 211 allow = ulaw
michael@310 212 allow = alaw
michael@310 213
michael@310 214 [behind-nat](!)
michael@310 215 nat = yes
michael@310 216
michael@310 217 [with-mailbox](!)
michael@310 218 hasvoicemail = yes
michael@310 219 subscribemwi = yes
michael@310 220 subscribecontext = internal
michael@310 221 vmexten = voicemail
michael@310 222
michael@310 223 [foo](std-user,with-mailbox)
michael@310 224 secret = asterisk
michael@310 225 callerid = "Mr. Foo" <11>
michael@310 226 mailbox = 11@internal
michael@310 227
michael@310 228 [bar](std-user,with-mailbox)
michael@310 229 secret = asterisk
michael@310 230 callerid = "Mr. Bar" <12>
michael@310 231 mailbox = 12@internal
michael@310 232
michael@310 233 </file>
michael@347 234 <file name="iax.conf">
michael@347 235 ;;
michael@347 236 ;; iax.conf -- Asterisk IAX configuration
michael@347 237 ;;
michael@347 238
michael@347 239 ;; This configuration is reread at reload
michael@347 240 ;; or with the CLI command
michael@399 241 ;; reload chan_iax2.so
michael@347 242 ;;
michael@347 243 ;; General settings, like port number to bind to, and
michael@347 244 ;; an option address (the default is to bind to all
michael@347 245 ;; local addresses).
michael@347 246 ;;
michael@347 247 ;[general]
michael@347 248 ;bindport=4569 ; bindport and bindaddr may be specified
michael@347 249 ; ; NOTE: bindport must be specified BEFORE
michael@347 250 ; ; bindaddr or may be specified on a specific
michael@347 251 ; ; bindaddr if followed by colon and port
michael@347 252 ; ; (e.g. bindaddr=192.168.0.1:4569)
michael@347 253 ;bindaddr=127.0.0.1 ; more than once to bind to multiple
michael@399 254 ; ; addresses, but the first will be the
michael@347 255 ; ; default
michael@347 256
michael@347 257 </file>
michael@310 258 <file name="rtp.conf">
michael@310 259 ;;
michael@310 260 ;; rtp.conf -- Asterisk RTP configuration
michael@310 261 ;;
michael@310 262
michael@310 263 [general]
michael@310 264 rtpstart = 7070
michael@310 265 rtpend = 7089
michael@310 266
michael@310 267 </file>
michael@311 268 <file name="sip_notify.conf">
michael@311 269 ;;
michael@311 270 ;; sip_notify.conf -- Asterisk NOTIFY automation from command line
michael@311 271 ;;
michael@311 272
michael@311 273 ; rfc3842
michael@311 274 ; put empty "Content=>" at the end to have CRLF after last body line
michael@311 275 [clear-mwi]
michael@311 276 Event=>message-summary
michael@311 277 Content-type=>application/simple-message-summary
michael@311 278 Content=>Messages-Waiting: no
michael@311 279 Content=>Message-Account: sip:asterisk@127.0.0.1
michael@311 280 Content=>Voice-Message: 0/0 (0/0)
michael@311 281 Content=>
michael@311 282
michael@311 283 ; Aastra
michael@311 284 [aastra-check-cfg]
michael@311 285 Event=>check-sync
michael@311 286
michael@311 287 [aastra-xml]
michael@311 288 Event=>aastra-xml
michael@311 289
michael@311 290 ; Linksys
michael@311 291 [linksys-cold-restart]
michael@311 292 Event=>reboot_now
michael@311 293
michael@311 294 [linksys-warm-restart]
michael@311 295 Event=>restart_now
michael@311 296
michael@311 297 ; Polycom
michael@311 298 [polycom-check-cfg]
michael@311 299 Event=>check-sync
michael@311 300
michael@311 301 ; Sipura
michael@311 302 [sipura-check-cfg]
michael@311 303 Event=>resync
michael@311 304
michael@311 305 [sipura-get-report]
michael@311 306 Event=>report
michael@311 307
michael@311 308 ; Snom
michael@311 309 [snom-check-cfg]
michael@311 310 Event=>check-sync\;reboot=false
michael@311 311
michael@311 312 [snom-reboot]
michael@311 313 Event=>reboot
michael@311 314
michael@311 315 ; Cisco
michael@311 316 [cisco-check-cfg]
michael@311 317 Event=>check-sync
michael@311 318
michael@311 319 </file>
michael@310 320 <file name="extensions.conf">
michael@310 321 ;;
michael@310 322 ;; extensions.conf -- Asterisk inbound & outbound call configuration
michael@310 323 ;;
michael@310 324
michael@310 325 [general]
michael@310 326 static = yes
michael@310 327 writeprotect = yes
michael@310 328 autofallthrough = yes
michael@310 329
michael@310 330 [globals]
michael@310 331 MEETME_SPOOLDIR = @l_prefix@/var/asterisk/spool/meetme
michael@310 332 STAFF = SIP/foo&SIP/bar
michael@310 333 CONSOLE = Console/dsp
michael@310 334 DOLLAR = $
michael@310 335
michael@310 336 ;;
michael@310 337 ;; SPECIAL CONTEXTS
michael@310 338 ;;
michael@310 339
michael@310 340 [macro-dial]
michael@310 341 exten = s,1,Dial(${ARG1},${ARG2},${ARG3})
michael@310 342 exten = s,n,Goto(s-${DIALSTATUS},1)
michael@310 343 exten = s-ANSWER,1,Hangup
michael@310 344 exten = s-BUSY,1,GotoIf($["${ARG4}" == ""]?novm)
michael@310 345 exten = s-BUSY,n,GotoIf($[${MAILBOX_EXISTS(${ARG4})} == 0]?novm)
michael@310 346 exten = s-BUSY,n,VoiceMail(${ARG4},b)
michael@310 347 exten = s-BUSY,n,Playback(vm-goodbye)
michael@310 348 exten = s-BUSY,n(novm),Hangup
michael@310 349 exten = s-NOANSWER,1,GotoIf($["${ARG4}" == ""]?novm)
michael@310 350 exten = s-NOANSWER,n,MailboxExists(${ARG4})
michael@310 351 exten = s-NOANSWER,n,GotoIf($[${MAILBOX_EXISTS(${ARG4})} == 0]?novm)
michael@310 352 exten = s-NOANSWER,n,VoiceMail(${ARG4},u)
michael@310 353 exten = s-NOANSWER,n,Playback(vm-goodbye)
michael@310 354 exten = s-NOANSWER,n(novm),Hangup
michael@310 355 exten = _s-.,1,Goto(s-NOANSWER,1)
michael@310 356
michael@310 357 [default]
michael@310 358 ; currently empty
michael@310 359
michael@310 360 ;;
michael@310 361 ;; EXTERNAL DIAL CONTEXT
michael@310 362 ;;
michael@310 363
michael@310 364 [external]
michael@310 365 include = default
michael@310 366
michael@310 367 ; external incoming SIP connection
michael@310 368 exten = example,hint,${STAFF}
michael@310 369 exten = example,1,Goto(s,1)
michael@310 370 exten = s,n,Ringing
michael@310 371 exten = s,n,Wait(1)
michael@310 372 exten = s,n,Answer
michael@310 373 exten = s,n,Macro(dial,${STAFF},30,gTtr,1@external)
michael@310 374
michael@310 375 ; external to internal mapping
michael@310 376 exten = foo,hint,SIP/foo
michael@310 377 exten = foo,1,Goto(internal,foo,1)
michael@310 378 exten = bar,hint,SIP/bar
michael@310 379 exten = bar,1,Goto(internal,bar,1)
michael@310 380
michael@310 381 ;;
michael@310 382 ;; INTERNAL DIAL CONTEXT
michael@310 383 ;;
michael@310 384
michael@310 385 [internal]
michael@310 386 include = default
michael@310 387 ;include = parkedcalls
michael@310 388
michael@310 389 ; internal to external mapping
michael@310 390 exten = example,1,Goto(external,example,1)
michael@310 391
michael@310 392 ; internal user <foo> #11
michael@310 393 exten = foo,hint,SIP/foo
michael@310 394 exten = foo,1,Goto(11,1)
michael@310 395 exten = 11,hint,SIP/foo
michael@310 396 exten = 11,1,Macro(dial,SIP/foo,30,gTtr,11@internal)
michael@310 397
michael@310 398 ; internal user <bar> #12
michael@310 399 exten = bar,hint,SIP/bar
michael@310 400 exten = bar,1,Goto(12,1)
michael@310 401 exten = 12,hint,SIP/bar
michael@310 402 exten = 12,1,Macro(dial,SIP/bar,30,gTtr,12@internal)
michael@310 403
michael@310 404 ; internal group <all> #20
michael@310 405 exten = all,1,Goto(20,1)
michael@310 406 exten = 20/foo,1,Macro(dial,SIP/bar,60,)
michael@310 407 exten = 20/bar,1,Macro(dial,SIP/foo,60,)
michael@310 408
michael@310 409 ; internal service <conference> #7<n>
michael@310 410 exten = conference,1,Goto(70,1)
michael@310 411 exten = _7[0-9],1,Set(confno=${EXTEN:1})
michael@310 412 exten = _7[0-9],n,Goto(7,enter)
michael@310 413 exten = 7,1,Set(TIMEOUT(digit)=3)
michael@310 414 exten = 7,n,Set(TIMEOUT(response)=6)
michael@310 415 exten = 7,n(repeat),Read(confno,conf-getconfno,3)
michael@310 416 exten = 7,n,GotoIf($[${confno} >= 0 & ${confno} <= 9]?enter)
michael@310 417 exten = 7,n,Playback(conf-invalid)
michael@310 418 exten = 7,n,Goto(repeat)
michael@310 419 exten = 7,n(enter),Playback(conf-placeintoconf)
michael@310 420 exten = 7,n,SayNumber(${confno})
michael@310 421 exten = 7,n,Set(SPYGROUP=conference-${confno})
michael@310 422 exten = 7,n,Set(confopt=cCpsMvio)
michael@310 423 exten = 7,n,GotoIf($[${confno} >= 4 & ${confno} <= 9]?l1:l2)
michael@310 424 exten = 7,n(l1),Set(confopt=${confopt}i)
michael@310 425 exten = 7,n(l2),GotoIf($[${confno} >= 7 & ${confno} <= 9]?l3:l4)
michael@310 426 exten = 7,n(l3),Set(confopt=${confopt}r)
michael@310 427 exten = 7,n,Set(MEETME_RECORDINGFILE=${MEETME_SPOOLDIR}/meetme-conference-${confno}-${STRFTIME(${EPOCH},UTC,%Y%m%d%H%M)})
michael@310 428 exten = 7,n,Set(MEETME_RECORDINGFORMAT=wav49)
michael@310 429 exten = 7,n,Playback(this-call-may-be-monitored-or-recorded)
michael@310 430 exten = 7,n(l4),MeetMe(${confno},${confopt})
michael@310 431 exten = 7,n,Playback(beep)
michael@310 432 exten = 7,n,Wait(1)
michael@310 433 exten = 7,n,Playback(vm-goodbye)
michael@310 434 exten = 7,n,Hangup
michael@310 435
michael@310 436 ; internal service <voicemail> #80/#*80<n>
michael@310 437 exten = voicemail,1,Goto(80,1)
michael@310 438 exten = 80,1,GotoIf($[${MAILBOX_EXISTS(${CALLERID(num)}@internal)} == 0]?novm)
michael@310 439 exten = 80,n,VoiceMailMain(${CALLERID(num)}@internal,s)
michael@310 440 exten = 80,n,Hangup
michael@310 441 exten = 80,n(novm),Playback(invalid)
michael@310 442 exten = 80,n,Hangup
michael@310 443 exten = _*80.,1,GotoIf($[${MAILBOX_EXISTS(${EXTEN:3}@internal)} == 0]?novm)
michael@310 444 exten = _*80.,n,VoiceMailMain(${EXTEN:3}@internal)
michael@310 445 exten = _*80.,n,Hangup
michael@310 446 exten = _*80.,n(novm),Playback(invalid)
michael@310 447 exten = _*80.,n,Hangup
michael@310 448
michael@310 449 ; internal service <echo> #81
michael@310 450 exten = echo,1,Goto(81,1)
michael@310 451 exten = 81,1,Answer
michael@310 452 exten = 81,n,Playback(demo-echotest)
michael@310 453 exten = 81,n,Wait(1)
michael@310 454 exten = 81,n,Playback(beep)
michael@310 455 exten = 81,n,Echo
michael@310 456 exten = 81,n,Wait(1)
michael@310 457 exten = 81,n,Playback(demo-echodone)
michael@310 458 exten = 81,n,Wait(1)
michael@310 459 exten = 81,n,Playback(vm-goodbye)
michael@310 460 exten = 81,n,Hangup
michael@310 461
michael@310 462 ; internal service <reload> #82
michael@310 463 exten = reload,1,Goto(82,1)
michael@310 464 exten = 82,1,Answer
michael@310 465 exten = 82,n,Read(pin,conf-getpin,4)
michael@310 466 exten = 82,n,GotoIf($[${pin} = 1234]?ok)
michael@310 467 exten = 82,n,Playback(conf-invalidpin)
michael@310 468 exten = 82,n,Hangup
michael@310 469 exten = 82,n(ok),Playback(beep)
michael@310 470 exten = 82,n,Wait(1)
michael@310 471 exten = 82,n,Playback(beep)
michael@310 472 exten = 82,n,Wait(1)
michael@310 473 exten = 82,n,Playback(beep)
michael@310 474 exten = 82,n,Wait(1)
michael@310 475 exten = 82,n,System(@l_prefix@/sbin/asterisk -rx reload)
michael@310 476 exten = 82,n,Hangup
michael@310 477
michael@310 478 ; external outgoing ISDN (via SIP-to-ISDN gateway call-through)
michael@310 479 ;exten = _0.,1,Set(number=${EXTEN:1})
michael@310 480 ;exten = _0.,n,Set(enum=${ENUMLOOKUP(+${number},ALL)})
michael@310 481 ;exten = _0.,n,Set(enum_is_sip_url=${REGEX("^SIP/.+" ${enum})})
michael@310 482 ;exten = _0.,n,GotoIf($["${enum_is_sip_url}" = "1"]?sip:isdn)
michael@310 483 ;exten = _0.,n(sip),Dial(${enum},60,o)
michael@310 484 ;exten = _0.,n,Goto(_0.,7)
michael@310 485 ;exten = _0.,n(isdn),Dial(SIP/gw,60,D(w1234w0#31#${number}#))
michael@310 486 ;exten = _0.,n,Hangup
michael@310 487
michael@310 488 ; internal outgoing SIP call (part 1/2)
michael@310 489 ; (notice sort-order trickery!)
michael@310 490 include = internal-siponly
michael@310 491
michael@310 492 [internal-siponly]
michael@310 493 ; internal outgoing SIP call (part 2/2)
michael@310 494 ; (notice sort-order trickery!)
michael@310 495 exten = _.[@].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},60,o)
michael@310 496 exten = _.[@].,n,Hangup
michael@310 497 exten = _.[@].,102,Busy
michael@310 498
michael@310 499 </file>
michael@310 500 <file name="enum.conf">
michael@310 501 ;;
michael@310 502 ;; enum.conf -- Asterisk ENUM configuration
michael@310 503 ;;
michael@310 504
michael@310 505 [general]
michael@310 506 search = e164.arpa
michael@310 507 search = e164.org
michael@310 508
michael@310 509 </file>
michael@310 510 <file name="musiconhold.conf">
michael@310 511 ;;
michael@310 512 ;; musiconhold.conf -- Asterisk music-on-hold configuration
michael@310 513 ;;
michael@310 514
michael@310 515 [default]
michael@310 516 mode = files
michael@310 517 directory = @l_prefix@/share/asterisk/moh
michael@310 518
michael@310 519 </file>
michael@310 520 <file name="voicemail.conf">
michael@310 521 ;;
michael@310 522 ;; voicemail.conf -- Asterisk voice mail configuration
michael@310 523 ;;
michael@310 524
michael@310 525 [general]
michael@310 526 format = wav49
michael@310 527 serveremail = example@example.com
michael@310 528 attach = yes
michael@310 529 maxmsg = 20
michael@310 530 maxsecs = 180
michael@310 531 minsecs = 3
michael@310 532 maxgreet = 60
michael@310 533 skipms = 3000
michael@310 534 maxsilence = 10
michael@310 535 silencethreshold = 128
michael@310 536 maxlogins = 3
michael@310 537 charset = ISO-8859-1
michael@310 538 pbxskip = yes
michael@310 539 fromstring = Asterisk PBX
michael@310 540 usedirectory = yes
michael@310 541 emailsubject = [PBX]: New voice message ${VM_MSGNUM} in mailbox ${VM_MAILBOX}
michael@310 542 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 543 pagerfromstring = Asterisk PBX
michael@310 544 pagersubject = New VM
michael@310 545 pagerbody = New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE}
michael@310 546 emaildateformat = %A, %d %B %Y %H:%M:%S %r
michael@310 547 mailcmd = @l_prefix@/sbin/sendmail -t
michael@310 548
michael@310 549 [default]
michael@310 550
michael@310 551 [external]
michael@310 552 1 = 1234,Example,example@example.com,,delete=yes
michael@310 553
michael@310 554 [internal]
michael@310 555 11 = 1234,Mr. Foo,foo@example.com,,delete=no
michael@310 556 12 = 1234,Mr. Bar,bar@example.com,,delete=no
michael@310 557
michael@310 558 </file>
michael@310 559 <file name="cdr.conf">
michael@310 560 ;;
michael@310 561 ;; cdr.conf -- Asterisk Call Detail Record (CDR) configuration
michael@310 562 ;;
michael@310 563
michael@310 564 [general]
michael@310 565 enable = yes
michael@310 566 unanswered = no
michael@310 567 batch = no
michael@310 568 size = 100
michael@310 569 time = 300
michael@310 570 scheduleronly = no
michael@310 571 safeshutdown = yes
michael@310 572 endbeforehexten = yes
michael@310 573
michael@310 574 </file>
michael@310 575 <file name="cdr_custom.conf">
michael@310 576 ;;
michael@310 577 ;; cdr_custom.conf -- Asterisk Call Detail Record (CDR) via Comma Separated Value (CSV) format configuration
michael@310 578 ;;
michael@310 579
michael@310 580 [mappings]
michael@310 581 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 582
michael@310 583 </file>
michael@310 584 <file name="cdr_sqlite3_custom.conf">
michael@310 585 ;;
michael@310 586 ;; cdr_sqlite3_custom.conf -- Asterisk Call Detail Record (CDR) via SQLite RDBMS format configuration
michael@310 587 ;;
michael@310 588
michael@310 589 [master]
michael@310 590 table = cdr
michael@310 591 columns = start, answer, end, duration, billsec, clid, src, dst, dcontext, channel, dstchannel, lastapp, lastdata, disposition, amaflags, accountcode, uniqueid, userfield
michael@310 592 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 593
michael@310 594 </file>
michael@310 595 <file name="cdr_manager.conf">
michael@310 596 ;;
michael@310 597 ;; cdr_manager.conf -- Asterisk Call Detail Record (CDR) via Asterisk Manager Interface (AMI) configuration
michael@310 598 ;;
michael@310 599
michael@310 600 [general]
michael@310 601 enabled = yes
michael@310 602
michael@310 603 </file>
michael@310 604 <file name="meetme.conf">
michael@310 605 ;;
michael@310 606 ;; meetme.conf -- Asterisk conference configuration
michael@310 607 ;;
michael@310 608
michael@310 609 [general]
michael@310 610 audiobuffers = 32
michael@310 611 ;schedule = yes
michael@310 612 ;logmembercount = yes
michael@310 613 ;fuzzystart = 300
michael@310 614 ;earlyalert = 3600
michael@310 615 ;endalert = 120
michael@310 616
michael@310 617 [rooms]
michael@310 618 conf = 0
michael@310 619 conf = 1
michael@310 620 conf = 2
michael@310 621 conf = 3
michael@310 622 conf = 4
michael@310 623 conf = 5
michael@310 624 conf = 6
michael@310 625 conf = 7
michael@310 626 conf = 8
michael@310 627 conf = 9,1234,1234
michael@310 628
michael@310 629 </file>
michael@310 630 <file name="codecs.conf">
michael@310 631 ;;
michael@310 632 ;; codecs.conf -- Asterisk codec configuration
michael@310 633 ;;
michael@310 634
michael@310 635 [speex]
michael@310 636 quality = 6
michael@310 637 complexity = 4
michael@310 638 enhancement = true
michael@310 639 vad = true
michael@310 640 vbr = true
michael@310 641 abr = 8000
michael@310 642 vbr_quality = 5
michael@310 643 dtx = false
michael@310 644 preprocess = false
michael@310 645 pp_vad = false
michael@310 646 pp_agc = false
michael@310 647 pp_agc_level = 8000
michael@310 648 pp_denoise = false
michael@310 649 pp_dereverb = false
michael@310 650 pp_dereverb_decay = 0.4
michael@310 651 pp_dereverb_level = 0.3
michael@310 652
michael@310 653 [plc]
michael@310 654 genericplc = true
michael@310 655
michael@310 656 </file>
michael@310 657 <file name="chan_dahdi.conf">
michael@310 658 ;;
michael@310 659 ;; chan_dahdi.conf -- Asterisk DAHDI channel configuration
michael@310 660 ;;
michael@310 661
michael@310 662 ; (an empty configuration is ok, but required even for DAHDI "dahdidummy" only)
michael@310 663 [trunkgroups]
michael@310 664 [channels]
michael@310 665
michael@310 666 </file>
michael@310 667 <file name="capi.conf">
michael@310 668 ;;
michael@310 669 ;; capi.conf -- Asterisk ISDN/CAPI channel configuration
michael@310 670 ;;
michael@310 671
michael@310 672 [general]
michael@310 673 nationalprefix = 0
michael@310 674 internationalprefix= 00
michael@310 675 rxgain = 1.0
michael@310 676 txgain = 1.0
michael@310 677 ulaw = no
michael@310 678 debug = yes
michael@310 679
michael@310 680 [ISDN1]
michael@310 681 isdnmode = msn
michael@310 682 incomingmsn = *
michael@310 683 controller = 0
michael@310 684 group = 1
michael@310 685 ;prefix = 0
michael@310 686 softdtmf = off
michael@310 687 relaxdtmf = off
michael@310 688 accountcode =
michael@310 689 context = external
michael@310 690 holdtype = local
michael@310 691 ;immediate = yes
michael@310 692 echocancel = no
michael@310 693 echosquelch = no
michael@310 694 ;echotail = 64
michael@310 695 ;bridge = yes
michael@310 696 ;callgroup = 1
michael@310 697 ;deflect = 1234567
michael@310 698 devices = 2
michael@310 699 ;dtmf_generate = yes
michael@310 700
michael@310 701 </file>
michael@310 702 <file name="features.conf">
michael@310 703 ;;
michael@310 704 ;; features.conf -- Asterisk Call Features configuration
michael@310 705 ;;
michael@310 706
michael@310 707 [general]
michael@310 708 ;parkext = 700
michael@310 709 ;parkpos = 701-720
michael@310 710 ;context = parkedcalls
michael@310 711
michael@310 712 </file>
michael@399 713 <file name="gtalk.conf">
michael@399 714 ;;
michael@399 715 ;; gtalk.conf -- Asterisk GTalk configuration
michael@399 716 ;;
michael@399 717
michael@399 718 [general]
michael@399 719 ;context = default ; Context to dump call into
michael@399 720 ;bindaddr = 0.0.0.0 ; Address to bind to
michael@399 721 ;externip = 127.0.0.1 ; Set your external ip if you are behind a NAT.
michael@399 722 ;stunaddr = <hostname> ; Get your external ip from a STUN server.
michael@399 723 ; ; Note, if the STUN query is successful, this
michael@399 724 ; ; will replace any value placed in externip;
michael@399 725 ;allowguest = yes ; Allow calls from people not in list of peers
michael@399 726
michael@399 727 [guest] ; special account for options on guest account
michael@399 728 ;disallow = all
michael@399 729 ;allow = ulaw
michael@399 730 ;context = guest
michael@399 731
michael@399 732 [ogorman]
michael@399 733 ;username = <person>@gmail.com ; username of the peer you're
michael@399 734 ; ; calling or accepting calls from
michael@399 735 ;disallow = all
michael@399 736 ;allow = ulaw
michael@399 737 ;context = default
michael@399 738 ;connection = asterisk ; client or component in jabber.conf
michael@399 739 ; ; for the call to leave on.
michael@399 740
michael@399 741 </file>
michael@310 742 <file name="jabber.conf">
michael@310 743 ;;
michael@310 744 ;; jabber.conf -- Asterisk Jabber configuration
michael@310 745 ;;
michael@310 746
michael@310 747 [general]
michael@310 748 ;debug = yes
michael@310 749 ;autoprune = yes
michael@310 750 ;autoregister = yes
michael@310 751
michael@310 752 ;[asterisk]
michael@310 753 ;type = client
michael@310 754 ;serverhost = jabber.example.com
michael@310 755 ;username = asterisk@example.com/asterisk
michael@310 756 ;secret = asterisk
michael@310 757 ;priority = 1
michael@310 758 ;port = 5222
michael@310 759 ;usetls = no
michael@310 760 ;usesasl = no
michael@310 761 ;buddy = buddy@example.com
michael@310 762 ;status = available
michael@310 763 ;timeout = 100
michael@310 764
michael@310 765 </file>
michael@310 766 <file name="indications.conf">
michael@310 767 ;;
michael@310 768 ;; indications.conf -- Asterisk Tone Indications
michael@310 769 ;;
michael@310 770
michael@310 771 [general]
michael@310 772 country = us
michael@310 773
michael@310 774 ; United States
michael@310 775 ; (according to tones in North America)
michael@310 776 [us]
michael@310 777 description = United States (US)
michael@310 778 ringcadence = 2000,4000
michael@310 779 dial = 350+440
michael@310 780 busy = 480+620/500,0/500
michael@310 781 ring = 440+480/2000,0/4000
michael@310 782 congestion = 480+620/250,0/250
michael@310 783 callwaiting = 440/300,0/10000
michael@310 784 dialrecall = !350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440
michael@310 785 record = 1400/500,0/15000
michael@310 786 info = !950/330,!1400/330,!1800/330,0
michael@310 787 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 788
michael@310 789 ; United Kingdom
michael@310 790 ; (partly according to BT SIN350)
michael@310 791 [uk]
michael@310 792 description = United Kingdom (UK)
michael@310 793 ringcadence = 400,200,400,2000
michael@310 794 dial = 350+440
michael@310 795 busy = 400/375,0/375
michael@310 796 ring = 400+450/400,0/200,400+450/400,0/2000
michael@310 797 congestion = 400/400,0/350,400/225,0/525
michael@310 798 callwaiting = 400/100,0/4000
michael@310 799 dialrecall = !350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440
michael@310 800 record = 1400/500,0/60000
michael@310 801 info = 950/330,0/15,1400/330,0/15,1800/330,0/1000
michael@310 802 stutter = 350+440/750,440/750
michael@310 803
michael@310 804 ; Germany
michael@310 805 ; (according to http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf)
michael@310 806 [de]
michael@310 807 description = Germany (DE)
michael@310 808 ringcadence = 1000,4000
michael@310 809 dial = 425
michael@310 810 busy = 425/480,0/480
michael@310 811 ring = 425/1000,0/4000
michael@310 812 congestion = 425/240,0/240
michael@310 813 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 814 dialrecall = !425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425
michael@310 815 record = 1400/80,0/15000
michael@310 816 info = 950/330,1400/330,1800/330,0/1000
michael@310 817 stutter = 425+400
michael@310 818
michael@310 819 </file>
michael@347 820 <file name="ccss.conf">
michael@347 821 ;;
michael@347 822 ;; ccss.conf -- Asterisk Call Completion Supplementary Services configuration
michael@347 823 ;;
michael@347 824
michael@347 825 ; Warning! The CCSS implementation brings several changes to the
michael@347 826 ; channel components of Asterisk. To use CCSS, specify the number
michael@347 827 ; of maximum requests in this file but do not forget to specify
michael@347 828 ; the new CCSS related channel specific options in other config
michael@347 829 ; files as well! Some are 'cc_offer_timer', 'ccbs_available_timer',
michael@347 830 ; 'cc_agent_policy=never' and many more (in other files.)
michael@347 831
michael@347 832 [general]
michael@347 833 ; There is only a single option that may be defined in this file.
michael@347 834 ; The cc_max_requests option is a global limit on the number of
michael@347 835 ; CC requests that may be in the Asterisk system at any time.
michael@347 836 ;
michael@347 837 cc_max_requests = 20
michael@347 838
michael@347 839 </file>
michael@347 840 <file name="res_fax.conf">
michael@347 841 ;;
michael@347 842 ;; res_fax.conf -- Asterisk fax resource configuration
michael@347 843 ;;
michael@347 844
michael@347 845 [general]
michael@347 846 ; Maximum Transmission Rate
michael@347 847 ; Possible values are { 2400 | 4800 | 7200 | 9600 | 12000 | 14400 }
michael@347 848 ; Set this value to the maximum desired transfer rate. Default: 14400
michael@347 849 maxrate=14400
michael@347 850
michael@347 851 ; Minimum Transmission Rate
michael@347 852 ; Possible values are { 2400 | 4800 | 7200 | 9600 | 12000 | 14400 }
michael@347 853 ; Set this value to the minimum desired transfer rate. Default: 2400
michael@347 854 minrate=2400
michael@347 855
michael@347 856 ; Send Progress/Status events to manager session
michael@347 857 ; Manager events with 'call' class permissions will receive events indicating the
michael@347 858 ; steps to initiate a fax session. Fax completion events are always sent to manager
michael@347 859 ; sessions with 'call' class permissions, regardless of the value of this option.
michael@347 860 ; Default: no
michael@347 861 statusevents=yes
michael@347 862
michael@347 863 ; modem capabilities
michael@347 864 ; Possible values are { v17 | v27 | v29 }
michael@347 865 ; Set this value to modify the default modem options. Default: v17,v27,v29
michael@347 866 modems=v17,v27,v29
michael@347 867
michael@347 868 ; Enable/disable T.30 ECM (error correction mode) by default.
michael@347 869 ; Default: Enabled
michael@347 870 ecm=yes
michael@347 871
michael@347 872 </file>
michael@310 873 <file name="res_odbc.conf">
michael@310 874 ;;
michael@310 875 ;; res_odbc.conf -- Asterisk ODBC resource configuration
michael@310 876 ;;
michael@310 877
michael@310 878 [ENV]
michael@310 879
michael@310 880 [asterisk-sqlite]
michael@310 881 enabled = no
michael@310 882 dsn = asterisk-sqlite
michael@310 883 username =
michael@310 884 password =
michael@310 885 pre-connect = no
michael@310 886 sanitysql = SELECT 1
michael@310 887 ;idlecheck = 3600
michael@310 888 backslash_is_escape= yes
michael@310 889 share_connections = yes
michael@310 890 limit = 10
michael@310 891
michael@310 892 </file>
michael@310 893 <file name="func_odbc.conf">
michael@310 894 ;;
michael@310 895 ;; func_odbc.conf -- Asterisk ODBC dialplan function configuration
michael@310 896 ;;
michael@310 897
michael@310 898 ; SQLite-based Asterisk Database Access (random SQL access)
michael@310 899 ; Set(<variable_name>=${ASTDB_SQL(SELECT [...])})
michael@310 900 ; Set(ASTDB_SQL(UPDATE [...]))
michael@310 901 [SQL]
michael@310 902 prefix = ASTDB
michael@310 903 dsn = asterisk-sqlite
michael@310 904 readsql = ${ARG1}
michael@310 905 writesql = ${ARG1}
michael@310 906
michael@310 907 ; SQLite-based Asterisk Database Access (fixed key/value access)
michael@310 908 ; Set(<variable_name>=${ASTDB_MAP(<key>)})
michael@310 909 ; Set(ASTDB_MAP(<key>)=<value>)
michael@310 910 [MAP]
michael@310 911 prefix = ASTDB
michael@310 912 dsn = asterisk-sqlite
michael@310 913 readsql = SELECT val FROM map WHERE key='${SQL_ESC(${ARG1})}'
michael@310 914 writesql = UPDATE map SET val='${SQL_ESC(${VAL1})}' WHERE key='${SQL_ESC(${ARG1})}'
michael@310 915 escapecommas = no
michael@310 916
michael@310 917 </file>
michael@310 918 <file name="asterisk.pem">
michael@310 919 -----BEGIN CERTIFICATE-----
michael@310 920 MIIDNjCCAp+gAwIBAgIBATANBgkqhkiG9w0BAQQFADCBqTELMAkGA1UEBhMCWFkx
michael@310 921 FTATBgNVBAgTDFNuYWtlIERlc2VydDETMBEGA1UEBxMKU25ha2UgVG93bjEXMBUG
michael@310 922 A1UEChMOU25ha2UgT2lsLCBMdGQxHjAcBgNVBAsTFUNlcnRpZmljYXRlIEF1dGhv
michael@310 923 cml0eTEVMBMGA1UEAxMMU25ha2UgT2lsIENBMR4wHAYJKoZIhvcNAQkBFg9jYUBz
michael@310 924 bmFrZW9pbC5kb20wHhcNOTkxMDIxMTgyMTUxWhcNMDExMDIwMTgyMTUxWjCBpzEL
michael@310 925 MAkGA1UEBhMCWFkxFTATBgNVBAgTDFNuYWtlIERlc2VydDETMBEGA1UEBxMKU25h
michael@310 926 a2UgVG93bjEXMBUGA1UEChMOU25ha2UgT2lsLCBMdGQxFzAVBgNVBAsTDldlYnNl
michael@310 927 cnZlciBUZWFtMRkwFwYDVQQDExB3d3cuc25ha2VvaWwuZG9tMR8wHQYJKoZIhvcN
michael@310 928 AQkBFhB3d3dAc25ha2VvaWwuZG9tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
michael@310 929 gQC554Ro+VH0dJONqljPBW+C72MDNGNy9eXnzejXrczsHs3Pc92Vaat6CpIEEGue
michael@310 930 yG29xagb1o7Gj2KRgpVYcmdx6tHd2JkFW5BcFVfWXL42PV4rf9ziYon8jWsbK2aE
michael@310 931 +L6hCtcbxdbHOGZdSIWZJwc/1Vs70S/7ImW+Zds8YEFiAwIDAQABo24wbDAbBgNV
michael@310 932 HREEFDASgRB3d3dAc25ha2VvaWwuZG9tMDoGCWCGSAGG+EIBDQQtFittb2Rfc3Ns
michael@310 933 IGdlbmVyYXRlZCBjdXN0b20gc2VydmVyIGNlcnRpZmljYXRlMBEGCWCGSAGG+EIB
michael@310 934 AQQEAwIGQDANBgkqhkiG9w0BAQQFAAOBgQB6MRsYGTXUR53/nTkRDQlBdgCcnhy3
michael@310 935 hErfmPNl/Or5jWOmuufeIXqCvM6dK7kW/KBboui4pffIKUVafLUMdARVV6BpIGMI
michael@310 936 5LmVFK3sgwuJ01v/90hCt4kTWoT8YHbBLtQh7PzWgJoBAY7MJmjSguYCRt91sU4K
michael@310 937 s0dfWsdItkw4uQ==
michael@310 938 -----END CERTIFICATE-----
michael@310 939 -----BEGIN RSA PRIVATE KEY-----
michael@310 940 MIICXgIBAAKBgQC554Ro+VH0dJONqljPBW+C72MDNGNy9eXnzejXrczsHs3Pc92V
michael@310 941 aat6CpIEEGueyG29xagb1o7Gj2KRgpVYcmdx6tHd2JkFW5BcFVfWXL42PV4rf9zi
michael@310 942 Yon8jWsbK2aE+L6hCtcbxdbHOGZdSIWZJwc/1Vs70S/7ImW+Zds8YEFiAwIDAQAB
michael@310 943 AoGBAKTvnFGKSkUJnNQGe66I0wunGgCA3W7kbarAzEF2qKYhGlZhJQnn68RmVnAW
michael@310 944 pXUFvB+vmtu/+4J9OmWBJsGHFvC9xH32a0PWNr7APjAKrjAD8GWS7Z6BjuxN8QhD
michael@310 945 WlFMmpYhYIjT1jt7RNfs2gJGS2Ryu3zutUQGwtUB9Pou03dJAkEA6yttwVINFqQP
michael@310 946 utgUZ1JUHrN/rE73FzYsF/CwJp5d3rLHenZzLT0iW+kNDLUw/VpzYxK7bF2Qrt/3
michael@310 947 QIUWwm2InQJBAMpe+jhNMJeLDLc3tG3zeithT0mFkuzWWmT2PJgQ0V78UWhw/fSn
michael@310 948 Qqnq7KBY/DNjlfhezrozLDD73/ccmha0Ax8CQQCBaBlyOtNm9QqO116K6HvPlRiZ
michael@310 949 Wa6QQEgNOG3GInknFZu9ILcKWsywZNLAfmgh0gcSqnkmDWqTQD0PbOz0Ok/lAkEA
michael@310 950 g24JrfUbwOASww9PhDUju/a36rTwhhZ0oKt3EP+jKsBOErmHhZP3bKlhQoZoTOu5
michael@310 951 Y5QXSMChS7LZcwDFZkdE2wJATRgMbhErif+ZRwt9XJRdCo5Sx6ewyGyxjc5gvUyK
michael@310 952 KegHcgru/ZC3pGlujRD2LqxgJNAn5QTdW4LK8xVPFySTYg==
michael@310 953 -----END RSA PRIVATE KEY-----
michael@310 954 </file>

mercurial