Hier meine extensions.conf
[globals]
[default]
exten => 1000,1,Answer()
exten => 1000,2,Playback(hello-world)
exten => 1000,3,Hangup()
;zeitansage
exten => 1001,1,Set(LANGUAGE()=de)
exten => 1001,n,Answer
exten => 1001,n,Wait(1)
exten => 1001,n,SayUnixTime( ,CET, a) ;Wochentag
exten => 1001,n,SayUnixTime( ,CET, d)
exten => 1001,n,SayUnixTime( ,CET, m) ; b
exten => 1001,n,SayUnixTime( ,CET, Y)
exten => 1001,n,Wait(1)
exten => 1001,n,SayUnixTime( ,CET, k) ; Stunde
exten => 1001,n,Playback(oclock)
exten => 1001,n,SayUnixTime( ,CET, M) ; Minute
exten => 1001,n,Playback(minutes)
exten => 1001,n,SayUnixTime( CET, S) ; Sekunde
exten => 1001,n,Wait(1)
exten => 1001,n,goto(9,1)
;Schaltung zwischen 9 - 12 Uhr hier wird das Gespraech entgegen genommen vom System
include => vormittag,09:00-12:00,mon-fri,*,*
include => nachmittags,13:00-14:00,mon-thu,*,*
include => feierabend
[vormittag]
include => incoming-voice
[nachmittags]
include => incoming-voice
[feiertag]
[wochenende]
[feierabend]
[sonstige]
;////////////////////////////////////////////////////////////////////////////////////////////////
[geschaeftsleitung]
include => meine-telefone
include => incoming-voice
include => default
include => voicemail-intern
include => outgoing-voice
include => notrufnummern
[serverraum]
include => meine-telefone
include => incoming-voice
include => default
include => outgoing-voice
include => notrufnummern
[buero]
include => meine-telefone
include => incoming-voice
include => default
include => outgoing-voice
include => verbotene-nummern
include => notrufnummern
;////////////////////////////////////////////////////////////////////////////////////////////////
;////////////////////////////////////////////////////////////////////////////////////////////////
[meine-telefone]
;interne telefonie im netz
;wie sollen die internen telefone angesprochen werden
exten => _1XX,1,Dial(SIP/${EXTEN},${ZEIT},t)
exten => _1XX,2,Voicemail(${EXTEN},u)
;keine Voicemail fuer serverraum
exten => 105,1,Dial(SIP/113,${{ZEIT})
exten => 99,1,VoiceMailMain(${CALLERID(num)})
exten => 9999,1,VoiceMailMain()
;////////////////////////////////////////////////////////////////////////////////////////////////
;////////////////////////////////////////////////////////////////////////////////////////////////
[voicemail-intern]
exten => 2999,1,VoiceMailMain(${CALLERID(num)},s) ;voicemal abfragen mit 2999
;////////////////////////////////////////////////////////////////////////////////////////////////
;////////////////////////////////////////////////////////////////////////////////////////////////
[outgoing-voice]
exten => _0[1-9].,1,Dial(SIP/${EXTEN}@ext-sip-account) ;ausgehende anrufe
;////////////////////////////////////////////////////////////////////////////////////////////////
;////////////////////////////////////////////////////////////////////////////////////////////////
[incoming-voice] ;kunde waehlt 4711
exten => 4711,1,Answer()
exten => 4711,n,Dial(SIP/103&SIP/104)
;/////////////////////////////////////////////////////////////////////////////////////////////
;verbotene nummern
[verbotene-nummern]
exten => _0190.,1,Answer() ;wenn 0190 gewahlt wird dann haenge sofort auf
exten => _0190.,2,Hangup()
exten => _0180.,1,Answer() ;wenn 0180 gewahlt wird dann haenge sofort auf
exten => _0180.,2,Hangup()
exten => _0900.,1,Answer() ;wenn 0900 gewahlt wird dann haenge sofort auf
exten => _0900.,2,Hangup()
exten => _017X.,1,Answer() ;wenn 017 gewahlt wird dann haenge sofort auf
exten => _017X.,2,Hangup()
exten => _016X.,1,Answer() ;wenn 0160 gewahlt wird dann haenge sofort auf
exten => _016X.,2,Hangup()
;//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
und die sip.conf
[general]
context=default
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
qualify=no
disallow=all
allow=ulaw
allow=ilbc
allow=alaw
allow=g729
allow=gsm
allow=slinear
nat=yes
language=de
;Vorgabe des Ablaufes der SIP-Anmeldung in Sekunden
defaultexpiry = 900
;Maximaler Ablauf in Sekunden
maxexpiry = 3600
;Modus des Mehrfrequenzwahlverfahren (MFV) - wichtig fuer Telefonmenus
dtmfmode = auto
;Anmeldung des SIP-Accounts
register => xxxxxxxxx:
[email protected]
;erstes Tel
[103]
type=friend
secret=0000
host=dynamic
context=buero ; <-- Context
;zweites Tel
[104]
type=friend
secret=1234
host=dynamic
context=buero ; <-- Context