<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">&lt;<a href="mailto:d.mordovin@dwide.com" target="_blank">d.mordovin@dwide.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
<br>
&lt;section name=&quot;dialplan&quot; description=&quot;Local call&quot;&gt;<br>
     &lt;context name=&quot;public&quot;&gt;<br>
       &lt;extension name=&quot;local_1&quot;&gt;<br>
<br>
     &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{4})$&quot;&gt;<br>
       &lt;action application=&quot;answer&quot;/&gt;<br>
<br>
       &lt;action application=&quot;play_and_get_digits&quot; data=&quot;1 1 3 7000 #<br>
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav<br>
/invalid.wav foobar \d+&quot;/&gt;<br>
       &lt;action application=&quot;log&quot; data=&quot;CRIT ${foobar}&quot;/&gt;<br>
<br>
       &lt;condition field=&quot;${foobar}&quot; expression=&quot;1$&quot;&gt;<br>
             &lt;action application=&quot;log&quot; data=&quot;CRIT<br>
--------------1------------------&quot;/&gt;<br>
             &lt;anti-action application=&quot;log&quot; data=&quot;CRIT --------------not<br>
1------------------&quot;/&gt;<br>
       &lt;/condition&gt;<br>
<br>
       &lt;action application=&quot;log&quot; data=&quot;CRIT ---- last ${foobar}&quot;/&gt;<br>
     &lt;/condition&gt;<br>
<br>
       &lt;/extension&gt;<br>
     &lt;/context&gt;<br>
   &lt;/section&gt;<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>