2 ; Static extension configuration files, used by
3 ; the pbx_config module.
5 ; The "General" category is for certain variables. All other categories
6 ; are interpreted as extension contexts
10 ; If static is set to no, or omitted, then the pbx_config will rewrite
11 ; this file when extensions are modified. Remember that all comments
12 ; made in the file will be lost when that happens.
14 ; XXX Not yet implemented XXX
19 ; if stati=yes and writeprotect=no, you can save dialplan by
20 ; CLI command 'save dialplan' too
24 ; Remote things always ring all phones first.
26 ;exten => s,1,Dial,AdtranVoFR/4200&AdtranVoFR/4151&AdtranVoFR/4300|15
27 ;exten => s,2,Goto,default|s|2
31 ; Here are the entries you need to participate in the IAXTEL
32 ; call routing system. Most IAXTEL numbers begin with 1-700, but
33 ; there are exceptions. For more information, and to sign
34 ; up, please go to www.gnophone.com or www.iaxtel.com
37 exten => _91NXXNXXXXXX,1,StripMSD,1
38 exten => _1NXXNXXXXXX,2,Dial,IAX/iaxtel.com/BYEXTENSION@iaxtel
42 ; Special extension for local phone numbers, long distance, etc, going
43 ; out via the Frame Relay interface. Patterns are prefixed with "_", which
46 ; ignorepat can be used to instruct drivers to not cancel dialtone upon
47 ; receipt of a particular pattern. The most commonly used example is
48 ; of course '9' like this:
52 ; so that dialtone remains even after dialing a 9.
55 ;exten => _9NXXXXXX,1,Dial,AdtranVoFR/BYEXTENSION
56 ;exten => _91NXXNXXXXXX,1,Dial,AdtranVoFR/BYEXTENSION
57 ;exten => _9911,1,Dial,AdtranVoFR/BYEXTENSION
61 ; You can use an alternative switch type as well, to resolve
62 ; extensions that are not known here, for example with remote
63 ; IAX switching you transparently get access to the remote
65 ; switch => IAX/user:password@bigserver/local
70 ; We start with what to do when a call first comes in.
72 exten => s,1,Wait,1 ; Wait a second, just for fun
73 exten => s,2,Answer ; Answer the line
74 exten => s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
75 exten => s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
76 exten => s,5,BackGround,demo-congrats ; Play a congratulatory message
77 exten => s,6,BackGround,demo-instruct ; Play some instructions
79 exten => 2,1,BackGround,demo-moreinfo ; Give some more information.
82 exten => 3,1,SetLanguage,fr ; Set language to french
83 exten => 3,2,Goto,s|5 ; Start with the congratulations
86 ; We also create an example user, 1234, who is on the console and has
89 exten => 1234,1,Playback,transfer|skip ; "Please hold while..."
90 ; (but skip if channel is not up)
91 exten => 1234,2,Dial,Console/dsp|10 ; Ring the console, 10 secs max
92 exten => 1234,3,Playback,vm/1234/unavail ; "I'm not here right now"
93 exten => 1234,4,Voicemail,1234 ; Send to voicemail...
94 exten => 1234,5,Goto,s|6 ; Start over
95 exten => 1234,103,Playback,vm/1234/busy ; (2 + 101) "I'm on the phone"
96 exten => 1234,104,Goto,4 ; Go to voicemail, etc.
98 exten => 1235,1,Goto,1234|3 ; Right to voicemail
100 exten => 1236,1,Dial,Console/dsp ; Ring forever
101 exten => 1236,2,Goto,1234|103 ; Unless busy
104 ; # for when they're done with the demo
106 exten => #,1,Playback,demo-thanks ; "Thanks for trying the demo"
107 exten => #,2,Hangup ; Hang them up.
110 ; A timeout and "invalid extension rule"
112 exten => t,1,Goto,#|1 ; If they take too long, give up
113 exten => i,1,Playback,invalid ; "That's not valid, try again"
116 ; Create an extension, 500, for dialing the
119 exten => 500,1,Playback,demo-abouttotry ; Let them know what's going on
120 exten => 500,2,Dial,IAX/asterisk@demo ; Call the Asterisk demo
121 exten => 500,3,Playback,demo-nogo ; Couldn't connect to the demo site
122 exten => 500,4,Goto,s|6 ; Return to the start over message.
125 ; Create an extension, 600, for evaulating echo latency.
127 exten => 600,1,Playback,demo-echotest ; Let them know what's going on
128 exten => 600,2,Echo ; Do the echo test
129 exten => 600,3,Playback,demo-echodone ; Let them know it's over
130 exten => 600,4,Goto,s|6 ; Start over
133 ; Give voicemail at extension 8500
135 exten => 8500,1,VoicemailMain
136 exten => 8500,2,Goto,s|6
138 ; Here's what a phone entry would look like (IXJ for example)
140 ;exten => 1265,1,Dial,Phone/phone0|15
141 ;exten => 1265,2,Goto,s|5
143 ; This is a more complicated sample extension configuration, similar to
144 ; what we use at LSS.
149 ;exten => s,3,DigitTimeout,5
150 ;exten => s,4,ResponseTimeout,10
151 ;exten => s,5,BackGround,welcome
152 ;exten => *,1,Directory,default
153 ;exten => *,2,Goto,s|4
154 ;exten => #,1,Playback,goodbye
156 ;exten => 100,1,Goto,other|s|1
157 ;exten => 200,1,Intercom
158 ;exten => 400,1,MP3Player,song8.mp3
159 ;exten => 401,1,MP3Player,sample.mp3
160 ;exten => 402,1,MP3Player,sunscreen.mp3
161 ;exten => 403,1,MP3Player,http://trode.vergenet.net:8000
162 ;exten => 404,1,MP3Player,http://216.32.166.94:14900
163 ;exten => 405,1,Playback,sample
165 ; Here's the template for a typical extension, carefully broken apart
166 ; for analysis. The others are pretty much the same, but not as well
169 ; Step 1: Play back a "Please hold while I try that extension" message
170 ;exten => 4300,1,Playback,transfer
171 ; Step 2: Dial the numbers where Ben is likely to be. Try for no more
173 ;exten => 4300,2,Dial,AdtranVoFR/4300|15
174 ; Step 3: If there is no answer, play back a message stating that Ben is
175 ; unavailable. Alternatively, we could have rung an operator first.
176 ;exten => 4300,3,Playback,vm/4300/unavail
177 ; Step 4: Send them to voicemail.
178 ;exten => 4300,4,Voicemail,4300
179 ; Step 5: If they return from voicemail, go back to the top
180 ;exten => 4300,5,Goto,s|4
181 ; Step 103: If the Dialing is busy, it will try here first. We'll play a
182 ; special "I'm busy" message...
183 ;exten => 4300,103,Playback,vm/4300/busy
184 ; Step 104: And then continue as if it had been busy in the first place.
185 ;exten => 4300,104,Goto,4
186 ; Exten. 4301: Provide a short-circuit so we can transfer striaght to
188 ;exten => 4301,1,Goto,4300|3
189 ; Exten. 4302: Provide a way to ring a given phone indefinitely
190 ;exten => 4302,1,Dial,AdtranVoFR/4300
192 ;exten => 4200,1,Playback,transfer
193 ;exten => 4200,2,Dial,AdtranVoFR/4200|15
194 ;exten => 4200,3,Playback,vm/4200/unavail
195 ;exten => 4200,4,Voicemail,4200
196 ;exten => 4200,5,Goto,s|4
197 ;exten => 4200,103,Playback,vm/4200/busy
198 ;exten => 4200,104,Goto,4
199 ;exten => 4201,1,Goto,4200|3
200 ;exten => 4202,1,Dial,AdtranVoFR/4200
202 ;exten => 4110,1,Playback,transfer
203 ;exten => 4110,2,Dial,AdtranVoFR/4110|15
204 ;exten => 4110,2,Wait,5
205 ;exten => 4110,3,Playback,vm/4110/unavail
206 ;exten => 4110,4,Voicemail,4110
207 ;exten => 4110,5,Goto,s|4
208 ;exten => 4110,103,Playback,vm/4110/busy
209 ;exten => 4110,104,Goto,4
210 ;exten => 4111,1,Goto,4110|3
211 ;exten => 4112,1,Dial,AdtranVoFR/4110
212 ;exten => 4113,1,Voicemail,s4110
214 ;exten => 8500,1,VoicemailMain
215 ;exten => 8500,2,Goto,s|4
216 ;exten => 762,1,Playback,somepeople
217 ;exten => 762,2,Wait,4
218 ;exten => 762,3,Goto,s|4
220 ; Timeout stuff... We could send to an operator, or just ditch them.
221 ;exten => t,1,Goto,#|1
222 ;exten => i,1,BackGround,invalid
223 include => parkedcalls
226 ;exten => s,1,Playback,digits/9
227 ;exten => s,2,Playback,digits/8
228 ;exten => s,3,Playback,digits/7
229 ;exten => s,4,Goto,100|1
230 ;exten => 100,1,Playback,digits/6
231 ;exten => 100,2,Playback,digits/5
232 ;exten => 100,3,Goto,default|s|4