Hi,
i was trying to do the call forwarding in my asterisk… i read the voip-info.org/call forwarding… still i am not able to understand the that, can any one help me out by simple call forward dial plan in asterisk 1.2.7.1…
Thanks in advance.
Hi,
i was trying to do the call forwarding in my asterisk… i read the voip-info.org/call forwarding… still i am not able to understand the that, can any one help me out by simple call forward dial plan in asterisk 1.2.7.1…
Thanks in advance.
Any help appreciated…
ok, ok, here’s a call-forward app from an ol A@H install :
[app-callforward]
; dialed call forward app - forwards calling extension
exten => _*72.,1,NoOp(Setting up CallForward Unconditional)
exten => _*72.,2,DBput(CF/${CALLERIDNUM}=${EXTEN:3})
exten => _*72.,3,Answer
exten => _*72.,4,Wait(1)
exten => _*72.,5,Playback(call-fwd-unconditional)
exten => _*72.,6,Playback(for)
exten => _*72.,7,Playback(extension)
exten => _*72.,8,SayDigits(${CALLERIDNUM})
exten => _*72.,9,Playback(is-set-to)
exten => _*72.,10,SayDigits(${EXTEN:3})
exten => _*72.,11,Macro(hangupcall)
; prompting call forward app - forwards entered extension
exten => *72,1,Answer
exten => *72,2,Wait(1)
exten => *72,3,BackGround(please-enter-your)
exten => *72,4,Playback(extension)
exten => *72,5,Read(fromext,then-press-pound)
exten => *72,6,Wait(1)
exten => *72,7,BackGround(ent-target-attendant)
exten => *72,8,Read(toext,then-press-pound)
exten => *72,9,Wait(1)
exten => *72,10,DBput(CF/${fromext}=${toext})
exten => *72,11,Playback(call-fwd-unconditional)
exten => *72,12,Playback(for)
exten => *72,13,Playback(extension)
exten => *72,14,SayDigits(${fromext})
exten => *72,15,Playback(is-set-to)
exten => *72,16,SayDigits(${toext})
exten => *72,17,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,NoOp(Cancelling CallForward)
exten => *73,2,DBdel(CF/${CALLERIDNUM})
exten => *73,3,Answer
exten => *73,4,Wait(1)
exten => *73,5,Playback(call-fwd-cancelled)
exten => *73,6,Macro(hangupcall)
; dialed call forward on busy app - forwards calling extension when busy
exten => _*90.,1,NoOP(Setting up CallForward on Busy)
exten => _*90.,2,DBput(CFB/${CALLERIDNUM}=${EXTEN:3})
exten => _*90.,3,Answer
exten => _*90.,4,Wait(1)
exten => _*90.,5,Playback(call-fwd-on-busy)
exten => _*90.,6,Playback(for)
exten => _*90.,7,Playback(extension)
exten => _*90.,8,SayDigits(${CALLERIDNUM})
exten => _*90.,9,Playback(is-set-to)
exten => _*90.,10,SayDigits(${EXTEN:3})
exten => _*90.,11,Macro(hangupcall)
; cancels call forward on busy for calling extension
exten => *91,1,NoOp(Cancelling CallForward on Busy)
exten => *91,2,DBdel(CFB/${CALLERIDNUM})
exten => *91,3,Answer
exten => *91,4,Wait(1)
exten => *91,5,Playback(call-fwd-on-busy)
exten => *91,6,Playback(de-activated)
exten => *91,7,Macro(hangupcall)
exten => h,1,Hangup
i use asterisk 1.2.7.1, will this code supported in my version of asterisk ?
no reason it shouldn’t - instead of asking, you could just copy/paste, reload, and see for yourself…
if i remember correctly, it’s originally from Asterisk@Home 1.4 !! as whoiswes said, there’s nothing in there that’s particularly special.
you probably want to replace anything that says Macro(hangupcall) with HangUp()
Hi.
Thats the code for storing the Database entries in the Old, Now dericiated 1.0 format.
The tricky bit is getting the call to be handled correctly in the macro.
for example
we have users a b and c
for example b forwards to c
a calls b which rings c which doesnt answer and it should then go to b’s voicemail not c’s which depending on how the macro is done it wont. It gets even more compicated when you have to consider transfered calls.
Then handling chains is even more knarly
Ian
can you please help me what are all the codes needs to change as what and where?
Thanks in advance
apart from Asterisk 1.2.7 we have no idea what kind of setup you have.
if you wanted to use the dialplan section i posted above, it goes in extensions.conf and needs to be "include"d in the context that your internal extensions begin in.
you’ll also need to modify extensions.conf so that the dialplan checks the ASTDB for the extension you’re calling and calls the right extension if CF is set.
ians a,b,c scenario isn’t one i’ve considered before, but i like it. the ability to set where a VM goes in the event of an unanswered CF call is a nice touch. but that’s where it gets more complicated than just cut&paste.
Hi,
My setup 1.2.7.1 and having tdm2400 and sip extensions.with very simple setup…