This was working fine and all of a sudden it just fails.
I have two Time condition groups: 1) Holiday Hours 2) regular hours
they are linked to calendars Holiday and Open respectively.
Call flow control routes to time condition “Holiday Hours” which tests against the “Holiday” calendar. if it matches it send the call to the “Closed” IVR, if it does not match it sends it on to Time Condition “regular Hours”
Time Condition Regular hours matches against the Open Hours Calendar. If it matches it sends the call to the open hours IVR, if it fails it sends it to the “Closed” IVR.
today the Regular Hours Time Conditions always fails no matter what is in the “Open” calendar.
I know the Holiday Hours Time Condition works because I’ve changed it’s destination and added/removed entries to it’s calendar and it always functions correctly.
I’ve deleted the Open Hours calendar and re-created it, removed the Regular Hours Time Condition and re-created it, Checked the system time… nothing seems to work.
For the test call below, I’ve routed the call flow directly to the regular hours time condition, can anyone show me where it’s going wrong and returning false from the calendar?:
-- Executing [9088677778@from-trunk:24] Goto("SIP/VI_30-000087de", "app-daynight,1,1") in new stack
-- Goto (app-daynight,1,1)
-- Executing [1@app-daynight:1] GotoIf("SIP/VI_30-000087de", "0?ext-local,vmu2001,1:timeconditions,6,1") in new stack
-- Goto (timeconditions,6,1)
-- Executing [6@timeconditions:1] Set("SIP/VI_30-000087de", "DB(TC/6/INUSESTATE)=INUSE") in new stack
-- Executing [6@timeconditions:2] Set("SIP/VI_30-000087de", "DB(TC/6/NOT_INUSESTATE)=NOT_INUSE") in new stack
-- Executing [6@timeconditions:3] AGI("SIP/VI_30-000087de", "calendar.agi,calendar,goto,5ed3f552-cce3-406c-bf0a-ec5ab2b0dc1c,default,dHJ1ZXN0YXRl,ZmFsc2VzdGF0ZQ==") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/calendar.agi
calendar.agi,calendar,goto,5ed3f552-cce3-406c-bf0a-ec5ab2b0dc1c,default,dHJ1ZXN0YXRl,ZmFsc2VzdGF0ZQ==: Checking Calendar
– <SIP/VI_30-000087de>AGI Script calendar.agi completed, returning 0
– Executing [6@timeconditions:4] GotoIf(“SIP/VI_30-000087de”, “0?truegoto”) in new stack
– Executing [6@timeconditions:5] ExecIf(“SIP/VI_30-000087de”, “0?Set(DB(TC/6)=)”) in new stack
– Executing [6@timeconditions:6] Set(“SIP/VI_30-000087de”, “DEVICE_STATE(Custom:TC6)=INUSE”) in new stack
– Executing [6@timeconditions:7] ExecIf(“SIP/VI_30-000087de”, “0?Set(DEVICE_STATE(Custom:TCSTICKY)=INUSE)”) in new stack
– Executing [6@timeconditions:8] GotoIf(“SIP/VI_30-000087de”, “1?ivr-6,s,1”) in new stack
– Goto (ivr-6,s,1)
– Executing [s@ivr-6:1] Set(“SIP/VI_30-000087de”, “TIMEOUT_LOOPCOUNT=0”) in new stack
– Executing [s@ivr-6:2] Set(“SIP/VI_30-000087de”, “INVALID_LOOPCOUNT=0”) in new stack
– Executing [s@ivr-6:3] Set(“SIP/VI_30-000087de”, “_IVR_CONTEXT_ivr-6=”) in new stack
– Executing [s@ivr-6:4] Set(“SIP/VI_30-000087de”, “_IVR_CONTEXT=ivr-6”) in new stack
– Executing [s@ivr-6:5] Set(“SIP/VI_30-000087de”, “__IVR_RETVM=”) in new stack
– Executing [s@ivr-6:6] GotoIf(“SIP/VI_30-000087de”, “0?skip”) in new stack
– Executing [s@ivr-6:7] Answer(“SIP/VI_30-000087de”, “”) in new stack
> 0x7f32cc9d8d10 – Strict RTP switching to RTP target address 45.63.13.137:12390 as source
– Executing [s@ivr-6:8] Wait(“SIP/VI_30-000087de”, “1”) in new stack
– Executing [s@ivr-6:9] Set(“SIP/VI_30-000087de”, “IVR_MSG=custom/closedivr1”) in new stack
– Executing [s@ivr-6:10] Set(“SIP/VI_30-000087de”, “TIMEOUT(digit)=3”) in new stack
– Digit timeout set to 3.000
– Executing [s@ivr-6:11] ExecIf(“SIP/VI_30-000087de”, “1?Background(custom/closedivr1)”) in new stack
– <SIP/VI_30-000087de> Playing ‘custom/closedivr1.slin’ (language ‘en’)
> 0x7f32cc9d8d10 – Strict RTP learning complete - Locking on source address 45.63.13.137:12390
whitebirchpbx*CLI> exit