<div dir="ltr"><a href="https://wiki.freeswitch.org/wiki/Dialplan_XML#Nested_Condition_Caveats_and_Notes">https://wiki.freeswitch.org/wiki/Dialplan_XML#Nested_Condition_Caveats_and_Notes</a><br><div><br></div><div>This isn&#39;t moved over yet, or I can&#39;t find it on confluence.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 5:30 AM, Avi Marcus <span dir="ltr">&lt;<a href="mailto:avi@avimarcus.net" target="_blank">avi@avimarcus.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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"><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><div dir="ltr">-Avi Marcus<br>BestFone</div></div></div></font></span><div><div class="h5">
<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" target="_blank">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" target="_blank">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></div></div>
<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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>