Version 0.1.0 from FTP
[asterisk/asterisk.git] / configs / extensions.conf.sample
1 ;
2 ; Static extension configuration files, used by
3 ; the pbx_config module.
4 ;
5 ; The "General" category is for certain variables.  All other categories
6 ; are interpreted as extension contexts
7 ;
8 [general]
9 ;
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.
13 ;
14 static=yes
15
16 ; Remote things always ring all phones first.
17 [remote]
18 exten=s,1,Dial,AdtranVoFR/4200&AdtranVoFR/4151&AdtranVoFR/4300|15
19 exten=s,2,Goto,default|s|2
20
21 ; Local stuff
22 [local]
23 exten=s,1,Goto,defaults|s|2
24 ; Special extension for local phone numbers, long distance, etc, going
25 ; out via the Frame Relay interface.  Patterns are prefixed with "_", which
26 ; is ignored.
27 exten=_9NXXXXXX,1,Dial,AdtranVoFR/BYEXTENSION
28 exten=_91NXXNXXXXXX,1,Dial,AdtranVoFR/BYEXTENSION
29 exten=_9911,1,Dial,AdtranVoFR/BYEXTENSION
30
31 [default]
32 exten=s,1,Wait,0
33 exten=s,2,Answer
34 exten=s,3,DigitTimeout,5
35 exten=s,4,ResponseTimeout,10
36 exten=s,5,BackGround,welcome
37 exten=*,1,Directory,default
38 exten=*,2,Goto,s|4
39 exten=#,1,Playback,goodbye
40 exten=#,2,Hangup
41 exten=100,1,Goto,other|s|1
42 exten=200,1,Intercom
43 exten=400,1,MP3Player,song8.mp3
44 exten=401,1,MP3Player,sample.mp3
45 exten=402,1,MP3Player,sunscreen.mp3
46 exten=403,1,MP3Player,http://trode.vergenet.net:8000
47 exten=404,1,MP3Player,http://216.32.166.94:14900
48 exten=405,1,Playback,sample
49 ;
50 ; Here's the template for a typical extension, carefully broken apart
51 ; for analysis.  The others are pretty much the same, but not as well
52 ; documented.
53 ;
54 ; Step 1:  Play back a "Please hold while I try that extension" message
55 exten=4300,1,Playback,transfer
56 ; Step 2:  Dial the numbers where Ben is likely to be.  Try for no more
57 ;          than 15 seconds.
58 exten=4300,2,Dial,AdtranVoFR/4300|15
59 ; Step 3:  If there is no answer, play back a message stating that Ben is
60 ;          unavailable.  Alternatively, we could have rung an operator first.
61 exten=4300,3,Playback,vm/4300/unavail
62 ; Step 4:  Send them to voicemail.
63 exten=4300,4,Voicemail,4300
64 ; Step 5:  If they return from voicemail, go back to the top
65 exten=4300,5,Goto,s|4
66 ; Step 103: If the Dialing is busy, it will try here first.  We'll play a
67 ;           special "I'm busy" message...
68 exten=4300,103,Playback,vm/4300/busy
69 ; Step 104: And then continue as if it had been busy in the first place.
70 exten=4300,104,Goto,4
71 ; Exten. 4301: Provide a short-circuit so we can transfer striaght to 
72 ;              voicemail.
73 exten=4301,1,Goto,4300|3
74 ; Exten. 4302: Provide a way to ring a given phone indefinitely
75 exten=4302,1,Dial,AdtranVoFR/4300
76
77 exten=4200,1,Playback,transfer
78 exten=4200,2,Dial,AdtranVoFR/4200|15
79 exten=4200,3,Playback,vm/4200/unavail
80 exten=4200,4,Voicemail,4200
81 exten=4200,5,Goto,s|4
82 exten=4200,103,Playback,vm/4200/busy
83 exten=4200,104,Goto,4
84 exten=4201,1,Goto,4200|3
85 exten=4202,1,Dial,AdtranVoFR/4200
86
87 exten=4230,1,Dial,PhoneJack/ixj0
88
89 exten=4110,1,Playback,transfer
90 ;exten=4110,2,Dial,AdtranVoFR/4110|15
91 exten=4110,2,Wait,5
92 exten=4110,3,Playback,vm/4110/unavail
93 exten=4110,4,Voicemail,4110
94 exten=4110,5,Goto,s|4
95 exten=4110,103,Playback,vm/4110/busy
96 exten=4110,104,Goto,4
97 exten=4111,1,Goto,4110|3
98 exten=4112,1,Dial,AdtranVoFR/4110
99 exten=4113,1,Voicemail,s4110
100
101 exten=8500,1,VoicemailMain
102 exten=8500,2,Goto,s|4
103 exten=762,1,Playback,somepeople
104 exten=762,2,Wait,4
105 exten=762,3,Goto,s|4
106
107 ; Timeout stuff...  We could send to an operator, or just ditch them.
108 exten=t,1,Goto,#|1
109 exten=i,1,BackGround,invalid
110
111 [other]
112 exten=s,1,Playback,digits/9
113 exten=s,2,Playback,digits/8
114 exten=s,3,Playback,digits/7
115 exten=s,4,Goto,100|1
116 exten=100,1,Playback,digits/6
117 exten=100,2,Playback,digits/5
118 exten=100,3,Goto,default|s|4