Hello guys,
After digging a bit on this, I realized that the current version of the CFD Tool will generate C# code that will not use the new office hours from the departments. So until 3CX releases a new version of the CFD Tool containing the changes to work properly on v20, the only way to have this working is manually editing the C# code generated by the CFD.
These are the changes you need to do:
1) Add the following line under private OnlineServices onlineServices;
private OfficeHoursManager officeHoursManager;
2) Add the following line under this.timerManager.CallStarted();
this.officeHoursManager = new OfficeHoursManager(MyCall);
3) Replace everywhere:
IsServerOfficeHourActive(myCall)
with:
officeHoursManager.IsOfficeHours()
4) Replace everywhere:
IsServerInHoliday(myCall)
with:
officeHoursManager.IsHoliday()
With these changes to the C# code, the CFD app should work according to the following:
- When the CFD app is "system wide", it should follow the office hours for the "default" departament.
- When the CFD app is assigned to a departament, it should follow the office hours of that department.