; ; Static extension configuration files, used by ; the pbx_config module. ; ; The "General" category is for certain variables. ; [general] ; ; If static is set to no, or omitted, then the pbx_config will rewrite ; this file when extensions are modified. Remember that all comments ; made in the file will be lost when that happens. ; ; XXX Not yet implemented XXX ; static=yes ; ; if static=yes and writeprotect=no, you can save dialplan by ; CLI command 'save dialplan' too ; writeprotect=no ; ; The "Globals" category contains global variables that can be referenced ; in the dialplan with ${VARIABLE} or ${ENV(VARIABLE)} for Environmental variable ; ${${VARIABLE}} or ${text${VARIABLE}} or any hybrid ; [globals] ;CONSOLE=Console/dsp ; Console interface for demo ;CONSOLE=Zap/2 ;CONSOLE=Phone/phone0 ;IAXINFO=guest ; IAXtel username/password ;IAXINFO=heison:kk716847 ; IAXtel account for 17001999612 ;IAXINFO=bartlett:kk716847 ; IAXtel account for 17008874694 ;TRUNK=Zap/g2 ; Trunk interface ;TRUNK=Zap/1 ; Trunk interface via POTS TRUNK=Zap/g1 ; Trunk interface via POTS ;NUFONE=IAX2/heison@NuFone ; Trunk interface via NuFone NUFONE=IAX2/heison@switch-2 ; Trunk interface via NuFone IAXTEL=IAX2/bartlett:kk716847@iaxtel.com ; Trunk interface via iaxtel SIMPLE=IAX2/heison359:kk716847@iax.simpletelecom.com ;TRUNK=IAX2/user:pass@provider FWDUSERID=218889 FWDUSERNAME=Heison Chak HEISON=SIP/cisco1 ;BEDROOM=SIP/grandstream2 FAMILY=SIP/grandstream1 CLARA=SIP/cisco2 GUESTRM=Zap/3 KITCHEN=Zap/4 FAX=Zap/5 BEDROOM=IAX2/iaxy@iaxy HEISON_EXT=${HEISON}&${KITCHEN}&${BEDROOM} CLARA_EXT=${CLARA}&${BEDROOM}&${FAMILY}&${KITCHEN} ALL_EXT=${HEISON}&${BEDROOM}&${FAMILY}&${CLARA}&${KITCHEN}&${GUESTRM} SCRIPTS_DIR=/var/lib/asterisk/scripts ; ; Any category other than "General" and "Globals" represent ; extension contexts, which are collections of extensions. ; ; Extension names may be numbers, letters, or combinations ; thereof. If an extension name is prefixed by a '_' ; character, it is interpreted as a pattern rather than a ; literal. In patterns, some characters have special meanings: ; ; X - any digit from 0-9 ; N - any digit from 2-9 ; [1235-9] - any digit in the brackets (in this example, 1,2,3,5,6,7,8,9) ; . - wildcard, matches anything remaining (e.g. _9011. matches anything starting with 9011 including 9011) ; ; For example the extenion _NXXXXXX would match normal 7 digit dialings, while ; _1NXXNXXXXXX would represent an area code plus phone number ; preceeded by a one. ; ; Contexts contain several lines, one for each step of each ; extension, which can take one of two forms as listed below, ; with the first form being preferred. One may include another ; context in the current one as well, optionally with a ; date and time. Included contexts are included in the order ; they are listed. ; ;[context] ;exten => someexten,priority,application(arg1,arg2,...) ;exten => someexten,priority,application,arg1|arg2... ; ; Timing list for includes is ; ;