you can use SAR for this option
SAR: Scheduled Access Restriction data block
Prompt Response Comment
REQ aaa Request (aaa = CHG, END, NEW, OUT, or PRT)
TYPE SAR Type = SAR (Scheduled Access Restriction)
CUST xx Customer number associated with this function
SPWD xxxx Secure Data Password
SGRP 0- 999 SAR Group number
SCDR ( NO) YES Activate CDR for the SAR code feature
OFFP 1-8 Off-hour Period number
- STAR hh mm Start time
- STOP hh mm Stop time
- DAYS d ... d Respond with a new set of days to be used
- COS a...a Class of Service
- TGAR 0-(1)-31 Trunk Group Access Restriction
- NCOS (0)-99 Network Class of Service
ICR (NO) YES Incoming Calls are Restricted.
LOCK (1)-8 Lock period
after creating sar group change the sgrp of the phone