<div dir="ltr">Worth noting you don&#39;t need nested conditions to do this - search for Time-of-day-tod on <a href="https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan">https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan</a></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 November 2014 13:54, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</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"><font face="arial, sans-serif">require_nested d</font>efaults to true so shouldn&#39;t be required.<div><br></div><div>Frank, collect a debug-level log of the call. It&#39;ll show the parsing of the dialplan, and might shed light on what&#39;s happening.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 12 November 2014 01:29, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</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"><div><div><div>I haven&#39;t used nested conditions since I was raised in an era when you couldn&#39;t nest them. ;)<br><br></div>This page mentions the &quot;require-nested&quot; attribute:<br><a href="https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan#XMLDialplan-Conditions" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/XML+Dialplan#XMLDialplan-Conditions</a><br><br></div>I didn&#39;t see that in your dialplan, so that might be a good place to start.<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">-MC<br><br></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 11, 2014 at 1:08 PM, Frank Myhr <span dir="ltr">&lt;<a href="mailto:fmyhr@fhmtech.com" target="_blank">fmyhr@fhmtech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have the following extension in a context that gets parsed several times during a call due to transfers and execute_extension. I&#39;m finding<br>
that one of the inner actions (the correct one, based on time of day) gets executed even when the outer condition is false. Might not have<br>
noticed, except my original version of this extension actually played the greeting files, rather than just exporting the correct one in a<br>
variable. Callers were getting greeted multiple times, which was not the intention.<br>
<br>
For now I&#39;ve sidestepped the audible problem by playing ${greeting} in another extension that does execute_extension on this one. But the<br>
greeting is still getting set multiple times per call.<br>
<br>
Would appreciate any clues as to why an inner action gets executed even though the outer condition is false.<br>
<br>
Thanks!<br>
Frank<br>
<br>
<br>
&lt;extension name=&quot;set_greeting_tod&quot;&gt;<br>
        &lt;condition field=&quot;destination_number&quot; expression=&quot;^set_greeting_tod$&quot;&gt;<br>
<br>
                &lt;condition minute-of-day=&quot;1-359&quot; break=&quot;on-true&quot;&gt;&lt;!-- 12am - 5:59am --&gt;<br>
                        &lt;action application=&quot;export&quot; data=&quot;greeting=ivr/ivr-hello.wav&quot;/&gt;<br>
                &lt;/condition&gt;<br>
<br>
                &lt;condition minute-of-day=&quot;360-690&quot; break=&quot;on-true&quot;&gt;&lt;!-- 6am - 11:30am --&gt;<br>
                        &lt;action application=&quot;export&quot; data=&quot;greeting=ivr/ivr-good_morning.wav&quot;/&gt;<br>
                &lt;/condition&gt;<br>
<br>
                &lt;condition minute-of-day=&quot;691-780&quot; break=&quot;on-true&quot;&gt;&lt;!-- 11:31am - 1pm --&gt;<br>
                        &lt;action application=&quot;export&quot; data=&quot;greeting=ivr/ivr-hello.wav&quot;/&gt;<br>
                &lt;/condition&gt;<br>
<br>
                &lt;condition minute-of-day=&quot;781-1020&quot; break=&quot;on-true&quot;&gt;&lt;!-- 1:01pm - 5pm --&gt;<br>
                        &lt;action application=&quot;export&quot; data=&quot;greeting=ivr/ivr-good_afternoon.wav&quot;/&gt;<br>
                &lt;/condition&gt;<br>
<br>
                &lt;condition minute-of-day=&quot;1021-1380&quot; break=&quot;on-true&quot;&gt;&lt;!-- 5:01pm - 11pm --&gt;<br>
                        &lt;action application=&quot;export&quot; data=&quot;greeting=ivr/ivr-good_evening.wav&quot;/&gt;<br>
                &lt;/condition&gt;<br>
<br>
                &lt;condition minute-of-day=&quot;1381-1440&quot;&gt;&lt;!-- 11:01pm - 11:59pm --&gt;<br>
                        &lt;action application=&quot;export&quot; data=&quot;greeting=ivr/ivr-hello.wav&quot;/&gt;<br>
                &lt;/condition&gt;<br>
        &lt;/condition&gt;<br>
&lt;/extension&gt;<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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>
</div></div><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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>