Bxxxx]
[globals]
DYNAMIC_FEATURES=apps
[macro-apprecord]
exten => s,1,GotoIf($["${XAD}" = "0" | "${XAD}" = ""]?startrec:stoprec)
exten => s,n(startrec),Set(XAD=1)
exten => s,n,SET(aktuelleZeit=${STRFTIME(||%s)})
exten => s,n,SET(CALFILENAME=${aktuelleZeit}-${EXTEN}-${CALLERID(number)})
exten => s,n,Set(MONITOR_EXEC_ARGS=&& nice -n 19 /usr/local/bin/lame -b 96 -t -F -m m --bitwidth 16 --quiet "/var/spool/asterisk/monitor/${CALFILENAME}.wav" "/var/spool/asterisk/monitor/${CALFILENAME}.mp3" && rm -f "/var/spool/asterisk/monitor/${CALFILENAME}.wav")
exten => s,n,Monitor(wav,${CALFILENAME},m)
exten => s,n,MacroExit
exten => s,n(stoprec),StopMonitor
exten => s,n,Set(XAD=0)
exten => s,n,MacroExit
[meine-telefone]
;intern
exten=>_2XX,1,Dial(SIP/${EXTEN})
;Klingel
exten=>723,1,Dial(SIP/723)
exten=>722,1,Dial(SIP/722)
exten=>724,1,Dial(SIP/724)
;raustelefonieren
TELERAUS=0
exten=>_0X.,1,SET(TELERAUS=205349xxx${CALLERID(number):1})
exten=>_0X.,n,SET(CALLERID(num)=${TELERAUS})
exten=>_0X.,n,Dial(mISDN/g:AnlagenAnschluss/${EXTEN:1},,wW)
[eingehend]
TELENUMMER=0
;RUFumleitung
;erster versuch
;exten=>49xxx,1,Answer()
;exten=>49xxx,n,Dial(mISDN/g:AnlagenAnschluss/0163)
;exten=>49xxx,n,Hangup()
;zweiter versuch
exten=>49xxx,1,Dial(mISDN/g:AnlagenAnschluss/0163xxxx)
;zentrale
exten=>_49xxx,1,SET(TELENUMMER=${CALLERID(number)})
exten=>_49xxx,n,SET(CALLERID(all)=0${TELENUMMER})
exten=>_49xxx,n,Dial(SIP/210&SIP/214,8)
exten=>_49xxx,n,DiaL(SIP/210&SIP/724&SIP/218&SIP/214,60)
exten=>_49xxx,n,Hangup()