Time Conditions - AGI

freepbx
Tags: #<Tag:0x00007fafc6e3c4c0>

(Momo) #1

Hello:
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?
thx.


(Dave Burgess) #2

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


#3

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:


(system) closed #4

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