[general]
autofallthrough=no
[interne-telefone]
exten => 100,1,Ringing
exten => 100,n,Wait(3)
exten => 100,n,MeetMe(1234,Mic) ;
exten => 100,n,Hangup
exten => 5555,1,Dial(SIP/5555, 15)
exten => 5555,2,VoiceMail(5555)
exten => 6666,1,Dial(SIP/6666)
exten => 4444,1,Dial(SIP/4444)
exten => 3333,1,Dial(SIP/3333)
exten => 7777,1,Dial(SIP/7777)
exten => 8888,1,Dial(SIP/8888)
exten => 9999,1,Dial(SIP/9999)
; W�hlen
exten => _0XX.,1,set(CALLERID(num)=238238238)
;exten => _0XX.,1,SetCallerPres(prohib)
; Matching von den individuellen Teilnehmern
;exten => _0XX./5555,1,set(CALLERID(num)=328328328)
;exten => _0XX./3333,1,SetCallerPres(prohib)
exten => _0XX.,n,Set(SPYGROUP=10005)
exten => _0XX.,n,Dial(ZAP/g1/${EXTEN:1}) ; ISDN out
exten => 123,1,ChanSpy(,g(10005))
exten => 123,n,Hangup()
; mailbox defaukt for snom defaults
exten => asterisk,1,VoicemailMain(s${CALLERID(num)})
exten => 99,1,VoiceMailMain(${CALLERID(num)},s)
exten => 1010,1,Goto(wg-menu,s,1)
exten => 3333,hint,SIP/3333
exten => 4444,hint,SIP/4444
exten => 5555,hint,SIP/5555
exten => 6666,hint,SIP/6666
exten => 7777,hint,SIP/7777
exten => 8888,hint,SIP/8888
exten => 9999,hint,SIP/9999
[extern238]
exten => _X.,1,Dial(SIP/5555&SIP/4444, 10)
exten => _X.,n,Dial(SIP/5555&SIP/4444&SIP/6666, 10)
exten => _32843287,1,Dial(SIP/9999)
[extern410]
exten => _X.,1,Dial(SIP/6666)
exten => _41006173,1,Goto(wg-menu,s,1)
[wg-menu]
exten => s,1,Wait(1)
exten => s,2,Set(TIMEOUT(digit)=5)
exten => s,3,Set(TIMEOUT(response)=15)
exten => s,4,BackGround(welcome) ; wobei ich hier einfach entweder selber aufnehmen w�rde oder ein fertieges TTP wie z.B: ;http://www.research.att.com/~ttsweb/tts/demo.php
exten => s,5,Waitexten(20)
exten => s,6,Goto(s,4)
exten => 5,1,Goto(call,5555,1)
exten => 6,1,Goto(call,6666,1)
exten => 3,1,Goto(call,3333,1)
[call]
;exten => 5555,1,Dial(SIP/5555)
;exten => 5555,2,Congestion
;exten => 5555,3,Hangup
;exten => 6666,1,Dial(SIP/6666)
;exten => 6666,2,Congestion
[mainmenu]
exten => s,1,Answer
exten => s,2,SetMusicOnHold(default)
exten => s,3,Set(TIMEOUT(digit)=5)
exten => s,4,ResponseTimeout,10
;SAI menu - 1 for tech support, 2 for voicemail, 3 for echo test
exten => s,5,Background(sai-welcome)
exten => s,6,Background(sai-choose)
exten => 2,1,VoicemailMain()
exten => 2,2,Hangup