From 2bd936105e72e2dcc1f847a28f04b2538e83020f Mon Sep 17 00:00:00 2001 From: Matteo Brancaleoni Date: Wed, 12 Feb 2003 13:59:15 +0000 Subject: mer feb 12 14:56:57 CET 2003 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@612 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configs/extensions.conf.sample | 333 +++++++++++++++++++++++------------------ 1 file changed, 187 insertions(+), 146 deletions(-) (limited to 'configs/extensions.conf.sample') diff --git a/configs/extensions.conf.sample b/configs/extensions.conf.sample index b408feb46..325cf2e2a 100755 --- a/configs/extensions.conf.sample +++ b/configs/extensions.conf.sample @@ -2,8 +2,7 @@ ; Static extension configuration files, used by ; the pbx_config module. ; -; The "General" category is for certain variables. All other categories -; are interpreted as extension contexts +; The "General" category is for certain variables. ; [general] ; @@ -14,24 +13,68 @@ ; XXX Not yet implemented XXX ; static=yes - ; -; if stati=yes and writeprotect=no, you can save dialplan by +; if static=yes and writeprotect=no, you can save dialplan by ; CLI command 'save dialplan' too ; writeprotect=no -; Remote things always ring all phones first. -;[remote] -;exten => s,1,Dial,AdtranVoFR/4200&AdtranVoFR/4151&AdtranVoFR/4300|15 -;exten => s,2,Goto,default|s|2 -;include => default +; +; The "Globals" category contains global variables that can be referenced +; in the dialplan with ${VARIABLE} +; +[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 +;TRUNK=IAX/user:pass@provider + +; +; 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 ; ;