[Freeswitch-users] Nested conditions and anti-actions
Mimiko
vbvbrj at gmail.com
Thu Jan 19 17:36:19 MSK 2017
Hello.
This is a snipped:
<condition field="destination_number" expression="^(1001|1002)$" require-nested="false">
<condition field="${effective_caller_id_name}" expression="^.+$" break="never">
<action application="export" data="caller_id_name=${effective_caller_id_name} > ${destination_number}"/>
<action application="export" data="effective_caller_id_name=${effective_caller_id_name} > ${destination_number}"/>
<anti-action application="export" data="caller_id_name=${caller_id_name} > ${destination_number}"/>
<anti-action application="export" data="effective_caller_id_name=${caller_id_name} > ${destination_number}"/>
</condition>
<action .... />
</condition>
The problem I'm facing is that anti-actions are evaluated even if destination_number is not equal to 1001 or 1002. But I need that ant-actions will
evaluate only when parent condition is true.
Is this a bug or it is by design?
--
Mimiko desu.
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list