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
18 ; Remote things always ring all phones first.
20 ;exten=s,1,Dial,AdtranVoFR/4200&AdtranVoFR/4151&AdtranVoFR/4300|15
21 ;exten=s,2,Goto,default|s|2
25 ;exten=s,1,Goto,defaults|s|2
26 ; Special extension for local phone numbers, long distance, etc, going
27 ; out via the Frame Relay interface. Patterns are prefixed with "_", which
29 ;exten=_9NXXXXXX,1,Dial,AdtranVoFR/BYEXTENSION
30 ;exten=_91NXXNXXXXXX,1,Dial,AdtranVoFR/BYEXTENSION
31 ;exten=_9911,1,Dial,AdtranVoFR/BYEXTENSION
35 ; We start with what to do when a call first comes in.
37 exten=s,1,Wait,1 ; Wait a second, just for fun
38 exten=s,2,Answer ; Answer the line
39 exten=s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
40 exten=s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
41 exten=s,5,BackGround,demo-congrats ; Play a congratulatory message
42 exten=s,6,BackGround,demo-instruct ; Play some instructions
44 exten=2,1,BackGround,demo-moreinfo ; Give some more information.
47 exten=3,1,SetLanguage,fr ; Set language to french
48 exten=3,2,Goto,s|5 ; Start with the congratulations
51 ; We also create an example user, 1234, who is on the console and has
54 exten=1234,1,Playback,transfer ; "Please hold while..."
55 exten=1234,2,Dial,Console/dsp|10 ; Ring the console, 10 secs max
56 exten=1234,3,Playback,vm/1234/unavail ; "I'm not here right now"
57 exten=1234,4,Voicemail,1234 ; Send to voicemail...
58 exten=1234,5,Goto,s|6 ; Start over
59 exten=1234,103,Playback,vm/1234/busy ; (2 + 101) "I'm on the phone"
60 exten=1234,104,Goto,4 ; Go to voicemail, etc.
62 exten=1235,1,Goto,1234|3 ; Right to voicemail
64 exten=1236,1,Dial,Console/dsp ; Ring forever
65 exten=1236,2,Goto,1234|103 ; Unless busy
68 ; # for when they're done with the demo
70 exten=#,1,Playback,demo-thanks ; "Thanks for trying the demo"
71 exten=#,2,Hangup ; Hang them up.
74 ; A timeout and "invalid extension rule"
76 exten=t,1,Playback,Goto,#|1 ; If they take too long, give up
77 exten=i,1,Playback,invalid ; "That's not valid, try again"
80 ; Create an extension, 500, for dialing the
83 exten=500,1,Playback,demo-abouttotry ; Let them know what's going on
84 exten=500,2,Dial,IAX/asterisk@demo ; Call the Asterisk demo
85 exten=500,3,Playback,demo-nogo ; Couldn't connect to the demo site
86 exten=500,4,Goto,s|6 ; Return to the start over message.
89 ; Create an extension, 600, for evaulating echo latency.
91 exten=600,1,Playback,demo-echotest ; Let them know what's going on
92 exten=600,2,Echo ; Do the echo test
93 exten=600,3,Playback,demo-echodone ; Let them know it's over
94 exten=600,4,Goto,s|6 ; Start over
97 ; Give voicemail at extension 8500
99 exten=8500,1,VoicemailMain
100 exten=8500,2,Goto,s|6
102 ; Here's what a phone entry would look like (IXJ for example)
104 ;exten=1265,1,Dial,Phone/phone0|15
105 ;exten=1265,2,Goto,s|5
107 ; This is a more complicated sample extension configuration, similar to
108 ; what we use at LSS.
113 ;exten=s,3,DigitTimeout,5
114 ;exten=s,4,ResponseTimeout,10
115 ;exten=s,5,BackGround,welcome
116 ;exten=*,1,Directory,default
118 ;exten=#,1,Playback,goodbye
120 ;exten=100,1,Goto,other|s|1
121 ;exten=200,1,Intercom
122 ;exten=400,1,MP3Player,song8.mp3
123 ;exten=401,1,MP3Player,sample.mp3
124 ;exten=402,1,MP3Player,sunscreen.mp3
125 ;exten=403,1,MP3Player,http://trode.vergenet.net:8000
126 ;exten=404,1,MP3Player,http://216.32.166.94:14900
127 ;exten=405,1,Playback,sample
129 ; Here's the template for a typical extension, carefully broken apart
130 ; for analysis. The others are pretty much the same, but not as well
133 ; Step 1: Play back a "Please hold while I try that extension" message
134 ;exten=4300,1,Playback,transfer
135 ; Step 2: Dial the numbers where Ben is likely to be. Try for no more
137 ;exten=4300,2,Dial,AdtranVoFR/4300|15
138 ; Step 3: If there is no answer, play back a message stating that Ben is
139 ; unavailable. Alternatively, we could have rung an operator first.
140 ;exten=4300,3,Playback,vm/4300/unavail
141 ; Step 4: Send them to voicemail.
142 ;exten=4300,4,Voicemail,4300
143 ; Step 5: If they return from voicemail, go back to the top
144 ;exten=4300,5,Goto,s|4
145 ; Step 103: If the Dialing is busy, it will try here first. We'll play a
146 ; special "I'm busy" message...
147 ;exten=4300,103,Playback,vm/4300/busy
148 ; Step 104: And then continue as if it had been busy in the first place.
149 ;exten=4300,104,Goto,4
150 ; Exten. 4301: Provide a short-circuit so we can transfer striaght to
152 ;exten=4301,1,Goto,4300|3
153 ; Exten. 4302: Provide a way to ring a given phone indefinitely
154 ;exten=4302,1,Dial,AdtranVoFR/4300
156 ;exten=4200,1,Playback,transfer
157 ;exten=4200,2,Dial,AdtranVoFR/4200|15
158 ;exten=4200,3,Playback,vm/4200/unavail
159 ;exten=4200,4,Voicemail,4200
160 ;exten=4200,5,Goto,s|4
161 ;exten=4200,103,Playback,vm/4200/busy
162 ;exten=4200,104,Goto,4
163 ;exten=4201,1,Goto,4200|3
164 ;exten=4202,1,Dial,AdtranVoFR/4200
166 ;exten=4110,1,Playback,transfer
167 ;exten=4110,2,Dial,AdtranVoFR/4110|15
169 ;exten=4110,3,Playback,vm/4110/unavail
170 ;exten=4110,4,Voicemail,4110
171 ;exten=4110,5,Goto,s|4
172 ;exten=4110,103,Playback,vm/4110/busy
173 ;exten=4110,104,Goto,4
174 ;exten=4111,1,Goto,4110|3
175 ;exten=4112,1,Dial,AdtranVoFR/4110
176 ;exten=4113,1,Voicemail,s4110
178 ;exten=8500,1,VoicemailMain
179 ;exten=8500,2,Goto,s|4
180 ;exten=762,1,Playback,somepeople
182 ;exten=762,3,Goto,s|4
184 ; Timeout stuff... We could send to an operator, or just ditch them.
186 ;exten=i,1,BackGround,invalid
189 ;exten=s,1,Playback,digits/9
190 ;exten=s,2,Playback,digits/8
191 ;exten=s,3,Playback,digits/7
192 ;exten=s,4,Goto,100|1
193 ;exten=100,1,Playback,digits/6
194 ;exten=100,2,Playback,digits/5
195 ;exten=100,3,Goto,default|s|4