]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
%u does not exist on strftime on windows but %w accomplishes the same thing
authorBrian West <brian@freeswitch.org>
Sun, 12 Oct 2008 01:16:02 +0000 (01:16 +0000)
committerBrian West <brian@freeswitch.org>
Sun, 12 Oct 2008 01:16:02 +0000 (01:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9981 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml

index bc03d2b0f3474ea4edf5defcf9c19340b59d878d..278329bf004cfb363292b25aca7b938e9c7a1d53 100644 (file)
@@ -38,7 +38,7 @@
     <!-- 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(%w)}" 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>