<div dir="ltr"><br><br><div class="gmail_quote">2008/10/17 John Todd <span dir="ltr"><<a href="mailto:jtodd@digium.com">jtodd@digium.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">At 5:46 PM +0200 2008/10/16, Olivier wrote:<br>
><br>
>Is Incomplete() application an acceptable work around for ISN ?<br>
><br>
<br>
</div>It is impossible to determine the full sequence of digits for an ISN<br>
number ahead of time (well, I shouldn't say "impossible" because one<br>
could create a really nasty hack...) because the number of digits<br>
isn't known until the user indicates they are done dialing. To<br>
determine if the subscriber and/or the ITAD are valid, one must<br>
perform a lookup and possibly a connection attempt to the remote<br>
system for determination.<br>
<br>
Both the subscriber number (the stuff to the left of the "*") and the<br>
ITAD number (the stuff to the right of the "*") are not bounded by a<br>
particular pattern. Therefore, it is not reasonable to create<br>
regexps other than "does this string contain at least one but maybe<br>
more digits, followed by the "*" sign, followed by at least one but<br>
maybe more digits".<br>
<br>
So, 1234*256 is a valid ISN sequence, as is 12345*2567. (Though only<br>
the first one of the two is actually active at the moment.)<br>
<br>
See <a href="http://www.freenum.org/" target="_blank">http://www.freenum.org/</a> for more details on what makes up an ISN.<br>
It's free to participate, and Asterisk incorporates ISN-style dialing<br>
as a default in the ENUMLOOKUP routines. Accepting inbound calls is<br>
easy as well - it's just SIP inbound calling, no magic there.<br>
<br>
JT</blockquote><div><br>Writing this :<br><br>exten => _XXX*,1,Incomplete()<br>exten => _XXXX*,1,Incomplete()<br>exten => _XXXXX*,1,Incomplete()<br><br>would work to catch 3 to 5 digits private extensions, but it would remains difficult to catch the ITAD number, right ?<br>
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
<br>
--<br>
John Todd<br>
<a href="mailto:jtodd@digium.com">jtodd@digium.com</a> +1-256-428-6083<br>
Asterisk Open Source Community Director<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>