<div dir="ltr">Short answer: Each extension only has 1 set of conditions.<div>The condition evaluating foobar is run <i>before</i> it gets set.</div><div>After the <span style="font-size:12.8000001907349px">play_and_get_</span><span style="font-size:12.8000001907349px">digits you should transfer/execute_extension to a new extension that will evaluate ${foobar}</span></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">-Avi Marcus<br>BestFone</div></div></div>
<br><div class="gmail_quote">On Tue, Sep 1, 2015 at 11:56 AM, Dmitry Mordovin <span dir="ltr"><<a href="mailto:d.mordovin@dwide.com" target="_blank">d.mordovin@dwide.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
<br>
<section name="dialplan" description="Local call"><br>
<context name="public"><br>
<extension name="local_1"><br>
<br>
<condition field="destination_number" expression="^(\d{4})$"><br>
<action application="answer"/><br>
<br>
<action application="play_and_get_digits" data="1 1 3 7000 #<br>
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav<br>
/invalid.wav foobar \d+"/><br>
<action application="log" data="CRIT ${foobar}"/><br>
<br>
<condition field="${foobar}" expression="1$"><br>
<action application="log" data="CRIT<br>
--------------1------------------"/><br>
<anti-action application="log" data="CRIT --------------not<br>
1------------------"/><br>
</condition><br>
<br>
<action application="log" data="CRIT ---- last ${foobar}"/><br>
</condition><br>
<br>
</extension><br>
</context><br>
</section><br>
<br>
Why inner condition not works?<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div>