Time based Dial Plans in Asterisk
Syntax:
include => context||||
e.g:
include = day,08:00-16:59,mon-fri,,
; First, let's do the holidays include => holiday|||1|jan include => holiday|||31|may include => holiday|||4|jul include => holiday|||6|sep include => holiday|17:00-23:59||24|nov include => holiday|||25|nov include => holiday|17:00-23:59||24|dec include => holiday|||25|dec include => holiday|17:00-23:59||31|dec ; these are the days we're open include => day|09:00-19:59|mon-fri||* include => day|10:00-14:59|sat|| ; if we're not open, we're closed (duh!) include => night|20:00-8:59|mon-fri|| include => night|15:00-9:59|sat|| include => night||sun||*