Time Conditions - AGI

I am calling a PHP AGI from an IVR, I have 2 IVRs, one for normal hours and one for after hours, the question is is there a variable that I could pass to the AGI that indicates the time condition?

If there isn’t, I’m sure there’s a way to query the ASTDB from your AGI to get the current time condition.

I am sure you can query the time condition variable, I just do not know what it is (probably some keypair in AstDB?).

If the time is more general, just operating hours, you could insert some dialplan like this:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.