Under system settings class of service, external block. You block the trunk group to a class of service for the line you want to disable access to, then in extensions set thr extension to that group. Use class of service above 7, and you can add set the restrictions on day, night, lunch and night using cos 1-7