[Asterisk-Users] Macro Forward Calls

AstGrp astgrp at cwkb.com
Wed Feb 25 19:01:18 MST 2004


Having a problem with call forwarding.... If I call into the main number
go through the auto attendant and choose the persons extension it
forwards out to there alt number they specified.  But if call them
directly via there DID... The call rings back the person calling the
DID.. Dosen't make since to me any ideas????

-gcc

exten => s,1,DBget(temp=CFIM/${ARG1})
exten => s,2,Dial(Zap/g2/${temp}1)
exten => s,102,Goto(s|3)
exten => s,3,Dial(${ARG2},15)
exten => s,103,Goto(s|50)
exten => s,4,Voicemail2(u${ARG1})
exten => s,5,Hangup
exten => s,104,Voicemail2(b${ARG1}) ; busy
exten => s,105,Hangup

exten => 2564,1,Answer
exten => 2564,2,Goto(default,3001,1)
include => default

;Todd Greene
exten => 3001,1,Macro(stdexten,tgreene,SIP/tgreene)

; Call Forward to (Cell, etc.)
exten => _*5X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:2})
exten => _*5X.,2,Hangup
exten => *5,1,DBdel(CFIM/${CALLERIDNUM})
exten => *5,2,Hangup



More information about the asterisk-users mailing list