Hi,<br><br><span lang="en"><span>I need to perform</span> <span>different actions</span> <span>in response to</span> <span>the following conditions:</span><br><br>
* <span>The called number</span> <span>is not exists in the</span> <span>directory (</span><span></span><span>check</span> <span></span><span>id</span> <span>and</span> <span>number-alias)</span><br>
</span><span lang="en">* </span><span lang="en"><span>The called number</span> <span>is known, but</span> <span>not registered</span><br></span><span lang="en">* </span><span lang="en"><span>The called</span> <span>number is busy</span><br>

</span><span lang="en">* </span><span lang="en"><span>The called number is</span> <span>not answered</span> <span>due timeout</span><br></span><span lang="en">* </span><span lang="en"><span>The called number is</span><span></span> <span>answer</span>ed<br>

<br><span>In the first</span> <span>case I need</span> <span>to send</span> <span>the call</span> <span>through a particular</span> <span>gateway,</span> <span>in the next two</span> <span>cases I need to play a</span> <span>file,</span> <span>in</span><span> two remaining</span> cases I need to call user and play a file only on timeout.<br>

<br><span>What is the right</span> to do it <span>in the dialplan</span><span>?</span></span><div class=""><div id=":1og" class="" tabindex="0"><img class="" src="images/cleardot.gif"></div></div><span class=""><font color="#888888"><br>
-- <br>Regards,<br>Eugene Prokopiev</font></span><br>