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

Madovsky infos at madovsky.org
Mon Mar 21 20:31:46 MSK 2011


condition can't be inclusive,
only stacked

----- Original Message ----- 
From: "Dmitry Bely" <dmitry.bely at gmail.com>
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Sent: Monday, March 21, 2011 6:44 AM
Subject: Re: [Freeswitch-users] Understanding break="never" in condition-tag


> On Mon, Mar 21, 2011 at 1:01 PM, Avi Marcus <avi at avimarcus.net> wrote:
>>
>>> > You need ALL the conditions to match for freeswitch to do the action,
>>> > and you can't
>>> > change that!
>>>
>>> I don't think so. If some condition evaluates to true, its nested
>>> actions are always executed no matter what preceded it. But of course
>>> the condition should be evaluated first, that's where various break
>>> values come into play.
>>
>> No way - the dialplan is always run on a "match all conditions" to do the
>> actions! How else would multiple conditions EVER work?
>
> Completely wrong. And I don't see relevant logs in your message. Here
> is mine. A dialplan fragment:
>
>    <extension name="condition-test">
>        <condition wday="6" break="never"/>
>        <condition hour="9-18" break="on-true">
>            <action application="info"/>
>        </condition>
>    </extension>
>
> log:
>
> Dialplan: sofia/internal/1000 at 192.168.121.66 parsing
> [default->condition-test] continue=false
> Dialplan: sofia/internal/1000 at 192.168.121.66 Date/Time Match (FAIL)
> [condition-test] break=never
> Dialplan: sofia/internal/1000 at 192.168.121.66 Date/Time Match (PASS)
> [condition-test] break=on-true
> Dialplan: sofia/internal/1000 at 192.168.121.66 Action info()
>
> Guess what? The first condition fails but the action is still
> scheduled for execution (and indeed executed later)
>
> - 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 




More information about the FreeSWITCH-users mailing list