Which case(s) are not handled by Local_Extension, other than user not in the directory?<br><br>Also, if you use the "user/xxxx" dialstring format you'll get different errors depending on whether or not the user exists in the database:<br>
<br>freeswitch@default> originate user/1000 9664<br>-ERR USER_NOT_REGISTERED<br><br>freeswitch@default> originate user/1900 9664<br>-ERR SUBSCRIBER_ABSENT<br><br>User 1000 exists in the database but is not registered. User 1900 does not exist at all. In the case of a bridge app you can use chan var continue_on_fail=true and then check bridge_hangup_cause to determine what happened on the bridge attempt. I'm pretty sure you can then handle all of your scenarios.<br>
<br>-MC<br><br><div class="gmail_quote">On Mon, Nov 12, 2012 at 8:09 PM, Eugene Prokopiev <span dir="ltr"><<a href="mailto:enp@itx.ru" target="_blank">enp@itx.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_extra"><div class="gmail_quote"><div><div><div><span><font color="#888888"><span><font color="#888888">Hi,<br><br>With </font></span></font></span>"Local_Extension" I can't <span lang="en"><span>distinguish all cases, I can </span></span><span lang="en"><span></span></span><span lang="en"><span>distinguish only successful or</span></span> failed<span><font color="#888888"><span><font color="#888888"> answer.<br>
<br>About first case: </font></span></font></span>I have no sequential numbers for local users and can't describe range as regex. So, the best way to identify if local user exists is to search id (<span lang="en"><span>and number-alias</span></span>) in directory. I know about mod_xml_curl which can be used for filling dialplan and directory from some database, but I tried to find more simple way.<span class="HOEnZb"><font color="#888888"><br>
<span><font color="#888888"><span><font color="#888888"><br>-- <br>Regards,<br>Eugene Prokopiev</font></span></font></span><br></font></span></div></div>
</div></div></div>
<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>