asterisk/asterisk.txt

Sun, 20 Mar 2011 20:00:02 +0100

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

Resynchronize with upstream package maintainer version.

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@310 108 slbindport = 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@310 235 <file name="extensions.conf">
michael@310 236 ;;
michael@310 237 ;; extensions.conf -- Asterisk inbound & outbound call configuration
michael@310 238 ;;
michael@310 239
michael@310 240 [general]
michael@310 241 static = yes
michael@310 242 writeprotect = yes
michael@310 243 autofallthrough = yes
michael@310 244
michael@310 245 [globals]
michael@310 246 MEETME_SPOOLDIR = @l_prefix@/var/asterisk/spool/meetme
michael@310 247 STAFF = SIP/foo&SIP/bar
michael@310 248 CONSOLE = Console/dsp
michael@310 249 DOLLAR = $
michael@310 250
michael@310 251 ;;
michael@310 252 ;; SPECIAL CONTEXTS
michael@310 253 ;;
michael@310 254
michael@310 255 [macro-dial]
michael@310 256 exten = s,1,Dial(${ARG1},${ARG2},${ARG3})
michael@310 257 exten = s,n,Goto(s-${DIALSTATUS},1)
michael@310 258 exten = s-ANSWER,1,Hangup
michael@310 259 exten = s-BUSY,1,GotoIf($["${ARG4}" == ""]?novm)
michael@310 260 exten = s-BUSY,n,GotoIf($[${MAILBOX_EXISTS(${ARG4})} == 0]?novm)
michael@310 261 exten = s-BUSY,n,VoiceMail(${ARG4},b)
michael@310 262 exten = s-BUSY,n,Playback(vm-goodbye)
michael@310 263 exten = s-BUSY,n(novm),Hangup
michael@310 264 exten = s-NOANSWER,1,GotoIf($["${ARG4}" == ""]?novm)
michael@310 265 exten = s-NOANSWER,n,MailboxExists(${ARG4})
michael@310 266 exten = s-NOANSWER,n,GotoIf($[${MAILBOX_EXISTS(${ARG4})} == 0]?novm)
michael@310 267 exten = s-NOANSWER,n,VoiceMail(${ARG4},u)
michael@310 268 exten = s-NOANSWER,n,Playback(vm-goodbye)
michael@310 269 exten = s-NOANSWER,n(novm),Hangup
michael@310 270 exten = _s-.,1,Goto(s-NOANSWER,1)
michael@310 271
michael@310 272 [default]
michael@310 273 ; currently empty
michael@310 274
michael@310 275 ;;
michael@310 276 ;; EXTERNAL DIAL CONTEXT
michael@310 277 ;;
michael@310 278
michael@310 279 [external]
michael@310 280 include = default
michael@310 281
michael@310 282 ; external incoming SIP connection
michael@310 283 exten = example,hint,${STAFF}
michael@310 284 exten = example,1,Goto(s,1)
michael@310 285 exten = s,n,Ringing
michael@310 286 exten = s,n,Wait(1)
michael@310 287 exten = s,n,Answer
michael@310 288 exten = s,n,Macro(dial,${STAFF},30,gTtr,1@external)
michael@310 289
michael@310 290 ; external to internal mapping
michael@310 291 exten = foo,hint,SIP/foo
michael@310 292 exten = foo,1,Goto(internal,foo,1)
michael@310 293 exten = bar,hint,SIP/bar
michael@310 294 exten = bar,1,Goto(internal,bar,1)
michael@310 295
michael@310 296 ;;
michael@310 297 ;; INTERNAL DIAL CONTEXT
michael@310 298 ;;
michael@310 299
michael@310 300 [internal]
michael@310 301 include = default
michael@310 302 ;include = parkedcalls
michael@310 303
michael@310 304 ; internal to external mapping
michael@310 305 exten = example,1,Goto(external,example,1)
michael@310 306
michael@310 307 ; internal user <foo> #11
michael@310 308 exten = foo,hint,SIP/foo
michael@310 309 exten = foo,1,Goto(11,1)
michael@310 310 exten = 11,hint,SIP/foo
michael@310 311 exten = 11,1,Macro(dial,SIP/foo,30,gTtr,11@internal)
michael@310 312
michael@310 313 ; internal user <bar> #12
michael@310 314 exten = bar,hint,SIP/bar
michael@310 315 exten = bar,1,Goto(12,1)
michael@310 316 exten = 12,hint,SIP/bar
michael@310 317 exten = 12,1,Macro(dial,SIP/bar,30,gTtr,12@internal)
michael@310 318
michael@310 319 ; internal group <all> #20
michael@310 320 exten = all,1,Goto(20,1)
michael@310 321 exten = 20/foo,1,Macro(dial,SIP/bar,60,)
michael@310 322 exten = 20/bar,1,Macro(dial,SIP/foo,60,)
michael@310 323
michael@310 324 ; internal service <conference> #7<n>
michael@310 325 exten = conference,1,Goto(70,1)
michael@310 326 exten = _7[0-9],1,Set(confno=${EXTEN:1})
michael@310 327 exten = _7[0-9],n,Goto(7,enter)
michael@310 328 exten = 7,1,Set(TIMEOUT(digit)=3)
michael@310 329 exten = 7,n,Set(TIMEOUT(response)=6)
michael@310 330 exten = 7,n(repeat),Read(confno,conf-getconfno,3)
michael@310 331 exten = 7,n,GotoIf($[${confno} >= 0 & ${confno} <= 9]?enter)
michael@310 332 exten = 7,n,Playback(conf-invalid)
michael@310 333 exten = 7,n,Goto(repeat)
michael@310 334 exten = 7,n(enter),Playback(conf-placeintoconf)
michael@310 335 exten = 7,n,SayNumber(${confno})
michael@310 336 exten = 7,n,Set(SPYGROUP=conference-${confno})
michael@310 337 exten = 7,n,Set(confopt=cCpsMvio)
michael@310 338 exten = 7,n,GotoIf($[${confno} >= 4 & ${confno} <= 9]?l1:l2)
michael@310 339 exten = 7,n(l1),Set(confopt=${confopt}i)
michael@310 340 exten = 7,n(l2),GotoIf($[${confno} >= 7 & ${confno} <= 9]?l3:l4)
michael@310 341 exten = 7,n(l3),Set(confopt=${confopt}r)
michael@310 342 exten = 7,n,Set(MEETME_RECORDINGFILE=${MEETME_SPOOLDIR}/meetme-conference-${confno}-${STRFTIME(${EPOCH},UTC,%Y%m%d%H%M)})
michael@310 343 exten = 7,n,Set(MEETME_RECORDINGFORMAT=wav49)
michael@310 344 exten = 7,n,Playback(this-call-may-be-monitored-or-recorded)
michael@310 345 exten = 7,n(l4),MeetMe(${confno},${confopt})
michael@310 346 exten = 7,n,Playback(beep)
michael@310 347 exten = 7,n,Wait(1)
michael@310 348 exten = 7,n,Playback(vm-goodbye)
michael@310 349 exten = 7,n,Hangup
michael@310 350
michael@310 351 ; internal service <voicemail> #80/#*80<n>
michael@310 352 exten = voicemail,1,Goto(80,1)
michael@310 353 exten = 80,1,GotoIf($[${MAILBOX_EXISTS(${CALLERID(num)}@internal)} == 0]?novm)
michael@310 354 exten = 80,n,VoiceMailMain(${CALLERID(num)}@internal,s)
michael@310 355 exten = 80,n,Hangup
michael@310 356 exten = 80,n(novm),Playback(invalid)
michael@310 357 exten = 80,n,Hangup
michael@310 358 exten = _*80.,1,GotoIf($[${MAILBOX_EXISTS(${EXTEN:3}@internal)} == 0]?novm)
michael@310 359 exten = _*80.,n,VoiceMailMain(${EXTEN:3}@internal)
michael@310 360 exten = _*80.,n,Hangup
michael@310 361 exten = _*80.,n(novm),Playback(invalid)
michael@310 362 exten = _*80.,n,Hangup
michael@310 363
michael@310 364 ; internal service <echo> #81
michael@310 365 exten = echo,1,Goto(81,1)
michael@310 366 exten = 81,1,Answer
michael@310 367 exten = 81,n,Playback(demo-echotest)
michael@310 368 exten = 81,n,Wait(1)
michael@310 369 exten = 81,n,Playback(beep)
michael@310 370 exten = 81,n,Echo
michael@310 371 exten = 81,n,Wait(1)
michael@310 372 exten = 81,n,Playback(demo-echodone)
michael@310 373 exten = 81,n,Wait(1)
michael@310 374 exten = 81,n,Playback(vm-goodbye)
michael@310 375 exten = 81,n,Hangup
michael@310 376
michael@310 377 ; internal service <reload> #82
michael@310 378 exten = reload,1,Goto(82,1)
michael@310 379 exten = 82,1,Answer
michael@310 380 exten = 82,n,Read(pin,conf-getpin,4)
michael@310 381 exten = 82,n,GotoIf($[${pin} = 1234]?ok)
michael@310 382 exten = 82,n,Playback(conf-invalidpin)
michael@310 383 exten = 82,n,Hangup
michael@310 384 exten = 82,n(ok),Playback(beep)
michael@310 385 exten = 82,n,Wait(1)
michael@310 386 exten = 82,n,Playback(beep)
michael@310 387 exten = 82,n,Wait(1)
michael@310 388 exten = 82,n,Playback(beep)
michael@310 389 exten = 82,n,Wait(1)
michael@310 390 exten = 82,n,System(@l_prefix@/sbin/asterisk -rx reload)
michael@310 391 exten = 82,n,Hangup
michael@310 392
michael@310 393 ; external outgoing ISDN (via SIP-to-ISDN gateway call-through)
michael@310 394 ;exten = _0.,1,Set(number=${EXTEN:1})
michael@310 395 ;exten = _0.,n,Set(enum=${ENUMLOOKUP(+${number},ALL)})
michael@310 396 ;exten = _0.,n,Set(enum_is_sip_url=${REGEX("^SIP/.+" ${enum})})
michael@310 397 ;exten = _0.,n,GotoIf($["${enum_is_sip_url}" = "1"]?sip:isdn)
michael@310 398 ;exten = _0.,n(sip),Dial(${enum},60,o)
michael@310 399 ;exten = _0.,n,Goto(_0.,7)
michael@310 400 ;exten = _0.,n(isdn),Dial(SIP/gw,60,D(w1234w0#31#${number}#))
michael@310 401 ;exten = _0.,n,Hangup
michael@310 402
michael@310 403 ; internal outgoing SIP call (part 1/2)
michael@310 404 ; (notice sort-order trickery!)
michael@310 405 include = internal-siponly
michael@310 406
michael@310 407 [internal-siponly]
michael@310 408 ; internal outgoing SIP call (part 2/2)
michael@310 409 ; (notice sort-order trickery!)
michael@310 410 exten = _.[@].,1,Dial(SIP/${EXTEN}@${SIPDOMAIN},60,o)
michael@310 411 exten = _.[@].,n,Hangup
michael@310 412 exten = _.[@].,102,Busy
michael@310 413
michael@310 414 </file>
michael@310 415 <file name="enum.conf">
michael@310 416 ;;
michael@310 417 ;; enum.conf -- Asterisk ENUM configuration
michael@310 418 ;;
michael@310 419
michael@310 420 [general]
michael@310 421 search = e164.arpa
michael@310 422 search = e164.org
michael@310 423
michael@310 424 </file>
michael@310 425 <file name="musiconhold.conf">
michael@310 426 ;;
michael@310 427 ;; musiconhold.conf -- Asterisk music-on-hold configuration
michael@310 428 ;;
michael@310 429
michael@310 430 [default]
michael@310 431 mode = files
michael@310 432 directory = @l_prefix@/share/asterisk/moh
michael@310 433
michael@310 434 </file>
michael@310 435 <file name="voicemail.conf">
michael@310 436 ;;
michael@310 437 ;; voicemail.conf -- Asterisk voice mail configuration
michael@310 438 ;;
michael@310 439
michael@310 440 [general]
michael@310 441 format = wav49
michael@310 442 serveremail = example@example.com
michael@310 443 attach = yes
michael@310 444 maxmsg = 20
michael@310 445 maxsecs = 180
michael@310 446 minsecs = 3
michael@310 447 maxgreet = 60
michael@310 448 skipms = 3000
michael@310 449 maxsilence = 10
michael@310 450 silencethreshold = 128
michael@310 451 maxlogins = 3
michael@310 452 charset = ISO-8859-1
michael@310 453 pbxskip = yes
michael@310 454 fromstring = Asterisk PBX
michael@310 455 usedirectory = yes
michael@310 456 emailsubject = [PBX]: New voice message ${VM_MSGNUM} in mailbox ${VM_MAILBOX}
michael@310 457 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 458 pagerfromstring = Asterisk PBX
michael@310 459 pagersubject = New VM
michael@310 460 pagerbody = New ${VM_DUR} long msg in box ${VM_MAILBOX}\nfrom ${VM_CALLERID}, on ${VM_DATE}
michael@310 461 emaildateformat = %A, %d %B %Y %H:%M:%S %r
michael@310 462 mailcmd = @l_prefix@/sbin/sendmail -t
michael@310 463
michael@310 464 [default]
michael@310 465
michael@310 466 [external]
michael@310 467 1 = 1234,Example,example@example.com,,delete=yes
michael@310 468
michael@310 469 [internal]
michael@310 470 11 = 1234,Mr. Foo,foo@example.com,,delete=no
michael@310 471 12 = 1234,Mr. Bar,bar@example.com,,delete=no
michael@310 472
michael@310 473 </file>
michael@310 474 <file name="cdr.conf">
michael@310 475 ;;
michael@310 476 ;; cdr.conf -- Asterisk Call Detail Record (CDR) configuration
michael@310 477 ;;
michael@310 478
michael@310 479 [general]
michael@310 480 enable = yes
michael@310 481 unanswered = no
michael@310 482 batch = no
michael@310 483 size = 100
michael@310 484 time = 300
michael@310 485 scheduleronly = no
michael@310 486 safeshutdown = yes
michael@310 487 endbeforehexten = yes
michael@310 488
michael@310 489 </file>
michael@310 490 <file name="cdr_custom.conf">
michael@310 491 ;;
michael@310 492 ;; cdr_custom.conf -- Asterisk Call Detail Record (CDR) via Comma Separated Value (CSV) format configuration
michael@310 493 ;;
michael@310 494
michael@310 495 [mappings]
michael@310 496 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 497
michael@310 498 </file>
michael@310 499 <file name="cdr_sqlite3_custom.conf">
michael@310 500 ;;
michael@310 501 ;; cdr_sqlite3_custom.conf -- Asterisk Call Detail Record (CDR) via SQLite RDBMS format configuration
michael@310 502 ;;
michael@310 503
michael@310 504 [master]
michael@310 505 table = cdr
michael@310 506 columns = start, answer, end, duration, billsec, clid, src, dst, dcontext, channel, dstchannel, lastapp, lastdata, disposition, amaflags, accountcode, uniqueid, userfield
michael@310 507 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 508
michael@310 509 </file>
michael@310 510 <file name="cdr_manager.conf">
michael@310 511 ;;
michael@310 512 ;; cdr_manager.conf -- Asterisk Call Detail Record (CDR) via Asterisk Manager Interface (AMI) configuration
michael@310 513 ;;
michael@310 514
michael@310 515 [general]
michael@310 516 enabled = yes
michael@310 517
michael@310 518 </file>
michael@310 519 <file name="meetme.conf">
michael@310 520 ;;
michael@310 521 ;; meetme.conf -- Asterisk conference configuration
michael@310 522 ;;
michael@310 523
michael@310 524 [general]
michael@310 525 audiobuffers = 32
michael@310 526 ;schedule = yes
michael@310 527 ;logmembercount = yes
michael@310 528 ;fuzzystart = 300
michael@310 529 ;earlyalert = 3600
michael@310 530 ;endalert = 120
michael@310 531
michael@310 532 [rooms]
michael@310 533 conf = 0
michael@310 534 conf = 1
michael@310 535 conf = 2
michael@310 536 conf = 3
michael@310 537 conf = 4
michael@310 538 conf = 5
michael@310 539 conf = 6
michael@310 540 conf = 7
michael@310 541 conf = 8
michael@310 542 conf = 9,1234,1234
michael@310 543
michael@310 544 </file>
michael@310 545 <file name="codecs.conf">
michael@310 546 ;;
michael@310 547 ;; codecs.conf -- Asterisk codec configuration
michael@310 548 ;;
michael@310 549
michael@310 550 [speex]
michael@310 551 quality = 6
michael@310 552 complexity = 4
michael@310 553 enhancement = true
michael@310 554 vad = true
michael@310 555 vbr = true
michael@310 556 abr = 8000
michael@310 557 vbr_quality = 5
michael@310 558 dtx = false
michael@310 559 preprocess = false
michael@310 560 pp_vad = false
michael@310 561 pp_agc = false
michael@310 562 pp_agc_level = 8000
michael@310 563 pp_denoise = false
michael@310 564 pp_dereverb = false
michael@310 565 pp_dereverb_decay = 0.4
michael@310 566 pp_dereverb_level = 0.3
michael@310 567
michael@310 568 [plc]
michael@310 569 genericplc = true
michael@310 570
michael@310 571 </file>
michael@310 572 <file name="chan_dahdi.conf">
michael@310 573 ;;
michael@310 574 ;; chan_dahdi.conf -- Asterisk DAHDI channel configuration
michael@310 575 ;;
michael@310 576
michael@310 577 ; (an empty configuration is ok, but required even for DAHDI "dahdidummy" only)
michael@310 578 [trunkgroups]
michael@310 579 [channels]
michael@310 580
michael@310 581 </file>
michael@310 582 <file name="capi.conf">
michael@310 583 ;;
michael@310 584 ;; capi.conf -- Asterisk ISDN/CAPI channel configuration
michael@310 585 ;;
michael@310 586
michael@310 587 [general]
michael@310 588 nationalprefix = 0
michael@310 589 internationalprefix= 00
michael@310 590 rxgain = 1.0
michael@310 591 txgain = 1.0
michael@310 592 ulaw = no
michael@310 593 debug = yes
michael@310 594
michael@310 595 [ISDN1]
michael@310 596 isdnmode = msn
michael@310 597 incomingmsn = *
michael@310 598 controller = 0
michael@310 599 group = 1
michael@310 600 ;prefix = 0
michael@310 601 softdtmf = off
michael@310 602 relaxdtmf = off
michael@310 603 accountcode =
michael@310 604 context = external
michael@310 605 holdtype = local
michael@310 606 ;immediate = yes
michael@310 607 echocancel = no
michael@310 608 echosquelch = no
michael@310 609 ;echotail = 64
michael@310 610 ;bridge = yes
michael@310 611 ;callgroup = 1
michael@310 612 ;deflect = 1234567
michael@310 613 devices = 2
michael@310 614 ;dtmf_generate = yes
michael@310 615
michael@310 616 </file>
michael@310 617 <file name="features.conf">
michael@310 618 ;;
michael@310 619 ;; features.conf -- Asterisk Call Features configuration
michael@310 620 ;;
michael@310 621
michael@310 622 [general]
michael@310 623 ;parkext = 700
michael@310 624 ;parkpos = 701-720
michael@310 625 ;context = parkedcalls
michael@310 626
michael@310 627 </file>
michael@310 628 <file name="jabber.conf">
michael@310 629 ;;
michael@310 630 ;; jabber.conf -- Asterisk Jabber configuration
michael@310 631 ;;
michael@310 632
michael@310 633 [general]
michael@310 634 ;debug = yes
michael@310 635 ;autoprune = yes
michael@310 636 ;autoregister = yes
michael@310 637
michael@310 638 ;[asterisk]
michael@310 639 ;type = client
michael@310 640 ;serverhost = jabber.example.com
michael@310 641 ;username = asterisk@example.com/asterisk
michael@310 642 ;secret = asterisk
michael@310 643 ;priority = 1
michael@310 644 ;port = 5222
michael@310 645 ;usetls = no
michael@310 646 ;usesasl = no
michael@310 647 ;buddy = buddy@example.com
michael@310 648 ;status = available
michael@310 649 ;timeout = 100
michael@310 650
michael@310 651 </file>
michael@310 652 <file name="indications.conf">
michael@310 653 ;;
michael@310 654 ;; indications.conf -- Asterisk Tone Indications
michael@310 655 ;;
michael@310 656
michael@310 657 [general]
michael@310 658 country = us
michael@310 659
michael@310 660 ; United States
michael@310 661 ; (according to tones in North America)
michael@310 662 [us]
michael@310 663 description = United States (US)
michael@310 664 ringcadence = 2000,4000
michael@310 665 dial = 350+440
michael@310 666 busy = 480+620/500,0/500
michael@310 667 ring = 440+480/2000,0/4000
michael@310 668 congestion = 480+620/250,0/250
michael@310 669 callwaiting = 440/300,0/10000
michael@310 670 dialrecall = !350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440
michael@310 671 record = 1400/500,0/15000
michael@310 672 info = !950/330,!1400/330,!1800/330,0
michael@310 673 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 674
michael@310 675 ; United Kingdom
michael@310 676 ; (partly according to BT SIN350)
michael@310 677 [uk]
michael@310 678 description = United Kingdom (UK)
michael@310 679 ringcadence = 400,200,400,2000
michael@310 680 dial = 350+440
michael@310 681 busy = 400/375,0/375
michael@310 682 ring = 400+450/400,0/200,400+450/400,0/2000
michael@310 683 congestion = 400/400,0/350,400/225,0/525
michael@310 684 callwaiting = 400/100,0/4000
michael@310 685 dialrecall = !350+440/100,!0/100,!350+440/100,!0/100,!350+440/100,!0/100,350+440
michael@310 686 record = 1400/500,0/60000
michael@310 687 info = 950/330,0/15,1400/330,0/15,1800/330,0/1000
michael@310 688 stutter = 350+440/750,440/750
michael@310 689
michael@310 690 ; Germany
michael@310 691 ; (according to http://www.itu.int/ITU-T/inr/forms/files/tones-0203.pdf)
michael@310 692 [de]
michael@310 693 description = Germany (DE)
michael@310 694 ringcadence = 1000,4000
michael@310 695 dial = 425
michael@310 696 busy = 425/480,0/480
michael@310 697 ring = 425/1000,0/4000
michael@310 698 congestion = 425/240,0/240
michael@310 699 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 700 dialrecall = !425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425
michael@310 701 record = 1400/80,0/15000
michael@310 702 info = 950/330,1400/330,1800/330,0/1000
michael@310 703 stutter = 425+400
michael@310 704
michael@310 705 </file>
michael@310 706 <file name="res_odbc.conf">
michael@310 707 ;;
michael@310 708 ;; res_odbc.conf -- Asterisk ODBC resource configuration
michael@310 709 ;;
michael@310 710
michael@310 711 [ENV]
michael@310 712
michael@310 713 [asterisk-sqlite]
michael@310 714 enabled = no
michael@310 715 dsn = asterisk-sqlite
michael@310 716 username =
michael@310 717 password =
michael@310 718 pre-connect = no
michael@310 719 sanitysql = SELECT 1
michael@310 720 ;idlecheck = 3600
michael@310 721 backslash_is_escape= yes
michael@310 722 share_connections = yes
michael@310 723 limit = 10
michael@310 724
michael@310 725 </file>
michael@310 726 <file name="func_odbc.conf">
michael@310 727 ;;
michael@310 728 ;; func_odbc.conf -- Asterisk ODBC dialplan function configuration
michael@310 729 ;;
michael@310 730
michael@310 731 ; SQLite-based Asterisk Database Access (random SQL access)
michael@310 732 ; Set(<variable_name>=${ASTDB_SQL(SELECT [...])})
michael@310 733 ; Set(ASTDB_SQL(UPDATE [...]))
michael@310 734 [SQL]
michael@310 735 prefix = ASTDB
michael@310 736 dsn = asterisk-sqlite
michael@310 737 readsql = ${ARG1}
michael@310 738 writesql = ${ARG1}
michael@310 739
michael@310 740 ; SQLite-based Asterisk Database Access (fixed key/value access)
michael@310 741 ; Set(<variable_name>=${ASTDB_MAP(<key>)})
michael@310 742 ; Set(ASTDB_MAP(<key>)=<value>)
michael@310 743 [MAP]
michael@310 744 prefix = ASTDB
michael@310 745 dsn = asterisk-sqlite
michael@310 746 readsql = SELECT val FROM map WHERE key='${SQL_ESC(${ARG1})}'
michael@310 747 writesql = UPDATE map SET val='${SQL_ESC(${VAL1})}' WHERE key='${SQL_ESC(${ARG1})}'
michael@310 748 escapecommas = no
michael@310 749
michael@310 750 </file>
michael@310 751 <file name="asterisk.pem">
michael@310 752 -----BEGIN CERTIFICATE-----
michael@310 753 MIIDNjCCAp+gAwIBAgIBATANBgkqhkiG9w0BAQQFADCBqTELMAkGA1UEBhMCWFkx
michael@310 754 FTATBgNVBAgTDFNuYWtlIERlc2VydDETMBEGA1UEBxMKU25ha2UgVG93bjEXMBUG
michael@310 755 A1UEChMOU25ha2UgT2lsLCBMdGQxHjAcBgNVBAsTFUNlcnRpZmljYXRlIEF1dGhv
michael@310 756 cml0eTEVMBMGA1UEAxMMU25ha2UgT2lsIENBMR4wHAYJKoZIhvcNAQkBFg9jYUBz
michael@310 757 bmFrZW9pbC5kb20wHhcNOTkxMDIxMTgyMTUxWhcNMDExMDIwMTgyMTUxWjCBpzEL
michael@310 758 MAkGA1UEBhMCWFkxFTATBgNVBAgTDFNuYWtlIERlc2VydDETMBEGA1UEBxMKU25h
michael@310 759 a2UgVG93bjEXMBUGA1UEChMOU25ha2UgT2lsLCBMdGQxFzAVBgNVBAsTDldlYnNl
michael@310 760 cnZlciBUZWFtMRkwFwYDVQQDExB3d3cuc25ha2VvaWwuZG9tMR8wHQYJKoZIhvcN
michael@310 761 AQkBFhB3d3dAc25ha2VvaWwuZG9tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
michael@310 762 gQC554Ro+VH0dJONqljPBW+C72MDNGNy9eXnzejXrczsHs3Pc92Vaat6CpIEEGue
michael@310 763 yG29xagb1o7Gj2KRgpVYcmdx6tHd2JkFW5BcFVfWXL42PV4rf9ziYon8jWsbK2aE
michael@310 764 +L6hCtcbxdbHOGZdSIWZJwc/1Vs70S/7ImW+Zds8YEFiAwIDAQABo24wbDAbBgNV
michael@310 765 HREEFDASgRB3d3dAc25ha2VvaWwuZG9tMDoGCWCGSAGG+EIBDQQtFittb2Rfc3Ns
michael@310 766 IGdlbmVyYXRlZCBjdXN0b20gc2VydmVyIGNlcnRpZmljYXRlMBEGCWCGSAGG+EIB
michael@310 767 AQQEAwIGQDANBgkqhkiG9w0BAQQFAAOBgQB6MRsYGTXUR53/nTkRDQlBdgCcnhy3
michael@310 768 hErfmPNl/Or5jWOmuufeIXqCvM6dK7kW/KBboui4pffIKUVafLUMdARVV6BpIGMI
michael@310 769 5LmVFK3sgwuJ01v/90hCt4kTWoT8YHbBLtQh7PzWgJoBAY7MJmjSguYCRt91sU4K
michael@310 770 s0dfWsdItkw4uQ==
michael@310 771 -----END CERTIFICATE-----
michael@310 772 -----BEGIN RSA PRIVATE KEY-----
michael@310 773 MIICXgIBAAKBgQC554Ro+VH0dJONqljPBW+C72MDNGNy9eXnzejXrczsHs3Pc92V
michael@310 774 aat6CpIEEGueyG29xagb1o7Gj2KRgpVYcmdx6tHd2JkFW5BcFVfWXL42PV4rf9zi
michael@310 775 Yon8jWsbK2aE+L6hCtcbxdbHOGZdSIWZJwc/1Vs70S/7ImW+Zds8YEFiAwIDAQAB
michael@310 776 AoGBAKTvnFGKSkUJnNQGe66I0wunGgCA3W7kbarAzEF2qKYhGlZhJQnn68RmVnAW
michael@310 777 pXUFvB+vmtu/+4J9OmWBJsGHFvC9xH32a0PWNr7APjAKrjAD8GWS7Z6BjuxN8QhD
michael@310 778 WlFMmpYhYIjT1jt7RNfs2gJGS2Ryu3zutUQGwtUB9Pou03dJAkEA6yttwVINFqQP
michael@310 779 utgUZ1JUHrN/rE73FzYsF/CwJp5d3rLHenZzLT0iW+kNDLUw/VpzYxK7bF2Qrt/3
michael@310 780 QIUWwm2InQJBAMpe+jhNMJeLDLc3tG3zeithT0mFkuzWWmT2PJgQ0V78UWhw/fSn
michael@310 781 Qqnq7KBY/DNjlfhezrozLDD73/ccmha0Ax8CQQCBaBlyOtNm9QqO116K6HvPlRiZ
michael@310 782 Wa6QQEgNOG3GInknFZu9ILcKWsywZNLAfmgh0gcSqnkmDWqTQD0PbOz0Ok/lAkEA
michael@310 783 g24JrfUbwOASww9PhDUju/a36rTwhhZ0oKt3EP+jKsBOErmHhZP3bKlhQoZoTOu5
michael@310 784 Y5QXSMChS7LZcwDFZkdE2wJATRgMbhErif+ZRwt9XJRdCo5Sx6ewyGyxjc5gvUyK
michael@310 785 KegHcgru/ZC3pGlujRD2LqxgJNAn5QTdW4LK8xVPFySTYg==
michael@310 786 -----END RSA PRIVATE KEY-----
michael@310 787 </file>

mercurial