[general] static=yes writeprotect=yes autofallthrough=no clearglobalvars=yes priorityjumping=no ; The "Globals" category contains global variables that can be referenced ; in the dialplan with ${VARIABLE} or ${ENV(VARIABLE)} for Environmental ; variables, ; ${${VARIABLE}} or ${text${VARIABLE}} or any hybrid ; [globals] CONSOLE=Console/dsp ; Console interface for demo ;CONSOLE=Zap/1 ;CONSOLE=Phone/phone0 IAXINFO=guest ; IAXtel username/password ;IAXINFO=myuser:mypass TRUNK=Zap/g2 ; Trunk interface, group 2 in zapata.conf PHONE1=Zap/1 PHONE2=Zap/2 PHONE3=Zap/3 PHONE4=Zap/5 PHONE5=Zap/6 PHONE6=Zap/7 PHONEALL=Zap/1&Zap/2&Zap/3&Zap/5&Zap/6&Zap/7 PIZZA=3 PHONEBOOK=4 VOICEMAIL=5 EXT1=81 EXT2=82 EXT3=83 EXT5=85 EXT6=86 EXT7=87 SIP_KEITH=61 SIP_MATT=62 SIP_CHRIS=63 SIP_MUNROE=64 SIP_SABRINA=65 SIP_KEMMERER=66 KEITH=6103907404 ; 1 KRIEBZ=12672180786 ; 2 ROE=12158341846 ; 3 CHRIS=18487023556 ; 4 SABRINA=19085812393 ; 5 KEMMERER=6106537400 ; 6 CHAD=17178087485 ; 7 STEVE=6102176459 ; 8 JAMIE=19045016009 ; 9 VICTORY=6108672773 ; 1 POMODORO=6103170899 ; 2 NICKS=6108653366 ; 3 DOMINOS=6108652700 ; 4 PIZZAHUT=6109749555 ; 5 PAPAJOHNS=6106910100 ; 6 PENN=6108663532 ; 7 WESTGATE=6108651393 ; 8 LEHIGH=6108661088 ; 9 HUNANINN=6108688878 ; ? ; ; g: select the lowest-numbered non-busy Zap channel ; (aka. ascending sequential hunt group). ; G: select the highest-numbered non-busy Zap channel ; (aka. descending sequential hunt group). ; r: use a round-robin search, starting at the next highest channel than last ; time (aka. ascending rotary hunt group). ; R: use a round-robin search, starting at the next lowest channel than last ; time (aka. descending rotary hunt group). ; TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0) ; ; 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 ; Z - any digit from 1-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 excluding 9011 itself) ; ! - wildcard, causes the matching process to complete as soon as ; it can unambiguously determine that no other matches are possible ; ; For example the extension _NXXXXXX would match normal 7 digit dialings, ; while _1NXXNXXXXXX would represent an area code plus phone number ; preceded by a one. ; ; Each step of an extension is ordered by priority, which must ; always start with 1 to be considered a valid extension. The priority ; "next" or "n" means the previous priority plus one, regardless of whether ; the previous priority was associated with the current extension or not. ; The priority "same" or "s" means the same as the previously specified ; priority, again regardless of whether the previous entry was for the ; same extension. Priorities may be immediately followed by a plus sign ; and another integer to add that amount (most useful with 's' or 'n'). ; Priorities may then also have an alias, or label, in ; parenthesis after their name which can be used in goto situations ; ; 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[+offset][(alias)],application(arg1,arg2,...) ;exten => someexten,priority[+offset][(alias)],application,arg1|arg2... ; ; Timing list for includes is ; ;