[Asterisk-Users] Call Forwarding and DND conf

Brian West brian at bkw.org
Tue Jul 29 14:36:12 MST 2003


OK I have revised this a bit it might help someone out there:

[dnd]
exten => _74,1,DBput(DND/${CALLERIDNUM}=YES})
exten => _74,2,Playback(dnd-on)
exten => _74,3,SoftHangup
exten => _73,1,DBdel(DND/${CALLERIDNUM})
exten => _73,2,Playback(dnd-off)
exten => _73,3,SoftHangup

[callforward]
exten => _72X.,1,DBput(SIP/${CALLERIDNUM}=${EXTEN:2})
exten => _72X.,2,SayDigits,${CALLERIDNUM}
exten => _72X.,3,SayDigits,${EXTEN:2}
exten => _72X.,4,Playback(vm-goodbye)
exten => _72X.,5,SoftHangup
exten => _71,1,DBdel(SIP/${CALLERIDNUM})
exten => _71,2,Playback(vm-goodbye)
exten => _71,3,SoftHangup

[macro-stdexten]
exten => s,1,DBget(temp=SIP/${ARG1})
exten => s,2,Goto(from-sip,${temp}|1)
exten => s,102,Goto(s|3)
exten => s,3,DBget(dnd=DND/${ARG1})
exten => s,4,Goto(s|6)
exten => s,104,Goto(s|5)
exten => s,5,Dial(SIP/${ARG1},30,Ttm)
exten => s,6,Voicemail2(u${ARG1})
exten => s,7,Hangup
exten => s,106,Voicemail2(b${ARG1}) ; busy
exten => s,107,Hangup

[from-sip]
include => dnd
include => callforward

exten => 2000,1,Macro(stdexten,2000)
exten => 2000,2,Congestion


You can customize it to how you want it.. It currently only works with sip
but you could make it work with other setups with minor modifications.

bkw

On Tue, 29 Jul 2003, Brian West wrote:

> 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
>
>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list