1999-12-05 07:09:27 +00:00
|
|
|
;
|
|
|
|
; 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
|
|
|
|
;
|
|
|
|
[general]
|
|
|
|
;
|
|
|
|
; If static is set to no, or omitted, then the pbx_config will rewrite
|
|
|
|
; this file when extensions are modified. Remember that all comments
|
2000-01-04 16:24:38 +00:00
|
|
|
; made in the file will be lost when that happens.
|
|
|
|
;
|
|
|
|
; XXX Not yet implemented XXX
|
1999-12-05 07:09:27 +00:00
|
|
|
;
|
|
|
|
static=yes
|
|
|
|
|
2001-10-03 21:24:16 +00:00
|
|
|
;
|
|
|
|
; if stati=yes and writeprotect=no, you can save dialplan by
|
|
|
|
; CLI command 'save dialplan' too
|
|
|
|
;
|
|
|
|
writeprotect=no
|
|
|
|
|
1999-12-05 07:09:27 +00:00
|
|
|
; Remote things always ring all phones first.
|
2000-01-04 16:24:38 +00:00
|
|
|
;[remote]
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => s,1,Dial,AdtranVoFR/4200&AdtranVoFR/4151&AdtranVoFR/4300|15
|
|
|
|
;exten => s,2,Goto,default|s|2
|
|
|
|
;include => default
|
1999-12-05 07:09:27 +00:00
|
|
|
|
2001-10-03 21:24:16 +00:00
|
|
|
;
|
|
|
|
; Here are the entries you need to participate in the IAXTEL
|
|
|
|
; call routing system. Most IAXTEL numbers begin with 1-700, but
|
|
|
|
; there are exceptions. For more information, and to sign
|
|
|
|
; up, please go to www.gnophone.com or www.iaxtel.com
|
|
|
|
;
|
|
|
|
[iaxtel]
|
|
|
|
exten => _91NXXNXXXXXX,1,StripMSD,1
|
|
|
|
exten => _1NXXNXXXXXX,2,Dial,IAX/iaxtel.com/BYEXTENSION@iaxtel
|
|
|
|
|
2001-12-27 11:07:33 +00:00
|
|
|
[provider]
|
|
|
|
;switch => IAX/user:[key]@myserver/mycontext
|
|
|
|
|
1999-12-05 07:09:27 +00:00
|
|
|
; Local stuff
|
2001-10-03 21:24:16 +00:00
|
|
|
[local]
|
1999-12-05 07:09:27 +00:00
|
|
|
; Special extension for local phone numbers, long distance, etc, going
|
|
|
|
; out via the Frame Relay interface. Patterns are prefixed with "_", which
|
|
|
|
; is ignored.
|
2001-10-03 21:24:16 +00:00
|
|
|
;
|
|
|
|
; ignorepat can be used to instruct drivers to not cancel dialtone upon
|
|
|
|
; receipt of a particular pattern. The most commonly used example is
|
|
|
|
; of course '9' like this:
|
|
|
|
;
|
|
|
|
; ignorepat => 9
|
|
|
|
;
|
|
|
|
; so that dialtone remains even after dialing a 9.
|
|
|
|
;
|
|
|
|
ignorepat => 9
|
2001-12-27 11:07:33 +00:00
|
|
|
;exten => _9NXXXXXX,1,Dial,IAX/user:[key]@myserver/BYEXTENSION
|
|
|
|
;exten => _91NXXNXXXXXX,1,Dial,IAX/user:[key]@myserver/BYEXTENSION
|
|
|
|
;exten => _9911,1,Dial,IAX/user:[key]@myserver/BYEXTENSION
|
2001-10-03 21:24:16 +00:00
|
|
|
include => default
|
2001-12-27 11:07:33 +00:00
|
|
|
include => provider
|
2001-10-03 21:24:16 +00:00
|
|
|
include => iaxtel
|
|
|
|
;
|
|
|
|
; You can use an alternative switch type as well, to resolve
|
|
|
|
; extensions that are not known here, for example with remote
|
|
|
|
; IAX switching you transparently get access to the remote
|
|
|
|
;
|
|
|
|
; switch => IAX/user:password@bigserver/local
|
|
|
|
|
1999-12-05 07:09:27 +00:00
|
|
|
|
2001-12-27 11:07:33 +00:00
|
|
|
[demo]
|
2000-01-04 16:24:38 +00:00
|
|
|
;
|
|
|
|
; We start with what to do when a call first comes in.
|
|
|
|
;
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => s,1,Wait,1 ; Wait a second, just for fun
|
|
|
|
exten => s,2,Answer ; Answer the line
|
|
|
|
exten => s,3,DigitTimeout,5 ; Set Digit Timeout to 5 seconds
|
|
|
|
exten => s,4,ResponseTimeout,10 ; Set Response Timeout to 10 seconds
|
|
|
|
exten => s,5,BackGround,demo-congrats ; Play a congratulatory message
|
|
|
|
exten => s,6,BackGround,demo-instruct ; Play some instructions
|
2000-01-04 16:24:38 +00:00
|
|
|
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 2,1,BackGround,demo-moreinfo ; Give some more information.
|
|
|
|
exten => 2,2,Goto,s|6
|
2000-01-04 16:24:38 +00:00
|
|
|
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 3,1,SetLanguage,fr ; Set language to french
|
|
|
|
exten => 3,2,Goto,s|5 ; Start with the congratulations
|
2000-01-13 04:27:32 +00:00
|
|
|
|
2000-01-04 16:24:38 +00:00
|
|
|
;
|
|
|
|
; We also create an example user, 1234, who is on the console and has
|
|
|
|
; voicemail, etc.
|
|
|
|
;
|
2001-10-03 21:24:16 +00:00
|
|
|
exten => 1234,1,Playback,transfer|skip ; "Please hold while..."
|
|
|
|
; (but skip if channel is not up)
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 1234,2,Dial,Console/dsp|10 ; Ring the console, 10 secs max
|
2001-12-27 11:07:33 +00:00
|
|
|
exten => 1234,3,Voicemail,u1234 ; Send to voicemail...
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 1234,5,Goto,s|6 ; Start over
|
2001-12-27 11:07:33 +00:00
|
|
|
exten => 1234,103,Voicemail,b1234 ; (2 + 101) "I'm on the phone"
|
|
|
|
exten => 1234,104,Goto,5 ; Go to voicemail, etc.
|
2000-01-04 16:24:38 +00:00
|
|
|
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 1235,1,Goto,1234|3 ; Right to voicemail
|
2000-01-04 16:24:38 +00:00
|
|
|
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 1236,1,Dial,Console/dsp ; Ring forever
|
|
|
|
exten => 1236,2,Goto,1234|103 ; Unless busy
|
2000-01-04 16:24:38 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; # for when they're done with the demo
|
|
|
|
;
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => #,1,Playback,demo-thanks ; "Thanks for trying the demo"
|
|
|
|
exten => #,2,Hangup ; Hang them up.
|
2000-01-04 16:24:38 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; A timeout and "invalid extension rule"
|
|
|
|
;
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => t,1,Goto,#|1 ; If they take too long, give up
|
|
|
|
exten => i,1,Playback,invalid ; "That's not valid, try again"
|
2000-01-04 16:24:38 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; Create an extension, 500, for dialing the
|
|
|
|
; Asterisk demo.
|
|
|
|
;
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 500,1,Playback,demo-abouttotry ; Let them know what's going on
|
|
|
|
exten => 500,2,Dial,IAX/asterisk@demo ; Call the Asterisk demo
|
|
|
|
exten => 500,3,Playback,demo-nogo ; Couldn't connect to the demo site
|
|
|
|
exten => 500,4,Goto,s|6 ; Return to the start over message.
|
2000-01-04 16:24:38 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; Create an extension, 600, for evaulating echo latency.
|
|
|
|
;
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 600,1,Playback,demo-echotest ; Let them know what's going on
|
|
|
|
exten => 600,2,Echo ; Do the echo test
|
|
|
|
exten => 600,3,Playback,demo-echodone ; Let them know it's over
|
|
|
|
exten => 600,4,Goto,s|6 ; Start over
|
2000-01-04 16:24:38 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; Give voicemail at extension 8500
|
|
|
|
;
|
2001-04-14 23:44:26 +00:00
|
|
|
exten => 8500,1,VoicemailMain
|
|
|
|
exten => 8500,2,Goto,s|6
|
2000-01-04 16:24:38 +00:00
|
|
|
;
|
|
|
|
; Here's what a phone entry would look like (IXJ for example)
|
|
|
|
;
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => 1265,1,Dial,Phone/phone0|15
|
|
|
|
;exten => 1265,2,Goto,s|5
|
2000-01-04 16:24:38 +00:00
|
|
|
|
2001-12-27 11:07:33 +00:00
|
|
|
[default]
|
|
|
|
;
|
|
|
|
; By default we include the demo. In a production system, you
|
|
|
|
; probably don't want to have the demo there.
|
|
|
|
;
|
|
|
|
include => demo
|
|
|
|
|
2000-01-04 16:24:38 +00:00
|
|
|
; This is a more complicated sample extension configuration, similar to
|
2001-12-27 11:07:33 +00:00
|
|
|
; what we used to use at LSS.
|
2000-01-04 16:24:38 +00:00
|
|
|
|
|
|
|
;[default]
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => s,1,Wait,0
|
|
|
|
;exten => s,2,Answer
|
|
|
|
;exten => s,3,DigitTimeout,5
|
|
|
|
;exten => s,4,ResponseTimeout,10
|
|
|
|
;exten => s,5,BackGround,welcome
|
|
|
|
;exten => *,1,Directory,default
|
|
|
|
;exten => *,2,Goto,s|4
|
|
|
|
;exten => #,1,Playback,goodbye
|
|
|
|
;exten => #,2,Hangup
|
|
|
|
;exten => 100,1,Goto,other|s|1
|
|
|
|
;exten => 200,1,Intercom
|
|
|
|
;exten => 400,1,MP3Player,song8.mp3
|
|
|
|
;exten => 401,1,MP3Player,sample.mp3
|
|
|
|
;exten => 402,1,MP3Player,sunscreen.mp3
|
|
|
|
;exten => 403,1,MP3Player,http://trode.vergenet.net:8000
|
|
|
|
;exten => 404,1,MP3Player,http://216.32.166.94:14900
|
|
|
|
;exten => 405,1,Playback,sample
|
1999-12-05 07:09:27 +00:00
|
|
|
;
|
|
|
|
; Here's the template for a typical extension, carefully broken apart
|
|
|
|
; for analysis. The others are pretty much the same, but not as well
|
|
|
|
; documented.
|
|
|
|
;
|
|
|
|
; Step 1: Play back a "Please hold while I try that extension" message
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => 4300,1,Playback,transfer
|
1999-12-05 07:09:27 +00:00
|
|
|
; Step 2: Dial the numbers where Ben is likely to be. Try for no more
|
|
|
|
; than 15 seconds.
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => 4300,2,Dial,AdtranVoFR/4300|15
|
2001-12-27 11:07:33 +00:00
|
|
|
; Step 3: Send them to voicemail, preceeded by their unavailable message.
|
|
|
|
;exten => 4300,3,Voicemail,u4300
|
|
|
|
; Step 4: If they return from voicemail, go back to the top
|
|
|
|
;exten => 4300,4,Goto,s|4
|
1999-12-05 07:09:27 +00:00
|
|
|
; Step 103: If the Dialing is busy, it will try here first. We'll play a
|
2001-12-27 11:07:33 +00:00
|
|
|
; special "I'm busy" message and send them to voicemail
|
|
|
|
;exten => 4300,103,Voicemail,b4300
|
|
|
|
; Step 104: And then continue from whereever the other would
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => 4300,104,Goto,4
|
1999-12-05 07:09:27 +00:00
|
|
|
; Exten. 4301: Provide a short-circuit so we can transfer striaght to
|
|
|
|
; voicemail.
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => 4301,1,Goto,4300|3
|
1999-12-05 07:09:27 +00:00
|
|
|
; Exten. 4302: Provide a way to ring a given phone indefinitely
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => 4302,1,Dial,AdtranVoFR/4300
|
|
|
|
|
|
|
|
;exten => 4200,1,Playback,transfer
|
|
|
|
;exten => 4200,2,Dial,AdtranVoFR/4200|15
|
|
|
|
;exten => 4200,3,Playback,vm/4200/unavail
|
|
|
|
;exten => 4200,4,Voicemail,4200
|
|
|
|
;exten => 4200,5,Goto,s|4
|
|
|
|
;exten => 4200,103,Playback,vm/4200/busy
|
|
|
|
;exten => 4200,104,Goto,4
|
|
|
|
;exten => 4201,1,Goto,4200|3
|
|
|
|
;exten => 4202,1,Dial,AdtranVoFR/4200
|
|
|
|
|
|
|
|
;exten => 4110,1,Playback,transfer
|
|
|
|
;exten => 4110,2,Dial,AdtranVoFR/4110|15
|
|
|
|
;exten => 4110,2,Wait,5
|
|
|
|
;exten => 4110,3,Playback,vm/4110/unavail
|
|
|
|
;exten => 4110,4,Voicemail,4110
|
|
|
|
;exten => 4110,5,Goto,s|4
|
|
|
|
;exten => 4110,103,Playback,vm/4110/busy
|
|
|
|
;exten => 4110,104,Goto,4
|
|
|
|
;exten => 4111,1,Goto,4110|3
|
|
|
|
;exten => 4112,1,Dial,AdtranVoFR/4110
|
|
|
|
;exten => 4113,1,Voicemail,s4110
|
|
|
|
|
|
|
|
;exten => 8500,1,VoicemailMain
|
|
|
|
;exten => 8500,2,Goto,s|4
|
|
|
|
;exten => 762,1,Playback,somepeople
|
|
|
|
;exten => 762,2,Wait,4
|
|
|
|
;exten => 762,3,Goto,s|4
|
1999-12-05 07:09:27 +00:00
|
|
|
|
|
|
|
; Timeout stuff... We could send to an operator, or just ditch them.
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => t,1,Goto,#|1
|
|
|
|
;exten => i,1,BackGround,invalid
|
|
|
|
include => parkedcalls
|
2000-01-04 16:24:38 +00:00
|
|
|
|
|
|
|
;[other]
|
2001-04-14 23:44:26 +00:00
|
|
|
;exten => s,1,Playback,digits/9
|
|
|
|
;exten => s,2,Playback,digits/8
|
|
|
|
;exten => s,3,Playback,digits/7
|
|
|
|
;exten => s,4,Goto,100|1
|
|
|
|
;exten => 100,1,Playback,digits/6
|
|
|
|
;exten => 100,2,Playback,digits/5
|
|
|
|
;exten => 100,3,Goto,default|s|4
|