mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 03:05:50 +00:00
doc new tod routing on conditions
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14381 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b7b048859a
commit
bdbffee1ff
@ -20,11 +20,25 @@
|
|||||||
</condition>
|
</condition>
|
||||||
</extension>
|
</extension>
|
||||||
|
|
||||||
<!-- Example of doing things based on time of day. -->
|
<!-- Example of doing things based on time of day.
|
||||||
|
|
||||||
|
year = 4 digit year. Example year="2009"
|
||||||
|
yday = 1-365
|
||||||
|
mon = 1-12
|
||||||
|
mday = 1-31
|
||||||
|
week = 1-52
|
||||||
|
wday = 1-7
|
||||||
|
hour = 0-23
|
||||||
|
minute = 1-60
|
||||||
|
minute-of-day = 1-1440
|
||||||
|
|
||||||
|
Example:
|
||||||
|
<condition minute-of-day="540-1080"> (9am to 6pm EVERY day)
|
||||||
|
do something ...
|
||||||
|
</condition>
|
||||||
|
-->
|
||||||
<extension name="tod_example" continue="true">
|
<extension name="tod_example" continue="true">
|
||||||
<!-- man strftime - M-F, 9AM to 6PM -->
|
<condition wday="2-6" hour="9-18">
|
||||||
<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"/>
|
<action application="set" data="open=true"/>
|
||||||
</condition>
|
</condition>
|
||||||
</extension>
|
</extension>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user