<div dir="ltr">Hmm, looking at your log and mine from the past, you appear to be correct. It looks like break=never means to ignore the condition. So then.. I'm left with the original question - what's the point?<div>
And another - how can you do groups of conditions, like I intended to show in the example? I tried setting it to break on-false, or break on-true, but I can never get to the second condition set. Am I supposed to create it as separate extensions?<br>
<div><br></div><div><div class="gmail_quote">On Mon, Mar 21, 2011 at 12:44 PM, Dmitry Bely <span dir="ltr"><<a href="mailto:dmitry.bely@gmail.com">dmitry.bely@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, Mar 21, 2011 at 1:01 PM, Avi Marcus <<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>> wrote:<br>
><br>
>> > You need ALL the conditions to match for freeswitch to do the action,<br>
>> > and you can't<br>
>> > change that!<br>
>><br>
>> I don't think so. If some condition evaluates to true, its nested<br>
>> actions are always executed no matter what preceded it. But of course<br>
>> the condition should be evaluated first, that's where various break<br>
>> values come into play.<br>
><br>
> No way - the dialplan is always run on a "match all conditions" to do the<br>
> actions! How else would multiple conditions EVER work?<br>
<br>
</div>Completely wrong. And I don't see relevant logs in your message. Here<br>
is mine. A dialplan fragment:<br>
<br>
<extension name="condition-test"><br>
<div class="im"> <condition wday="6" break="never"/><br>
</div> <condition hour="9-18" break="on-true"><br>
<action application="info"/><br>
</condition><br>
</extension><br>
<br>
log:<br>
<br>
Dialplan: sofia/internal/<a href="mailto:1000@192.168.121.66">1000@192.168.121.66</a> parsing<br>
[default->condition-test] continue=false<br>
Dialplan: sofia/internal/<a href="mailto:1000@192.168.121.66">1000@192.168.121.66</a> Date/Time Match (FAIL)<br>
[condition-test] break=never<br>
Dialplan: sofia/internal/<a href="mailto:1000@192.168.121.66">1000@192.168.121.66</a> Date/Time Match (PASS)<br>
[condition-test] break=on-true<br>
Dialplan: sofia/internal/<a href="mailto:1000@192.168.121.66">1000@192.168.121.66</a> Action info()<br>
<br>
Guess what? The first condition fails but the action is still<br>
scheduled for execution (and indeed executed later)<br>
<div><div></div><div class="h5"><br>
- Dmitry Bely<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div></div>