Asterisk PBX : extensions.conf

; The [local] context is where I put all of the locally dialable
; numbers. These entries could be made in each context where I
; reference them, but that would be redundant.
;
; Mostly, they are used from context [intern] right now, but I’m sure
; I’ll include them in other contexts later.
;
; Note: due to my wacky/kludgey prefix dialing crap, all the “internal”
; extensions that are local to this system must begin with a “2″
; This means that voicemail, echo, all users, etc. must have an extension
; that starts with the digit “2″ or one of the other dialplans will
; snag the call and do whatever with it. This is sub-optimal for a
; system with hundreds of extensions, but for my purposes it works
; just fine.
; Furthermore, all of “my” extensions begin with 220, since I don’t
; expect to have more than 10 phones. My friends can then have
; extension plans with 221X or 222X or whatever, and we won’t
; overlap.
;
;
[local]

; First extension (office) in the house
;
; Note that I try to keep extension names and numbers
; identical. You don’t need to be bound to this
; method.
;
; Note that many internal extensions do not time out to voicemail.
;
; 2203 is my Nortel deskphone via an ATA-186
;
exten => 2203,1,Dial(${PHONE1},30,t)
exten => 2203,2,Playback(invalid)
exten => 2203,3,Hangup
exten => 2203,102,Voicemail(2203)
exten => 2203,103,Hangup
; This is the second extension in the house,
; connected to the vtech wireless via ATA-186
;
exten => 2204,1,Dial(${PHONE2},30,Ttm)
exten => 2204,2,Playback(invalid)
exten => 2204,3,Hangup
exten => 2204,102,Voicemail(2204)
exten => 2204,103,Hangup
; This is the Cisco 7960
;
; Strangely the musiconhold doesn’t work while ringing.
;
exten => 2205,1,Dial(${PHONE3},30,t)
exten => 2205,2,Playback(invalid)
exten => 2205,3,Hangup
exten => 2205,102,Voicemail(2205)
exten => 2205,103,Hangup
; Dial 2500 from any phone to go to the voicemail system
;
exten => 2500,1,Wait,2
exten => 2500,2,VoicemailMain
exten => 2500,3,Hangup

; These are my testing extensions. Nothing
; bad will happen if you comment them out.
;
; Actually, *I* should really comment them out, but
; I leave them in for playing around with sounds, etc.
;
exten => 2001,1,Answer
exten => 2001,2,Wait,1
exten => 2001,3,mp3player(/var/lib/asterisk/mohmp3/Bad-Moon-Rising.mp3)
;exten => 2001,3,Playback(new/wolverine-hunting)
;exten => 2001,3,Playtones(congestion)
exten => 2001,4,Wait,20
exten => 2001,5,Hangup

exten => 4000,1,Answer
exten => 4000,2,Playback(new/password)
exten => 4000,3,AGI(agi-test.agi,${pass})
exten => 4000,4,Hangup

exten => 4001,1,Playback(new/password)
exten => 4001,2,SetMusicOnHold,loud
exten => 4001,3,WaitMusicOnHold,30
exten => 4001,4,Hangup

Tags: , , , , , , , , , , , , , , ,

Related posts

Pages: 1 2 3 4 5 6 7 8 9