Setting individual non-working hours for a provider account
Formulation of the problem
Solution
Method 1




Method 2




ExecIfTime command
Last updated
Was this helpful?
Was this helpful?
[SIP-1687941868-incoming-custom]
exten => _.!,1,NoOp(check time)
same => n,ExecIfTime(00:00-09:00,mon-fri,*,*?Macro(playback-exit,/offload/asterisk/sounds/other/out_work_times))
same => n,ExecIfTime(18:00-23:59,mon-fri,*,*?Macro(playback-exit,/offload/asterisk/sounds/other/out_work_times))
same => n,return[PROVIDER-ID-incoming-custom]ExecIfTime(times,weekdays,mdays,months?appname[(appargs)])ExecIfTime(00:00-08:00,mon-fri,*,*?Macro(playback-exit,/offload/asterisk/sounds/other/out_work_times))