asterisk/asterisk.txt

Sun, 20 Mar 2011 20:03:11 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 20 Mar 2011 20:03:11 +0100
changeset 311
263143ec0fb2
parent 310
73d852a30c9a
child 347
10bd406e1c51
permissions
-rw-r--r--

Update and completely overhaul packaging and build configuration.

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

mercurial