<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 22, 2016, at 1:06 PM, Caio Assis &lt;<a href="mailto:caioebassis@hotmail.com" class="">caioebassis@hotmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Here's what I'm trying to do. I want to play a sound if a certain condition is true.</div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><div class="">&lt;extension name="test"&gt;</div><div class="">&nbsp; &nbsp; &lt;condition field="destination_number" expression="^1212$"&gt;</div><div class=""><span style="font-size: 12pt;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="${cond(${destination_number} == 1212 ? 1212 : 0000)}" expression="^1212$"&gt;</span><br class=""></div><div class=""><span style="font-size: 12pt;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- this second condition is just to ilustrate the nested condition--&gt;</span></div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO LOG"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp;<span style="font-size: 12pt;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application="playback" data="sound1.gsm"/&gt;</span></div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;</div><div class=""><div class=""></div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="playback" data="sound2.gsm"/&gt;</div><div class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="hangup"/&gt;</div><div class="">&nbsp; &nbsp; &lt;/condition&gt;</div><div class="">&lt;/extension&gt;</div><span id="ms-rterangepaste-end" class=""></span><br class=""></div><div class="">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?</div></div></div></blockquote></div></div></body></html>