freeswitch/conf/testing/dialplan/default/9999_date_time_match.xml.no...

29 lines
1.2 KiB
Plaintext
Raw Normal View History

2015-07-08 21:16:05 +00:00
<extension name="one">
<condition field="destination_number" value="^9000$"/>
<condition date-time="2020-01-01 00:00:00~2020-01-01 01:00:00">
<action application="log" data="INFO DATE TIME conditions matched!"/>
</condition>
</extension>
<extension name="two">
<condition field="destination_number" value="^9000$">
<action application="log" data="INFO W00t it worked!"/>
</condition>
</extension>
2015-07-09 16:30:51 +00:00
<extension name="three">
<condition field="destination_number" value="^9001$"/>
<condition time-of-day="08:00-12:00,14:00-18:00">
<action application="log" data="INFO coma separated time-of-day matched (8-12am or 2-6pm)!"/>
<anti-action application="log" data="INFO coma separated time-of-day not matched (not 8-12am nor 2-6pm)!"/>
</condition>
</extension>
<extension name="four">
<condition field="destination_number" value="^9002$"/>
<condition time-of-day="2015-01-01 00:00:00~2015-02-31 23:59:59,2015-12-01 00:00:00~2015-12-31 23:59:59">
<action application="log" data="INFO coma separated date matched (jan+feb+dec 2015)!"/>
<anti-action application="log" data="INFO coma separated date not matched (not jan+feb+dec 2015)!"/>
</condition>
</extension>