]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make this example etter
authorBrian West <brian@freeswitch.org>
Fri, 3 Oct 2008 15:01:36 +0000 (15:01 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 3 Oct 2008 15:01:36 +0000 (15:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9808 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml

index 5da968e5a6b94bc19c3d43237cfb6c0fcdf325cb..070e54d404d00c160d8ecdcbb1a662fce050d349 100644 (file)
@@ -37,6 +37,8 @@
 
     <!-- Example of doing things based on time of day. -->
     <extension name="tod_example" continue="true">
+      <!-- man strftime - M-F, 9AM to 6PM -->
+      <condition field="${strftime(%u)}" expression="^([1-5])$"/>
       <condition field="${strftime(%H%M)}" expression="^((09|1[0-7])[0-5][0-9]|1800)$">
        <action application="set" data="open=true"/>
       </condition>