# 58 ; If priorityjumping is set to 'yes', then applications that support
62 ; by passing a 'j' option in their arguments.
63 ;
64 ;priorityjumping=yes
65 ;
66 ; User context is where entries from users.conf are registered. The
67 ; default value is 'default'
68 ;
69 ;userscontext=default
70 ;
71 ; You can include other config files, use the #include command
72 ; (without the ';'). Note that this is different from the "include" command
73 ; that includes contexts within other contexts. The #include command works
74 ; in all asterisk configuration files.
75 ;#include "filename.conf"
76
77 ; The "Globals" category contains global variables that can be referenced
78 ; in the dialplan with the GLOBAL dialplan function:
79 ; ${GLOBAL(VARIABLE)}
80 ; ${${GLOBAL(VARIABLE)}} or ${text${GLOBAL(VARIABLE)}} or any hybrid
81 ; Unix/Linux environmental variables can be reached with the ENV dialplan
82 ; function: ${ENV(VARIABLE)}
83 ;
84 [globals]
85 CONSOLE=Console/dsp ; Console interface for demo
86 ;CONSOLE=Zap/1
87 ;CONSOLE=Phone/phone0
88 IAXINFO=guest ; IAXtel username/password
89 ;IAXINFO=myuser:mypass
90 TRUNK=Zap/G2 ; Trunk interface
169 ; continue with the next context in c).
170 ; This is a depth-first traversal, and stops with the first context
171 ; that provides a matching extension. As usual, if more than one
172 ; pattern in a context will match, the 'best' match will win.
173 ; Please note that that extensions found in an included context are
174 ; treated as if they were in the context from which the search began.
175 ; The PBX's notion of the "current context" is not changed.
176 ; Please note that in a context, it does not matter where an include
177 ; directive occurs. Whether at the top, or near the bottom, the effect
178 ; will be the same. The only thing that matters is that if there is
179 ; more than one include directive, they will be searched for extensions
180 ; in order, first to last.
181 ; Also please note that pattern matches (like _9XX) are not treated
182 ; any differently than exact matches (like 987). Also note that the
183 ; order of extensions in a context have no affect on the outcome.
184 ;
185 ; Timing list for includes is
186 ;
187 ; <time range>|<days of week>|<days of month>|<months>
188 ;
281 ; allowed (e.g. both A -> B and B -> A), and the switched server needs
282 ; to be on-line or else dialing can be severly delayed.
283 ;
284 [iaxprovider]
285 ;switch => IAX2/user:[key]@myserver/mycontext
286
287 [trunkint]
288 ;
289 ; International long distance through trunk
290 ;
291 exten => _9011.,1,Macro(dundi-e164,${EXTEN:4})
292 exten => _9011.,n,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
293
294 [trunkld]
295 ;
296 ; Long distance context accessed through trunk
297 ;
298 exten => _91NXXNXXXXXX,1,Macro(dundi-e164,${EXTEN:1})
299 exten => _91NXXNXXXXXX,n,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
300
301 [trunklocal]
302 ;
303 ; Local seven-digit dialing accessed through trunk interface
304 ;
305 exten => _9NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
306
307 [trunktollfree]
308 ;
309 ; Long distance context accessed through trunk interface
310 ;
311 exten => _91800NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
312 exten => _91888NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
313 exten => _91877NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
314 exten => _91866NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
315
316 [international]
317 ;
318 ; Master context for international long distance
319 ;
320 ignorepat => 9
321 include => longdistance
322 include => trunkint
323
324 [longdistance]
325 ;
326 ; Master context for long distance
327 ;
328 ignorepat => 9
329 include => local
330 include => trunkld
331
332 [local]
333 ;
334 ; Master context for local, toll-free, and iaxtel calls only
335 ;
336 ignorepat => 9
337 include => default