Are you planning on using mod_xml_curl for this? Just curious.<br><br>In any event, the example configuration has conf/dialplan/default.xml with &quot;Local_Extension&quot; entry that handles all of these except for the first case. However, I have to ask - what is wrong with the default way that FS handles unknown numbers?<br>
<br>-MC<br><br><div class="gmail_quote">On Sat, Nov 10, 2012 at 11:02 AM, Eugene Prokopiev <span dir="ltr">&lt;<a href="mailto:eugene.prokopiev@gmail.com" target="_blank">eugene.prokopiev@gmail.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><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><div><img src=""></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888"><br>
-- <br>Regards,<br>Eugene Prokopiev</font></span><br>
</font></span><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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>