Откуда: Москва
Сообщений: 3421
|
Re: Call Forwarding как?
Часть extensions.conf из проекта AMP:
[app-callforward]
; dialed call forward app - forwards calling extension
exten => _*72.,1,DBput(CF/${CALLERIDNUM}=${EXTEN:3})
exten => _*72.,2,Answer
exten => _*72.,3,Wait(1)
exten => _*72.,4,Playback(loligo/call-fwd-unconditional)
exten => _*72.,5,Playback(loligo/for)
exten => _*72.,6,Playback(loligo/extension)
exten => _*72.,7,SayDigits(${CALLERIDNUM})
exten => _*72.,8,Playback(loligo/is-set-to)
exten => _*72.,9,SayDigits(${EXTEN:3})
exten => _*72.,10,Macro(hangupcall)
; prompting call forward app - forwards entered extension
exten => *72,1,Answer
exten => *72,2,Wait(1)
exten => *72,3,BackGround(allison7/please-enter-your)
exten => *72,4,Playback(extension)
exten => *72,5,Playback(then-press-pound)
exten => *72,6,Playback(beep)
exten => *72,7,Read(fromext)
exten => *72,8,Wait(1)
exten => *72,9,BackGround(ent-target-attendant)
exten => *72,10,Background(then-press-pound)
exten => *72,11,Playback(beep)
exten => *72,12,Read(toext)
exten => *72,13,Wait(1)
exten => *72,14,DBput(CF/${fromext}=${toext})
exten => *72,15,Playback(call-fwd-unconditional)
exten => *72,16,Playback(for)
exten => *72,17,Playback(extension)
exten => *72,18,SayDigits(${fromext})
exten => *72,19,Playback(is-set-to)
exten => *72,20,SayDigits(${toext})
exten => *72,21,Macro(hangupcall)
; cancels dialed extension call forward
exten => _*73.,1,DBdel(CF/${EXTEN:3})
exten => _*73.,2,Answer
exten => _*73.,3,Wait(1)
exten => _*73.,4,SayDigits(${EXTEN:3})
exten => _*73.,5,Playback(call-fwd-cancelled)
exten => _*73.,6,Macro(hangupcall)
; cancels call forward for calling extension
exten => *73,1,DBdel(CF/${CALLERIDNUM})
exten => *73,2,Answer
exten => *73,3,Wait(1)
exten => *73,4,Playback(loligo/call-fwd-cancelled)
exten => *73,5,Macro(hangupcall)
exten => h,1,Hangup
|