Dear asterisk users, i am trying to dial an extension 03111308308 and want a time check to be perfomed. if the time is between 09 to 5 (regular office hours) then it should go to open context and then an IVR should be played but my configuration is not working properly.
following is my extenisons.conf file.
[my-sip]
exten =>03111308308,1,MixMonitor(callrecording.wav,b)
same => n,GotoIfTime(9:00-17:00,mon-fri,,?open)
[open]
same=>s,Background(2)
same=>n,WaitExten(10)
same=>1,1,Dial(SIP/03111308309,20)
same =>2,1,Queue(support,120)
asterisk cli
0x7f9b8c016bf0 – Strict RTP learning after remote address set to: xxx.xxx.xxx.x:6058
– Executing [03111308308@my-sip:1] MixMonitor(“SIP/3000-00000006”, “callrecording.wav,b”) in new stack
– Executing [03111308308@my-sip:2] GotoIfTime(“SIP/3000-00000006”, “9:00-17:00,mon-fri,,?open”) in new stack
– Auto fallthrough, channel ‘SIP/3000-00000006’ status is ‘UNKNOWN’
== Begin MixMonitor Recording SIP/3000-00000006
== MixMonitor close filestream (mixed)
== End MixMonitor Recording SIP/3000-00000006
localhost*CLI>