[Freeswitch-users] Understanding break="never" in condition-tag

Avi Marcus avi at avimarcus.net
Mon Mar 21 11:18:10 MSK 2011


NOTE: break "on-true, on-false, never" don't change the *condition*, merely
the *hunting*. You need ALL the conditions to match for freeswitch to do the
action, and you can't change that!
The break is how to handle failure - "Does 1 failure to match
a condition mean should move on to the next condition extension (on-false)
or keep evaluating this extension? (never)"
-Avi

On Mon, Mar 21, 2011 at 10:13 AM, Avi Marcus <avi at avimarcus.net> wrote:

> We have two items going on - extensions, and condition-groups within the
> extension.
> For wday=1, if it was set to on-false - the default - it would end
> evaluating this extension and move on to the next.
> However, since it says "break=never" it moves to evaluate the *next*
> *condition-group* rather than executing or skipping the extension entirely.
> -Avi
>
>
> On Mon, Mar 21, 2011 at 8:59 AM, Dmitry Bely <dmitry.bely at gmail.com>wrote:
>
>> On Sun, Mar 20, 2011 at 10:45 PM, Avi Marcus <avi at avimarcus.net> wrote:
>> > No, I'm pretty sure that example works as intended.. I created it
>>
>> Really? Correct me if I'm wrong but for wday=1 and hour=9 an action in
>>
>>        <condition wday="6" break="never"/>
>>        <condition hour="8-12" break="on-true">
>>                <action application="transfer" data="1105 XML default"/>
>>        </condition>
>>
>> will be executed and further processing will be stopped. Actually the
>> first condition is a sort of (misleading) comment here.
>>
>> - Dmitry Bely
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110321/66bf3734/attachment.html 


More information about the FreeSWITCH-users mailing list