Hallo
I configured callforward in asterisk but it only forwards the internal calls and not the external calls from ISDN lines.
Is there someone in the forum that allso had this problem and solved it? I am running asterisk 1.4.2, without webinterface.
Some help would be appreciated,
Thanks
Willy
PS:
I used the macro:
For asterisk 1.4
from :http://www.nslu2-linux.org/wiki/Optware/AsteriskStdextenMacro
[macro-stdexten];
;
; Standard extension macro:
; ${ARG1} - Extension (we could have used ${MACRO_EXTEN} here as well
; ${ARG2} - Device(s) to ring
; ${ARG3} - Dial command arguments
;
exten => s,1,GotoIf(${DB_EXISTS(CFU/${ARG1})}?2:4) ; If CFU key not existing, ring the interface
exten => s,2,Dial(Local/${DB_RESULT}@default/n) ; Unconditional Forward
exten => s,3,Voicemail(${ARG1},u) ; If CFU failed, send to voicemail w/ unavail announce
exten => s,4,Dial(${ARG2},30,${ARG3}) ; Ring the interface, 30 seconds maximum
exten => s,5,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => s-NOANSWER,1,GotoIf(${DB_EXISTS(CFNA/${ARG1})}?2:3) ; If CFNA key not existing, goto voicemail
exten => s-NOANSWER,2,Dial(Local/${DB_RESULT}@default/n) ; Forward on No Answer
exten => s-NOANSWER,3,Voicemail(${ARG1},u) ; If unavailable, send to voicemail w/ unavail announce
exten => s-NOANSWER,4,Goto(s,4) ; If they press #, return to ring the interface
exten => s-BUSY,1,GotoIf(${DB_EXISTS(CFB/${ARG1})}?2:3) ; If CFB key not existing, goto voicemail
exten => s-BUSY,2,Dial(Local/${DB_RESULT}@default/n) ; Forward on Busy
exten => s-BUSY,3,Voicemail(${ARG1},b) ; If busy, send to voicemail w/ busy announce
exten => s-BUSY,4,Goto(s,4) ; If they press #, return to ring the interface
exten => _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer
exten => a,1,VoicemailMain(${ARG1}@default) ; If they press *, send the user into VoicemailMain