<div>I am trying to use the GotoIfTime function and get a busy signal. What I am trying to accomplish is to have the system tell callers that we are closed after 5:00pm. Here is the code below.</div>
<div> </div>
<div>; If we're open, then go to the open context<br>; We're open from 9am to 6pm Monday through Friday<br>exten => 3200,1,GotoIfTime(09:00-17:59,mon-fri,*,*?open,3200,1)<br>;<br>; We're also late on Tuesday and Thursday<br>
exten => 3200,n,GotoIfTime(09:00-19:59,tue&thru,*,*?open,3200,1)<br>;<br>; We're also open from 9am to noon on Saturday<br>exten => 3200,n,GotoIfTime(09:00-11:59,sat,*,*?open,3200,1)<br>;<br>; Otherwise, we're closed<br>
exten => 3200,n,Goto(closed,s,1)</div>
<div> </div>
<div>here is the cli </div>
<div> </div>
<div> -- Executing [3200@default:1] GotoIfTime("SIP/1231-009da480", "09:00-17:59|mon-fri|*|*?open|3200|1") in new stack<br> -- Goto (open,3200,1)<br>[Jun 23 16:57:46] WARNING[3267]: pbx.c:2468 __ast_pbx_run: Channel 'SIP/1231-009da480' sent into invalid extension '3200' in context 'open', but no invalid handler<br>
</div>