<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16466"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>I have a very small one man constultancy company that has the occasional call, unfortunately we are getting more spam calls after hours than real calls during work hours, so I would like to set up a TOD system.</DIV>
<DIV> </DIV>
<DIV>First step for me is just playing with the TOD example, I've gotten this far:</DIV>
<DIV> </DIV>
<DIV><extension name="CompanyTOD" continue="true"><BR> <condition field="destination_number" expression="^(8203)$"/><BR> <!-- man strftime - M-F, 9AM to 5PM --><BR> <condition field="${strftime(%w)}" expression="^([1-5])$"/><BR> <condition field="${strftime(%H%M)}" expression="^((09|1[0-6])[0-5][0-9]|1700)$"><BR> <action application="set" data="call_timeout=45"/><BR> <action application="set" data="domain_name=10.11.12.25"/><BR> <action application="set" data="continue_on_fail=true"/><BR> <action application="set" data="hangup_after_bridge=true"/><BR> <action application="bridge" data="<A href='mailto:group/company@${domain_name}"/'>group/company@${domain_name}"/</A>><BR> <action application="answer" data=""/><BR> <action application="sleep" data="1000"/><BR> <action application="voicemail" data="default 10.11.12.25 10199"/><BR> <anti-action application="voicemail" data="default 10.11.12.25 10199"/><BR> </condition><BR></extension><BR></DIV>
<DIV>My idea with this, was that in the time 9-17 mon-fri, it rings, the rest of the time it's sent directly to the voicemail.</DIV>
<DIV>I would of course like to have it not take messages outside work hours, but that's just refining :-)</DIV>
<DIV> </DIV>
<DIV>But it picks up the call, and then nothing...</DIV>
<DIV> </DIV>
<DIV>BR</DIV>
<DIV>Fribse</DIV>
<DIV> </DIV></BODY></HTML>