0009_condition_regex_all.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <extension name="Logical AND 1 false" >
  2. <condition field="destination_number" expression="^6030$"/>
  3. <condition regex="all">
  4. <regex wday="1-7"/>
  5. <regex year="0"/>
  6. <anti-action application="log" data="INFO Test PASSED!"/>
  7. <anti-action application="playback" data="ivr/ivr-thank_you_for_calling.wav"/>
  8. <action application="log" data="ERROR Test FAILED!"/>
  9. <action application="playback" data="ivr/ivr-no_no_no.wav"/>
  10. </condition>
  11. </extension>
  12. <extension name="Logical AND 2 false" >
  13. <condition field="destination_number" expression="^6031$"/>
  14. <condition regex="all">
  15. <regex field="destination_number" expression="."/>
  16. <regex field="destination_number" expression="^$"/>
  17. <anti-action application="log" data="INFO Test PASSED!"/>
  18. <anti-action application="playback" data="ivr/ivr-thank_you_for_calling.wav"/>
  19. <action application="log" data="ERROR Test FAILED!"/>
  20. <action application="playback" data="ivr/ivr-no_no_no.wav"/>
  21. </condition>
  22. </extension>
  23. <extension name="Logical AND 1 true" >
  24. <condition field="destination_number" expression="^6032$"/>
  25. <condition regex="all">
  26. <regex wday="1-7"/>
  27. <regex wday="1-7"/>
  28. <action application="log" data="INFO Test PASSED!"/>
  29. <action application="playback" data="ivr/ivr-thank_you_for_calling.wav"/>
  30. <anti-action application="log" data="ERROR Test FAILED!"/>
  31. <anti-action application="playback" data="ivr/ivr-no_no_no.wav"/>
  32. </condition>
  33. </extension>
  34. <extension name="Logical AND 2 true" >
  35. <condition field="destination_number" expression="^6033$"/>
  36. <condition regex="all">
  37. <regex field="destination_number" expression="."/>
  38. <regex field="destination_number" expression="."/>
  39. <action application="log" data="INFO Test PASSED!"/>
  40. <action application="playback" data="ivr/ivr-thank_you_for_calling.wav"/>
  41. <anti-action application="log" data="ERROR Test FAILED!"/>
  42. <anti-action application="playback" data="ivr/ivr-no_no_no.wav"/>
  43. </condition>
  44. </extension>