[Asterisk-Users] Do Not Disturb?

Doug Lytle support at drdos.info
Thu Mar 16 07:04:50 MST 2006


Brian McEntire wrote:
> I looked on the voip-info wiki and found sparse and conflicting 
> information on how to do this with Asterisk...
>
> My incoming lines are all on Zaptel. Is there a simple why to 
> implement a '*363" (do not disturb) toggle via the dialplan?

I have an extension for activating/de-activating voicemail call backs.

You should be able to do the same for DND:


[callback-activate]

exten => 80*,1,Set(CALLBACK=${DB(vmcallback/${CALLERIDNUM})})
exten => 80*,2,GotoIf($["${CALLBACK}" = "YES"]?80*,3:80*,101)
exten => 80*,3,Set(DB(vmcallback/${CALLERIDNUM})=NO)
exten => 80*,4,Playback(local/stutter)
exten => 80*,5,Playback(local/deactivated)
exten => 80*,6,Hangup()
exten => 80*,101,Set(DB(vmcallback/${CALLERIDNUM})=YES)
exten => 80*,102,Playback(local/stutter)
exten => 80*,103,Playback(local/activated)
exten => 80*,104,Hangup()

You can do the same thing with DND.  Turn the value on or off, then in 
your dial string, check the database value and act accordingly.

Doug

-- 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."





More information about the asterisk-users mailing list