[Freeswitch-docs] [Freeswitch-users] Playing with conditions

Ítalo Rossi italorossib at gmail.com
Wed Sep 2 15:40:54 MSD 2015


s/deepth/depth

On Wed, Sep 2, 2015 at 8:40 AM, Ítalo Rossi <italorossib at gmail.com> wrote:

>
> https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan#XMLDialplan-NestedConditionCaveatsandNotes
>
> For some reason the FS TOC has limited deepth, that specific part was on a
> h4 header and wasn't showing up in the TOC, I changed it to a h3 and now
> it's showing.
>
> On Tue, Sep 1, 2015 at 10:32 AM, Brian West <brian at freeswitch.org> wrote:
>
>>
>> https://wiki.freeswitch.org/wiki/Dialplan_XML#Nested_Condition_Caveats_and_Notes
>>
>> This isn't moved over yet, or I can't find it on confluence.
>>
>> On Tue, Sep 1, 2015 at 5:30 AM, Avi Marcus <avi at avimarcus.net> wrote:
>>
>>> Short answer: Each extension only has 1 set of conditions.
>>> The condition evaluating foobar is run *before* it gets set.
>>> After the play_and_get_digits you should transfer/execute_extension to
>>> a new extension that will evaluate ${foobar}
>>>
>>> -Avi Marcus
>>> BestFone
>>>
>>> On Tue, Sep 1, 2015 at 11:56 AM, Dmitry Mordovin <d.mordovin at dwide.com>
>>> wrote:
>>>
>>>> Hello
>>>>
>>>> <section name="dialplan" description="Local call">
>>>>      <context name="public">
>>>>        <extension name="local_1">
>>>>
>>>>      <condition field="destination_number" expression="^(\d{4})$">
>>>>        <action application="answer"/>
>>>>
>>>>        <action application="play_and_get_digits" data="1 1 3 7000 #
>>>> $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav
>>>> /invalid.wav foobar \d+"/>
>>>>        <action application="log" data="CRIT ${foobar}"/>
>>>>
>>>>        <condition field="${foobar}" expression="1$">
>>>>              <action application="log" data="CRIT
>>>> --------------1------------------"/>
>>>>              <anti-action application="log" data="CRIT --------------not
>>>> 1------------------"/>
>>>>        </condition>
>>>>
>>>>        <action application="log" data="CRIT ---- last ${foobar}"/>
>>>>      </condition>
>>>>
>>>>        </extension>
>>>>      </context>
>>>>    </section>
>>>>
>>>> Why inner condition not works?
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>> 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
>>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> 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
>>>
>>
>>
>>
>> --
>>
>> *Brian West*
>> brian at freeswitch.org
>>
>>
>> *Twitter: @FreeSWITCH , @briankwest*
>> http://www.freeswitchbook.com
>> http://www.freeswitchcookbook.com
>>
>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>
>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>
>> _______________________________________________
>> Freeswitch-docs mailing list
>> Freeswitch-docs at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-docs
>>
>>
>
>
> --
> Ítalo Rossi
>



-- 
Ítalo Rossi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-docs/attachments/20150902/301c2197/attachment-0001.html 


Join us at ClueCon 2014 Aug 4-7, 2014
More information about the Freeswitch-docs mailing list