[Asterisk-Users] Call Forwarding and DND conf

Brian West brian at bkw.org
Mon Jul 28 22:19:18 MST 2003


I have put together this call forwarding and dnd config:

I'm sure it can be dome with macro's but I couldn't figure that out...
anyone care to input.


74 Turns DND on my phone will not ring, drops caller to voicemail...
73 Turns DND off

72+ext forward your extension to another extension and voicemail is left
at the forwarded extension.

71 turns off call forwarding.



; dnd Could add some nice audio in here to confirm these.
exten => _74,1,DBput(DND/${CALLERIDNUM}=YES})
exten => _74,2,Hangup
exten => 73,1,DBdel(DND/${CALLERIDNUM})
exten => 73,2,Hangup

; call forwarding
exten => _72X.,1,DBput(SIP/${CALLERIDNUM}=${EXTEN:2})
exten => _72X.,2,SayDigits,${CALLERIDNUM}
exten => _72X.,3,SayDigits,${EXTEN:2}
exten => _72X.,4,Hangup
exten => 71,1,DBdel(SIP/${CALLERIDNUM})
exten => 71,2,Hangup

; i'm sure we can do this with macro's
exten => 2000,1,DBget(temp=SIP/2000)
exten => 2000,2,Goto(${temp}|1)
exten => 2000,102,Goto(2000|3)
exten => 2000,3,DBget(dnd=DND/2000)
exten => 2000,4,Goto(2000|6)
exten => 2000,104,Goto(2000|5)
exten => 2000,5,Dial(SIP/2000,20)
exten => 2000,6,Voicemail2(u2000)
exten => 2000,7,Hangup
exten => 2000,106,Voicemail2(b2000) ; busy
exten => 2000,107,Hangup


Thanks,
Brian







More information about the asterisk-users mailing list