How do I set individual days in Incoming Calls?


I hope this is a question with an easy answer. I need to set Incoming calls so our business hours are Monday through Friday, and Sunday. So far, everything I’ve tried confuses Asterisk so it just turns off regular hours rules and goes to after hours voicemail! In the AMP I have tried:

“mon-fri, sun”
“mon-fri sun”
“mon tue wed thu fri sun”
“mon, tue, wed, thu, fri, sun”

I’ve checked through the documentation, Googled for an hour, and browsed everything in the sticky FAQ, and all the Incoming Calls docs I can find use the same two examples “mon-fri” or “*”.

How can I enter the days so I don’t have to assign someone to turn after hours on manually?


If it’s any help here’s a time of day sequence that works for me:

exten => s,1,Answer()
exten => s,2,Set(TIMEOUT(response)=5)
exten => s,3,Set(TIMEOUT(digit)=5)
exten => s,4,Set(try=0)
exten => s,5,GotoIfTime(06:30-17:00,mon-fri,,?greetntransferopen,s,1)
exten => s,6,GotoIfTime(08:00-12:00,sat,,,?greetntransferopen,s,1)
exten => s,7,GotoIfTime(08:00-12:00,sun,,,?greetntransferopen,s,1)
exten => s,8,Goto(greetntransferclosed,s,1)

“greetntransferopen” and “greetntransferclosed” are other contexts with call processing instructions that I want followed depending on time of day.

In the above example, we’re open from 06:30 (6:30am) to 17:00 (5:00pm), monday through friday, on all days of the month, (), in all months ().

We’re also open from 08:00 (8:00am) until 12:00 (12 noon) on both saturday and sunday, on all days of the month (), in all months ().

Otherwise we’re closed.

If we were only open on the 15th of the month, it would look like this:

exten => s,5,GotoIfTime(06:30-17:00,,15,?greetntransferopen,s,1)

You can find more about the gotoiftime application here: