<div dir="ltr">enum or a DB query to your routing table for inbound calls, e.g. using <a href="http://wiki.freeswitch.org/wiki/Mod_odbc_query">mod_odbc_query</a>.<div><br><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><div class="gmail_quote">On Mon, Sep 24, 2012 at 12:36 AM, Lawrence Conroy <span dir="ltr"><<a href="mailto:lconroy@insensate.co.uk" target="_blank">lconroy@insensate.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi folks,<br>
Fair enough, but ... the original problem is that the users are/will be porting their current phone numbers, so they're all over the map.<br>
That's going to make routing/pattern matching a challenge, because there IS no obvious routeset pattern. Honestly, ENUM is easier in that scenario.<br>
<br>
all the best,<br>
Lawrence<br>
<div class="im"><br>
On 23 Sep 2012, at 23:03, Brian Foster wrote:<br>
> Mod_lcr?<br>
> On Sep 23, 2012 6:01 PM, "Stanislav Sinyagin" <<a href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>> wrote:<br>
><br>
>> Basically your inbouind and outbound calls should go through the same<br>
>> sequence of checkups, and look for a local user number. Then outbound calls<br>
>> should resort in your PSTN trunk, and inbound calls resort in a 404 Not<br>
>> Found. Also I guess you want to charge your users the same rate regardless<br>
>> if it's on-net or off-net calls, so CDR need to be taken care of too.<br>
>><br>
>><br>
</div>>> ------------------------------<br>
>> *From:* Stanislav Sinyagin <<a href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>><br>
>> *To:* FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
>> *Sent:* Sunday, September 23, 2012 10:31 PM<br>
>> *Subject:* Re: [Freeswitch-users] Keeping local calls local<br>
<div class="im">>><br>
>> well, that was only a hint, but not the whole solution :)<br>
>> In your case, it would require some database lookup, or maybe the dialplan<br>
>> should go through the customer numbers before sending the call to PSTN.<br>
>><br>
>> enum would be a good option instead of database lookup, as was already<br>
>> proposed on the list.<br>
>><br>
>> In any case, this all requires a bit of engineering and design effort.<br>
>><br>
>><br>
>><br>
</div>>> ------------------------------<br>
>> *From:* D'Arcy Cain <darcy@Vex.Net><br>
>> *To:* FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
>> *Cc:* Stanislav Sinyagin <<a href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>><br>
>> *Sent:* Sunday, September 23, 2012 10:04 PM<br>
>> *Subject:* Re: [Freeswitch-users] Keeping local calls local<br>
<div class="HOEnZb"><div class="h5">>><br>
>> On Sun, 23 Sep 2012 11:17:37 -0700 (PDT)<br>
>> Stanislav Sinyagin <<a href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>> wrote:<br>
>><br>
>>> here's a piece of my dialplan in "default" context. It simply catches<br>
>>> such calls and transfers them directly to the public context. The<br>
>>> public context matches local DID numbers and transfers them to<br>
>>> corresponding extensions in default context:<br>
>>><br>
>>> <extension name="internal_did"><br>
>>> <condition field="destination_number"<br>
>> expression="^($${default_did_prefix}\d+)$"><br>
>>> <action application="transfer" data="$1 XML public"/><br>
>>> </condition><br>
>>> </extension><br>
>>><br>
>>> The "default_did_prefix" variable holds my DID number block.<br>
>><br>
>> Looks good but my problem is that I do not have a DID block. Clients<br>
>> are porting their numbers so they are all over the place. My first<br>
>> three numbers in the system are from three different area codes. I<br>
>> would need to include all of my numbers in the expression somehow. Wit<br>
>> just three I can use '|' but that won't be practical when I have<br>
>> hundreds or thousands.<br>
>><br>
>> --<br>
>> D'Arcy J.M. Cain<br>
>> System Administrator, Vex.Net<br>
>> <a href="http://www.Vex.Net/" target="_blank">http://www.Vex.Net/</a> IM:darcy@Vex.Net<br>
>><br>
>><br>
>><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>
>><br>
>><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>
>><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>
<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>
</div></div></blockquote></div><br></div></div></div>