extensions.conf


[general]
static=yes
writeprotect=no

[globals]
${ext}=0

[attendant]
;Main welcome message
exten => 12225552400,1,Answer
exten => 12225552400,2,Wait(1)
exten => 12225552400,3,Background(welcome_message)
exten => 12225552400,4,ResponseTimeout,15

;Used for wrong button press
exten => i,1,Goto,invalid|s|1

;To reach the operator
exten => 0,1,Goto,operator|s|1

;Company directory seach feature
exten => 3,1,Directory(local|cme-pbx)
exten => 3,2,Hangup

;To access VoiceMailMain
exten => 9,1,Goto,voicemail|s|1

;Need to be able to dial 4 digit extensions
include => cme-pbx

[voice-mail]
;Main contexts
include => attendant

;Number that CME dial to access voice mail  
;when the message button is depressed on  
;the IP Phone.
exten => 22999,1,VoicemailMain(${CALLERIDNUM})
exten => 22999,2,Wait(3)
exten => 22999,3,Hangup

;Used in conjuction with ResposeTimeout
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup

;Number that CME dials to forward voice mail to Asterisk
exten => _22XXX,1,Setvar(ext=${EXTEN:1})
exten => _22XXX,2,Goto,vmail|s|1

;Record Prompts for Attendant
exten => 205,1,Wait(2)
exten => 205,2,Record(/tmp/welcome_message:gsm)
exten => 205,3,Wait(2)
exten => 205,4,Playback(/tmp/welcome_message)
exten => 205,5,Wait(2)
exten => 205,6,Hangup)

[vmail]
exten => s,1,Answer
exten => s,2,Voicemail(u${ext})
exten => s,3,Hangup

;The below "a" option triggers on the button
; press "*" during a voice mail greeting
exten => a,1,VoicemailMain
exten => a,2,Hangup

[cme-pbx]
exten => _24XX,1,Dial(SIP/${EXTEN}@cme-pbx)
exten => _24XX,2,Hangup

;Used to dial the attendant operator
[operator]
exten => s,1,Dial(SIP/2419@operator)

[voicemail]
exten => s,1,VoicemailMain()
exten => s,2,Hangup

[invalid]
exten => s,1,Playback(pbx-invalid)
exten => s,2,Goto,attendant|12225552400|3


See the WiKi extension.conf , extension matching, pages for more examples.

© Kurt W. Pasewaldt 2005
Unauthorized duplication prohibited
without the author expressed written permission.


 
02/08/2005