50 lines
2.0 KiB
XML
50 lines
2.0 KiB
XML
<extension name="Logical XOR 1 false" >
|
|
<condition field="destination_number" expression="^6040$"/>
|
|
<condition regex="xor">
|
|
<regex wday="1-7"/>
|
|
<regex wday="1-7"/>
|
|
<anti-action application="log" data="INFO Test PASSED!"/>
|
|
<anti-action application="playback" data="ivr/ivr-thank_you_for_calling.wav"/>
|
|
<action application="log" data="ERROR Test FAILED!"/>
|
|
<action application="playback" data="ivr/ivr-no_no_no.wav"/>
|
|
</condition>
|
|
</extension>
|
|
|
|
<extension name="Logical XOR 2 false" >
|
|
<condition field="destination_number" expression="^6041$"/>
|
|
<condition regex="xor">
|
|
<regex field="destination_number" expression="."/>
|
|
<regex field="destination_number" expression="."/>
|
|
<anti-action application="log" data="INFO Test PASSED!"/>
|
|
<anti-action application="playback" data="ivr/ivr-thank_you_for_calling.wav"/>
|
|
<action application="log" data="ERROR Test FAILED!"/>
|
|
<action application="playback" data="ivr/ivr-no_no_no.wav"/>
|
|
</condition>
|
|
</extension>
|
|
|
|
<extension name="Logical XOR 1 true" >
|
|
<condition field="destination_number" expression="^6042$"/>
|
|
<condition regex="xor">
|
|
<regex wday="1-7"/>
|
|
<regex year="0"/>
|
|
<regex year="0"/>
|
|
<action application="log" data="INFO Test PASSED!"/>
|
|
<action application="playback" data="ivr/ivr-thank_you_for_calling.wav"/>
|
|
<anti-action application="log" data="ERROR Test FAILED!"/>
|
|
<anti-action application="playback" data="ivr/ivr-no_no_no.wav"/>
|
|
</condition>
|
|
</extension>
|
|
|
|
<extension name="Logical XOR 2 true" >
|
|
<condition field="destination_number" expression="^6043$"/>
|
|
<condition regex="xor">
|
|
<regex field="destination_number" expression="."/>
|
|
<regex field="destination_number" expression="^$"/>
|
|
<regex field="destination_number" expression="^$"/>
|
|
<action application="log" data="INFO Test PASSED!"/>
|
|
<action application="playback" data="ivr/ivr-thank_you_for_calling.wav"/>
|
|
<anti-action application="log" data="ERROR Test FAILED!"/>
|
|
<anti-action application="playback" data="ivr/ivr-no_no_no.wav"/>
|
|
</condition>
|
|
</extension>
|