[general]
[globals]
; Klingelzeit
ZEIT=120
; Vorwahl abcd
ORT=xxxxx
; Context des SIP-Providers
PROVIDER=sipgate
[sonstige]
[intern]
exten => _2XXX,1,Dial(SIP/${EXTEN},${ZEIT},Tt)
exten => _2XXX,2,VoiceMail(${EXTEN},u)
exten => _1X,1,Dial(SIP/${EXTEN},Tt)
[voicemail]
exten => 99,1,VoiceMailMain(${CALLERID(num)})
[extern]
exten => _0[1-9]X.,1,Dial(SIP/${ORT}${EXTEN}@${PROVIDER},Tt)
[ausland]
; Auslandsgespäche werden an 00 erkannt.
exten => _00[1-9].,1,Dial(SIP/${EXTEN}@${PROVIDER},Tt)
[verboten]
exten => _0190.,1,Answer()
exten => _0190.,1,Hangup()
exten => _0900.,1,Answer()
exten => _0900.,1,Hangup()
[notrufnummern]
exten => 110,1,Dial,(SIP/${ORT}110@${PROVIDER})
exten => 112,1,Dial,(SIP/${ORT}110@${PROVIDER})
[outgoing]
exten => _9X.,1,Set(CALLERID(number)=xxxxx)
exten => _9X.,2,Dial(Zap/4/wwxxxxxw,tT)
exten => _0X.,1,Set(CALLERID(number)=xxxxx)
exten => _0X.,2,Dial(mISDN/g:Amt/${EXTEN:1})
[produktion]
include => intern
include => notrufnummern
include => outgoing
[verkauf]
include => intern
include => notrufnummern
include => verboten
include => extern
include => outgoing
[chef]
include => intern
include => notrufnummern
include => extern
include => ausland
include => outgoing
[wochenende]
exten => xxxxx,1,Answer()
exten => xxxxx,2,Playback(wochenende)
exten => xxxxx,,Hangup()
[feierabend]
exten => xxxxx,1,Answer()
exten => xxxxx,2,Playback(feierabend)
exten => xxxxx,,Hangup()