<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. What order do the dial plan apps show up? Does the playback show up? 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 <<a href="mailto:caioebassis@hotmail.com" class="">caioebassis@hotmail.com</a>> 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=""><extension name="test"></div><div class=""> <condition field="destination_number" expression="^1212$"></div><div class=""><span style="font-size: 12pt;" class=""> <condition field="${cond(${destination_number} == 1212 ? 1212 : 0000)}" expression="^1212$"></span><br class=""></div><div class=""><span style="font-size: 12pt;" class=""> <!-- this second condition is just to ilustrate the nested condition--></span></div><div class=""> <action application="log" data="INFO LOG"/></div><div class=""> <span style="font-size: 12pt;" class=""> <action application="playback" data="sound1.gsm"/></span></div><div class=""> </condition></div><div class=""><div class=""></div><div class=""> <action application="playback" data="sound2.gsm"/></div><div class=""> <action application="hangup"/></div><div class=""> </condition></div><div class=""></extension></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>