I have a system where I want to enable afterhours to go to different outside cellphones. There is no pattern for who is going to be on call.
I’ve been thinking about having a Day/Night instance for each on call person and hit that *28X at the end of the day and then have a feature code resetting all Day/night instances in the morning to “day”. So far I setup instances *282, *283, *284 and *285 and I added the following into extensions_custom.conf with no luck… when I dial *987 to reset everything, it doesn’t reset them:
[app-daynight-toggle-custom]
exten => *987,1,Answer
exten => *987,n,Wait(1)
exten => *987,n,Set(DB(DAYNIGHT/C2})=DAY)
exten => *987,n,Set(DEVSTATE(Custom:DAYNIGHT2)=NOT_INUSE)
exten => *987,n,Set(DB(DAYNIGHT/C3})=DAY)
exten => *987,n,Set(DEVSTATE(Custom:DAYNIGHT3)=NOT_INUSE)
exten => *987,n,Set(DB(DAYNIGHT/C4})=DAY)
exten => *987,n,Set(DEVSTATE(Custom:DAYNIGHT4)=NOT_INUSE)
exten => *987,n,Set(DB(DAYNIGHT/C5})=DAY)
exten => *987,n,Set(DEVSTATE(Custom:DAYNIGHT5)=NOT_INUSE)
exten => *987,n,Playback(beep&silence/1&day&reception&digits/7&enabled)
exten => *987,n,Hangup
NOTE: I just set the digit to say “7” (&digits/7) to identify the recording…
The idea is to keep it simple to the responsable at the end of the day and a the begining of the day.
Any out of the box ideas?
Thanks