#include /etc/asterisk/extensions_custom.conf
[general]
static=yes
writeprotect=no
priorityjumping=yes
[zeitsteuerung]
exten => s,1,GoToIfTime(09:00-18:15|mon|*|*?${context},${target},8)
exten => s,2,GoToIfTime(09:00-18:15|tue|*|*?${context},${target},8)
exten => s,3,GoToIfTime(09:00-18:15|wed|*|*?${context},${target},8)
exten => s,4,GoToIfTime(09:00-18:15|thu|*|*?${context},${target},8)
exten => s,5,GoToIfTime(09:00-18:00|fri|*|*?${context},${target},8)
exten => s,6,Playback(/mnt/kd/accessvoip/sounds/timeabrec)
exten => s,7,voicemail(s2@default)
[BLF_Group_1]
exten => 2,hint,SIP/2
exten => 3,hint,SIP/3
exten => 5,hint,SIP/5
exten => 30,hint,SIP/30
exten => 31,hint,SIP/31
exten => 32,hint,SIP/32
exten => 33,hint,SIP/33
exten => 34,hint,SIP/34
exten => 35,hint,SIP/35
exten => 36,hint,SIP/36
exten => 60,hint,SIP/60
exten => 6,hint,SIP/6
exten => 7,hint,SIP/7
exten => 0,hint,SIP/0
[Gruppencall]
exten => Gruppe1,1,Dial(SIP/2&SIP/3&iax2/4&SIP/5&SIP/6,60,t)
exten => Gruppe2,1,Dial(SIP/3iax2/4SIP/5,60,t)
exten => Gruppe3,1,Dial(SIP/2SIP/3iax2/4SIP/5,60,t)
exten => Gruppe4,1,Dial(,60,t)
exten => Gruppe5,1,Dial(,60,t)
exten => Gruppe6,1,Dial(,60,t)
exten => Gruppe7,1,Dial(,60,t)
exten => Gruppe8,1,Dial(,60,t)
exten => Gruppe9,1,Dial(,60,t)
exten => Gruppe10,1,Dial(,60,t)
[default]
include => default-custom
exten => _**X.,1,Pickup(${EXTEN:2})
exten => _**X.,2,Hangup
exten => 10,1,Dial(iax2/TMS/10,60)
exten => 12,1,Dial(iax2/TMS2/12,60)
exten => 20,1,Dial(iax2/TMS2/20,60)
exten => 11,1,Dial(iax2/TMS2/11,60)
exten => 14,1,Dial(iax2/TMS2/14,60)
exten => 15,1,Dial(iax2/TMS2/15,60)
exten => 1802,1,Dial(iax2/TMS3/1802,60)
exten => 2303,1,Dial(iax2/TMS3/2303,60)
exten => 1607,1,Dial(iax2/TMS3/1607,60)
exten => Fax1,1,GoTo(Faxbox1,s,1)
exten => Gruppe1,1,GoTo(Gruppencall,Gruppe1,1)
exten => menue,1,GoTo(menue,s,1)
exten => 99,1,Answer
exten => 99,2,VoiceMailMain(s${CALLERIDNUM}@default)
exten => 99,3,Hangup
exten => 90,1,Playback(/mnt/kd/accessvoip/sounds/kv-aufnahme)
exten => 90,2,Set(dafile=${TIMESTAMP})
exten => 90,3,Record(/mnt/kd/accessvoip/sounds/${dafile}:wav)
exten => 90,4,Wait(1)
exten => 90,5,Playback(/mnt/kd/accessvoip/sounds/${dafile})
exten => 90,6,Wait(1)
exten => 90,7,Hangup
exten => 6601,1,Answer
exten => 6601,2,WaitMusicOnHold(30)
exten => 6601,3,Hangup
exten => 6602,1,Answer
exten => 6602,2,SetMusicOnHold(schleife)
exten => 6602,3,WaitMusicOnHold(30)
exten => 6602,4,Hangup
exten => 663,1,Answer
exten => 663,2,Playback(beep)
exten => 663,3,Echo
exten => 663,4,Playback(demo-echodone)
exten => 663,5,Hangup
exten => 444,1,NoOp
exten => 444,2,Conference(444/MTV)
exten => 2,1,Dial(SIP/2,25,t)
exten => 2,2,Voicemail(su2@default)
exten => 3,1,Dial(SIP/3,60,tw)
exten => 3,2,Hangup
exten => 4,1,Dial(iax2/4,60,tw)
exten => 4,2,Hangup
exten => 5,1,Dial(SIP/5,60,tw)
exten => 5,2,Hangup
exten => 30,1,goto(default,moo.wav,1)
exten => 31,1,Dial(SIP/31,60,t)
exten => 31,2,Hangup
exten => 32,1,Dial(SIP/32,60,t)
exten => 32,2,Hangup
exten => 33,1,Dial(SIP/33,60,t)
exten => 33,2,Hangup
exten => 34,1,Dial(SIP/34,60,t)
exten => 34,2,Hangup
exten => 35,1,Dial(SIP/35,60,t)
exten => 35,2,Hangup
exten => 36,1,Dial(SIP/36,60,t)
exten => 36,2,Hangup
exten => 60,1,goto(outgoingsipgate.de32241,87049,1)
exten => 6,1,Dial(SIP/6,60,tw)
exten => 6,2,Hangup
exten => 7,1,goto(default,Fax1,1)
exten => 0,1,goto(default,2,1)
Dies ist eine Vlines Anlage.
Habe den Hersteller schon gefragt, aber die haben i.M. keine Zeit für Enum.
Habe das mal in meine extension-custom.conf eingetragen:
[international-custom]
exten => _0Z.,1,Goto(enum,4372072${EXTEN:1})
exten => _00Z.,1,Goto(enum,43${EXTEN:1})
exten => _000Z.,1,Goto(enum,${EXTEN})
[enum]
exten => _Z.,1,EnumLookup(${EXTEN})
exten => _Z.,2,Goto(1000)
exten => _Z.,52,Goto(2000)
exten => _Z.,102,Goto(2000)
exten => _Z.,1000,SetCIDNum(+43720720262${CALLERIDNUM})
exten => _Z.,1001,Dial(${ENUM})
exten => _Z.,1002,Goto(1102)
exten => _Z.,1102,SetCIDNum(${CALLERIDNUM:2})
exten => _Z.,1103,Goto(2000)
exten => _Z.,2000,Goto(dialout,${EXTEN},1)