<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Thank you for your help. The example you gave helped me a lot. I was able to do what I intended. Thanks a lot.</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> freeswitch-users-bounces@lists.freeswitch.org &lt;freeswitch-users-bounces@lists.freeswitch.org&gt; on behalf of Branden Jordan &lt;BJordan@E-Teleco.com&gt;<br>
<b>Sent:</b> Friday, September 23, 2016 6:28 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Playback within condition</font>
<div>&nbsp;</div>
</div>
<div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">Yeah without the console logs we are not going to be able to really help you.
</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">If you are trying to do your conditionals right after your play and get digits or read that is not going to work without transferring. Remember the dialplan has two steps, the evaluation period
 to figure out what to run, and then the execute phase where it executes the steps. If you create the variable during the execute phase you cannot use the variable further down in a conditional in the same execution because during the evaluation period it was
 null. </span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">This works when I test it. Maybe this will help you get on the right path to solving your issue.</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp; &lt;extension name=”playthisfile”&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^playfilefortestcondition$&quot;&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application=&quot;play_and_get_digits&quot; data=&quot;1 1 1 4000 # abc.wav invalid.wav testvar [1|2|0] 100 testcond XML public&quot; /&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application=&quot;transfer&quot; data=&quot;testcond XML public&quot; /&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp; &lt;/extension&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;testconditions&quot;&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^testcond$&quot;/&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;${testvar}&quot; expression=&quot;[0]&quot; break=&quot;on-true&quot;&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;log&quot; data=&quot;CRIT Value was 0&quot;/&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;playback&quot; data=&quot;test.wav&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application=&quot;hangup&quot; data=&quot;NORMAL_CLEARING&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/condition&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;${testvar}&quot; expression=&quot;[1]&quot; break=&quot;on-true&quot;&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;log&quot; data=&quot;CRIT Value was NOT 0&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application=&quot;playback&quot; data=&quot;test.wav&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;
</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application=&quot;hangup&quot; data=&quot;NORMAL_CLEARING&quot;/&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/condition&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;&nbsp;&nbsp; &lt;/extension&gt;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">Thanks,</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">Branden Jordan</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">&nbsp;</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<b><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif"> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<b>On Behalf Of </b>Aqs Younas<br>
<b>Sent:</b> Friday, September 23, 2016 1:52 PM<br>
<b>To:</b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt;<br>
<b>Subject:</b> Re: [Freeswitch-users] Playback within condition</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
&nbsp;</p>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
Like said before you need to look into logs to figure it out or paste the console logs&nbsp;here.&nbsp;</p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
&nbsp;</p>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
On 23 September 2016 at 22:18, Caio Assis &lt;<a href="mailto:caioebassis@hotmail.com" target="_blank" style="color: blue; text-decoration: underline;">caioebassis@hotmail.com</a>&gt; wrote:</p>
<blockquote style="border:none; border-left:solid #CCCCCC 1.0pt; padding:0in 0in 0in 6.0pt; margin-left:4.8pt; margin-right:0in">
<div>
<div>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Actually, i might have figured it out. What I intend to do is an IVR-like application. Which means I want this to happen</span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Call 1212</span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Application=&quot;read&quot; gets my input</span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">if digit == 1 do this</span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">if digit == 2 do that</span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Each option has it's own set of structions, so I think it should be within a condition. But I can't seem to validate the condition. Look at the following construction.</span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&lt;condition field=&quot;${dg}&quot; expression=&quot;^0$&quot;&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;playback&quot; data=&quot;/home/beep.gsm&quot;/&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;anti-action application=&quot;playback&quot; data=&quot;/home/audio.gsm&quot;/&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;hangup&quot;/&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&lt;/condition&gt;</span></p>
</div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<p><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">${dg} is the variable that stores the input digit. So, if ${dg} == 0, play beep.gsm, else play audio.gsm. The expression is never true, but i put 0 always. Instead of playing beep.gsm, it plays
 audio.gsm. I got the same example from Freeswitch 1.2 book, Nested Conditions section.</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<div>
<div align="center" style="text-align: center; margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">
<hr size="2" width="98%" align="center">
</span></div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<b><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:black">From:</span></b><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:black">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: blue; text-decoration: underline;">
freeswitch-users-bounces@lists.freeswitch.org</a> &lt;<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank" style="color: blue; text-decoration: underline;">freeswitch-users-bounces@lists.freeswitch.org</a>&gt; on behalf of Michael Jerris
 &lt;<a href="mailto:mike@jerris.com" target="_blank" style="color: blue; text-decoration: underline;">mike@jerris.com</a>&gt;<br>
<b>Sent:</b> Thursday, September 22, 2016 6:57 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Cc:</b> <a href="mailto:comercial@ypytecnologia.com.br" target="_blank" style="color: blue; text-decoration: underline;">
comercial@ypytecnologia.com.br</a><br>
<b>Subject:</b> Re: [Freeswitch-users] Playback within condition</span><span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">
</span></p>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
</div>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">look at the log generated by calling this.&nbsp; What order do the dial plan apps show up?&nbsp; Does the playback show up? &nbsp;what do the logs show it doing when it executes that playback?
</span></p>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">On Sep 22, 2016, at 1:06 PM, Caio Assis &lt;<a href="mailto:caioebassis@hotmail.com" target="_blank" style="color: blue; text-decoration: underline;">caioebassis@hotmail.com</a>&gt; wrote:</span></p>
</div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
<div>
<div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Hi.</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">Here's what I'm trying to do. I want to play a sound if a certain condition is true.</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&lt;extension name=&quot;test&quot;&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^1212$&quot;&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field=&quot;${cond(${destination_number} == 1212 ? 1212 : 0000)}&quot; expression=&quot;^1212$&quot;&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- this second condition is just to ilustrate the nested condition--&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;log&quot; data=&quot;INFO LOG&quot;/&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;playback&quot; data=&quot;sound1.gsm&quot;/&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;</span></p>
</div>
<div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;playback&quot; data=&quot;sound2.gsm&quot;/&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;hangup&quot;/&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp; &nbsp; &lt;/condition&gt;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&lt;/extension&gt;</span></p>
</div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">&nbsp;</span></p>
</div>
<div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<span style="font-family:&quot;Calibri&quot;,sans-serif; color:black">The sound 1 doesn't play, but I knew the condition was true because I can see the INFO LOG on the console. The sound 2, outside the condition, was played normally. Both PLAYBACK and READ applications
 don't work on nested conditions. Can anyone help me?</span></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" style="color: blue; text-decoration: underline;">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank" style="color: blue; text-decoration: underline;">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank" style="color: blue; text-decoration: underline;">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank" style="color: blue; text-decoration: underline;">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank" style="color: blue; text-decoration: underline;">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" style="color: blue; text-decoration: underline;">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" style="color: blue; text-decoration: underline;">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" style="color: blue; text-decoration: underline;">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank" style="color: blue; text-decoration: underline;">http://www.freeswitch.org</a></p>
</blockquote>
</div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: &quot;Times New Roman&quot;, serif;">
&nbsp;</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>