[Asterisk-Users] "night" mode ideas

Andrew Kohlsmith akohlsmith-asterisk at benshaw.com
Sun Nov 7 13:41:06 MST 2004


On November 7, 2004 03:30 pm, Tom Lahti wrote:
> The system wants to have different incoming call handling more-or-less
> based on time of day, but we don't want it to be at some precise UNIX time,
> but rather under human control, so if people stay late they can keep it in
> a more appropriate mode.
>
> What we're looking for is a way for someone on the system to pick up an
> extension and dial some code that changes the incoming call context, i.e.
> manually switching incoming call handling.  We want incoming calls to ring
> extension X->Y->Z in one mode, ring only Z in a second mode, and only take
> voicemail in a 3rd mode.  Th idea I came up with to solve this was to code
> a special extension for each mode that used Authenticate() and then
> System() to copy a different extensions.conf into place and restart
> Asterisk for each mode.  Restarting seems a bit harsh since it will drop
> any calls in progress.

Use GotoIfTime as the default behaviour, but then allow internal sets to set a 
DB variable which gets checked in the night mode...  and perhaps a cron job 
that clears that override DB value every night at 11pm or something?

-A.



More information about the asterisk-users mailing list