CFD - Time Based Dial Code

Status
Not open for further replies.

SimonGH

Free User
Joined
Aug 8, 2023
Messages
7
Reaction score
0
Hi everyone,

I have a central phone with 2 BLF buttons programmed. Day/Night which are of course IN/OUT *641/*642.

I also know that *64 will force our system into default office hours.
I want to keep the buttons so early birds or late workers can still manually work the system.


But every workday at 08:00 I want the *64 to be called automatically. I looked into CFD but I'm not really sure how to make it work.
I've set a schedule to make a call at 8am from my own device to "*64". Doesn't work.


I've also been trying with c# code like : ((int)DateTime.Now.DayOfWeek) > 0 && ((int)DateTime.Now.DayOfWeek) < 6 && DateTime.Now.Hour == 8;
But doesn't work.

error:
Error: Property 'Condition' has an invalid expression at component 'conditionalComponentBranch1' - Expression '(DateTime.Now.Hour >= 8 && DateTime.Now.Hour < 12) || (DateTime.Now.Minute < 30 && DateTime.Now.Hour == 12)'. (file Main.flow)


Have any of you tried this before? or found an alternative method?
Help would be much appreciated, thank you in advance!
 
Can somebody please take a look at this issue if possible?
Thank you.
 
Conditions should use Expressions, not C# code.

Use the Expression Editor. (The FX button)
 
  • Like
Reactions: Evolute IT
Apologies,
But I can't get it to work.

I also read the following: it needs to receive a call to start working. Also, the dialer continues working indefinitely until you restart the 3CX Call Flow Server service.

Meaning a dialer won't work if it doesn't receive a call? Is there a way to setup a Time & Date for this?
 
Last edited:
Conditions should use Expressions, not C# code.

Use the Expression Editor. (The FX button)
I wouldn't quite know where to begin with that.
 
I also read the following: it needs to receive a call to start working. Also, the dialer continues working indefinitely until you restart the 3CX Call Flow Server service.
Yes, this is a limitation of CFD dialers. They need that you make a call so they can start. Once you do it, they run continuously in the background.

If you're lost, please start by playing with the CFD following the example guides:
https://www.3cx.com/docs/manual/call-flow-designer/

It's important that you understand what you're doing, and for that you need to learn how to use the CFD, before you go with a real project. If you can't or don't want to do this, you can always hire a 3CX Partner to develop the app for you.
 
  • Like
Reactions: Evolute IT
Okay well thank you all for your time.
Will look into this more before trying to make this work.
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet