Destination number is 03131234567 and yes i know that this is not match exactly, and its not showing the condition result rather it shows the anti-action(result of condition false).

Regards


On Mon, Sep 21, 2015 at 4:32 PM, Steven Ayre <steveayre@gmail.com> wrote:
What's the destination_number?

Also you probably want to test for ^2$ not 2 (exact match of "2" rather than contains "2")

If you look at FreeSWITCH's debug logging you'll see messages of when it evaluates conditions - what it's testing, what it's testing for and the PASS/FAIL result.

On 21 September 2015 at 11:41, Bilal Abbasi <bilaln018@gmail.com> wrote:
Thanks for the comment, but this does not solved the issue..:-(
Regards


On Mon, Sep 21, 2015 at 3:06 PM, Sergey Safarov <s.safarov@gmail.com> wrote:
Try
<action application="set" data="effective_caller_id_number=2" inline="true"/>


On Mon, Sep 21, 2015 at 12:49 PM, Bilal Abbasi <bilaln018@gmail.com> wrote:
Hi All,
I have the following as my dial plan,
 
    <extension name="ASDF" continue="true">
           <condition>
                 <action application="set" data="effective_caller_id_number=2"/>
                 <action application="log" data="CRIT This is Caller_ID_NUM ${effective_caller_id_number}"/>
           </condition>

           <condition field="destination_number" expression="(^\d{11}$|^\d{10}$)"/>
              <condition field="${effective_caller_id_number}" expression="2">
                 <action application="log" data="CRIT This is Caller_ID_NUM ${effective_caller_id_number}"/>
                 <action application="hangup"/>
                 <anti-action application="set" data="hangup_after_bridge=true"/>
                 <anti-action application="set" data="continue_on_fail=true"/>
                 <anti-action application="set" data="bypass_media=true"/>
                 <anti-action application="log" data="CRIT Caller_ID_NUM ${effective_caller_id_number}"/>
                 <anti-action application="bridge" data="sofia/external/$1@10.100.0.60"/>
              </condition>
    </extension>

I have changed the effective called id to 2, now what I expect is that action should be executed, but dial plan goes to the anti-action
Don't know what I am missing out.

Help is appropriated,

Regards
Bilal Abbasi

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@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@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@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@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@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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org