[asterisk-users] Question about Do Not Disturb
Haim Dimer
hdimer at corp.spiritone.com
Fri Feb 27 17:54:07 CST 2009
Thank you Gordon and Alexander. With your help, I got it working like
so:
[app-dnd-on]
exten => *78,1,Answer
exten => *78,n,NoOp(${CALLERID(num)} is going on DND ACTIVE)
exten => *78,n,Set(DB(DND/${CALLERID(num)})=On)
exten => *78,n,Playback(do-not-disturb&activated)
exten => *78,n,Hangup
[app-dnd-off]
exten => *79,1,Answer
exten => *79,n,NoOp(${CALLERID(num)} is going OFF DND)
exten => *79,n,DBdel(DND/${CALLERID(num)})
exten => *79,n,Playback(do-not-disturb&de-activated)
exten => *79,n,Hangup
[...]
exten => _XXXX,1,Set(DND=${DB(DND/${EXTEN})})
exten => _XXXX,n,NoOp(For ${EXTEN}, DND is ${DND})
exten => _XXXX,n,GotoIf(${DND}?unavailable)
[... some normal dialing stuff ...]
exten => _XXXX,n(unavailable),Wait(2)
exten => _XXXX,n,Congestion
Works like a charm. Thank you again,
Haim.
More information about the asterisk-users
mailing list