9999_date_time_match.xml.noload 1.2 KB

12345678910111213141516171819202122232425262728
  1. <extension name="one">
  2. <condition field="destination_number" value="^9000$"/>
  3. <condition date-time="2020-01-01 00:00:00~2020-01-01 01:00:00">
  4. <action application="log" data="INFO DATE TIME conditions matched!"/>
  5. </condition>
  6. </extension>
  7. <extension name="two">
  8. <condition field="destination_number" value="^9000$">
  9. <action application="log" data="INFO W00t it worked!"/>
  10. </condition>
  11. </extension>
  12. <extension name="three">
  13. <condition field="destination_number" value="^9001$"/>
  14. <condition time-of-day="08:00-12:00,14:00-18:00">
  15. <action application="log" data="INFO coma separated time-of-day matched (8-12am or 2-6pm)!"/>
  16. <anti-action application="log" data="INFO coma separated time-of-day not matched (not 8-12am nor 2-6pm)!"/>
  17. </condition>
  18. </extension>
  19. <extension name="four">
  20. <condition field="destination_number" value="^9002$"/>
  21. <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">
  22. <action application="log" data="INFO coma separated date matched (jan+feb+dec 2015)!"/>
  23. <anti-action application="log" data="INFO coma separated date not matched (not jan+feb+dec 2015)!"/>
  24. </condition>
  25. </extension>