<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Great! Thanks all!<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 09/01/2015 05:32 PM, Brian West
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEJMVkBF2=FUyEyQ7y1o7ZG2vGGDFJ-7vbjdoLC8YbWV8Wc=nw@mail.gmail.com"
      type="cite">
      <div dir="ltr"><a moz-do-not-send="true"
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't moved over yet, or I can'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 moz-do-not-send="true"
              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
                          moz-do-not-send="true"
                          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="dialplan" description="Local
                        call"&gt;<br>
                             &lt;context name="public"&gt;<br>
                               &lt;extension name="local_1"&gt;<br>
                        <br>
                             &lt;condition field="destination_number"
                        expression="^(\d{4})$"&gt;<br>
                               &lt;action application="answer"/&gt;<br>
                        <br>
                               &lt;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+"/&gt;<br>
                               &lt;action application="log" data="CRIT
                        ${foobar}"/&gt;<br>
                        <br>
                               &lt;condition field="${foobar}"
                        expression="1$"&gt;<br>
                                     &lt;action application="log"
                        data="CRIT<br>
                        --------------1------------------"/&gt;<br>
                                     &lt;anti-action application="log"
                        data="CRIT --------------not<br>
                        1------------------"/&gt;<br>
                               &lt;/condition&gt;<br>
                        <br>
                               &lt;action application="log" data="CRIT
                        ---- last ${foobar}"/&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 moz-do-not-send="true"
                          href="mailto:consulting@freeswitch.org"
                          target="_blank">consulting@freeswitch.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://www.freeswitchsolutions.com"
                          rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
                        <br>
                        Official FreeSWITCH Sites<br>
                        <a moz-do-not-send="true"
                          href="http://www.freeswitch.org"
                          rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://confluence.freeswitch.org"
                          rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://www.cluecon.com" rel="noreferrer"
                          target="_blank">http://www.cluecon.com</a><br>
                        <br>
                        FreeSWITCH-users mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                          target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                        <a moz-do-not-send="true"
                          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 moz-do-not-send="true"
                          href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                          rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                        <a moz-do-not-send="true"
                          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 moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" rel="noreferrer"
              target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" rel="noreferrer"
              target="_blank">http://confluence.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              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 moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" 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
                                    moz-do-not-send="true"
                                    href="mailto:brian@freeswitch.org"
                                    target="_blank">brian@freeswitch.org</a></span></font></p>
                            <p><font face="courier new, monospace"
                                size="1"><img moz-do-not-send="true"
                                  src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br>
                              </font></p>
                            <p><font face="monospace, monospace"
                                size="2"><b><i>Twitter: @FreeSWITCH ,
                                    @briankwest</i></b><br>
                                <a moz-do-not-send="true"
                                  href="http://www.freeswitchbook.com"
                                  target="_blank">http://www.freeswitchbook.com</a><br>
                                <a moz-do-not-send="true"
                                  href="http://www.freeswitchcookbook.com"
                                  target="_blank">http://www.freeswitchcookbook.com</a></font></p>
                            <p><font face="monospace, monospace">Got
                                Bugs? Report them <a
                                  moz-do-not-send="true"
                                  href="https://freeswitch.org/jira"
                                  target="_blank">here</a>! | Reddit: <a
                                  moz-do-not-send="true"
                                  href="https://www.reddit.com/r/freeswitch"
                                  target="_blank">/r/freeswitch</a></font></p>
                            <p><font face="monospace, monospace"
                                size="2"><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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>