Hi there,
I use asterisk 1.2.7.1 version. i am trying to do the call forwarding in the asterisk level itself. so i found the call forwarding the configuration in the http://www.voip-info.org site. I have doubt in the config file, which code i need to use in the extensions.conf…
i am trying to use the content from site… i am not sure it will work… below is my extensions.conf … please suggest me to modify and so that to make it work…
[default]
include => epo
exten => s,1,Wait(1)
exten => s,2,Answer()
exten => s,3,Background(welcome)
exten => s,4,WaitExten(10)
exten => s,5,Background(welcome)
exten => s,6,WaitExten(10)
exten => s,7,Goto(411,1)
exten => i,1,Goto(411,1)
exten => i,2,Hangup ()
[epo]
exten => _NXXNXXXXXX,1,Dial(Zap/G1/wwwwww1${EXTEN}|20,tWw)
exten => _NXXNXXXXXX,2,Congestion()
exten => _NXXNXXXXXX,102,busy()
exten => 294,1,Dial(SIP/294,20,rtT)
exten => 294,2,VoiceMail(294@voicemail)
exten => 294,3,PlayBack(vm-goodbye)
exten => 294,4,Hangup()
exten => 218,1,Dial(SIP/218,20,rtT)
exten => 218,2,VoiceMail(218@voicemail)
exten => 218,3,PlayBack(vm-goodbye)
exten => 218,4,Hangup()
exten => 281,1,Dial(SIP/281,20,rtT)
exten => 281,2,VoiceMail(281@voicemail)
exten => 281,3,PlayBack(vm-goodbye)
exten => 281,4,Hangup()
exten => _21X.,1,GotoIf($${EXTEN:-1} = #?2:3)
exten => _21X.,2,StripLSD(1)
exten => _21X.,3,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4})
exten => _21X.,4,Hangup
;delete call forward
exten => **21,1,DBdel(CFIM/${CALLERIDNUM})
exten => **21,2,Hangup
;delete call forward (with #)
exten => **21#,1,Goto(**21,1)
[macro-stdexten]
;
; Standard extension macro (with call forwarding):
; ${ARG1} - Extension(we could have used ${MACRO_EXTEN} here as well
; ${ARG2} - Device(s) to ring
;
exten => s,1,Set(temp=${DB(CFIM/${ARG1})})
exten => s,n,GotoIf(${temp}?cfim:nocfim)
exten => s,n(cfim),Dial(Local/${temp}@default/n) ; Unconditional forward
exten => s,n(nocfim),NoOp
exten => s,n,Dial(${ARG2},15) ; 15sec timeout
exten => s,n,Set(temp=${DB(CFBS/${ARG1})})
exten => s,n,GotoIf(${temp}?cfbs:nocfbs)
exten => s,n(cfbs),Dial(Local/${temp}@default/n) ; Forward on busy or unavailable
exten => s,n(nocfbs),Busy
Thanks in advce
Rizwan