<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">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.<br><br></div>-MC<br><br></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">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">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>