Robert,<br><br>Is your module in the git contrib? Is there a public place we can download it?<br><br><div class="gmail_quote">On Fri, Sep 23, 2011 at 1:13 PM, Robert Hadley <span dir="ltr"><<a href="mailto:robert.hadley@teotech.com">robert.hadley@teotech.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">No, the custom didmap module doesn't manage users, another app does. I call the didmap app from public.xml and transfer to whatever destination it returns in defaults.xml, e.g. a local_extension, faxserver, or caller_blocked.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> <extension name="didmap_lookup_transfer" continue="true"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> <condition field="destination_number" expression="^(\d+)$"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> <action application="set" data="did_number=$1"/><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> <action application="didmap" data="${did_number} ${caller_id_number}"/><u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);"> <action application="transfer" data="${didmaplookup_dest} XML default"/><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </condition><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </extension><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">DID map DB table:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">CREATE TABLE inbounddidnumbermap<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">(<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> id bigserial NOT NULL,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> phonenumber character varying(255),<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> fax boolean NOT NULL DEFAULT false,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> mobile boolean NOT NULL DEFAULT false,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> extension_id bigint,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> CONSTRAINT inbounddidnumbermap_pkey PRIMARY KEY (id),<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p><div><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Chad Vogel [mailto:<a href="mailto:cvogel@lyonl.com" target="_blank">cvogel@lyonl.com</a>] <br><b>Sent:</b> Friday, September 23, 2011 12:31 PM<div>
<div></div><div class="h5"><br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] large block of DID's<u></u><u></u></div></div></span></p></div></div><div><div></div><div class="h5"><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">I would love to see your module because I'm are thinking about writing one c or c# to do almost the same thing. are you then routing the DID to an application server to manage the users? <u></u><u></u></p>
<div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sep 23, 2011, at 11:26 AM, Robert Hadley wrote:<u></u><u></u></p></div><p class="MsoNormal">
<br><br><u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I created a C didmap module I can share that uses ODBC to lookup a variable length DID number and return the user's extension, plus flags for fax server and mobile DIDs. If you pass in the caller_id_number it also checks for blocked callers.</span><u></u><u></u></p>
</div><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Robert</span><u></u><u></u></p>
</div><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><u></u><u></u></p></div><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span><u></u><u></u></p>
</div><div><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span><span style="font-size: 10pt;"> </span></span><span style="font-size: 10pt;">Avi Marcus <a href="mailto:[mailto:avi@avimarcus.net]" target="_blank">[mailto:avi@avimarcus.net]</a><span> </span><br>
<b>Sent:</b><span> </span>Thursday, September 22, 2011 12:54 PM<br><b>To:</b><span> </span>FreeSWITCH Users Help<br><b>Subject:</b><span> </span>Re: [Freeswitch-users] large block of DID's</span><u></u><u></u></p></div>
<div><p class="MsoNormal"> <u></u><u></u></p></div><div><div><p class="MsoNormal">I'd be interested in seeing the Lua script that does the users/directory. I don't think I've seen one yet, I'm not quite sure how that would work. I've only used xml_curl for a dialplan with a web server..<br clear="all">
<u></u><u></u></p></div><div><div><p class="MsoNormal"><span>-Avi</span><u></u><u></u></p></div></div><p class="MsoNormal" style="margin-bottom: 12pt;"><br><br><br><u></u><u></u></p><div><div><p class="MsoNormal">On Thu, Sep 22, 2011 at 10:00 PM, Chad Vogel <<a href="mailto:cvogel@lyonl.com" target="_blank">cvogel@lyonl.com</a>> wrote:<u></u><u></u></p>
</div><div><p class="MsoNormal">Are you also using a lua script via odbc to manage users?<br><br><br>On Sep 14, 2011, at 10:39 PM, <<a href="mailto:ljjimenez@gmail.com" target="_blank">ljjimenez@gmail.com</a>><u></u><u></u></p>
</div><div><div><div><p class="MsoNormal"> <<a href="mailto:ljjimenez@gmail.com" target="_blank">ljjimenez@gmail.com</a>> wrote:<br><br>> We do this with about 10k DIDs, we use MySQL and a Lua script via ODBC<br>
><br>> Luis Jimenez<br>><br>> -----Original Message-----<br>> From: Chad Vogel <<a href="mailto:cvogel@lyonl.com" target="_blank">cvogel@lyonl.com</a>><br>> Sender:<span> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>
> Date: Wed, 14 Sep 2011 15:44:23<br>> To:<span> </span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>><br>
> Reply-To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>> Subject: [Freeswitch-users] large block of DID's<br>
><br>> I was wondering if anyone has any thoughts what is the best way to manage a large blocks of DID? (we have about 1600 DID's that we are moving off of our asterisk servers)<br>><br>> Chad<br>><br>><br>
> FreeSWITCH-users mailing list<br>><span> </span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>><span> </span><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>><span> </span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>><br>><br>> FreeSWITCH-users mailing list<br>><span> </span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>><span> </span><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>><span> </span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br><br><br><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><u></u><u></u></p>
</div></div></div></div><div><p class="MsoNormal"> <u></u><u></u></p></div></div><p class="MsoNormal"><span style="font-size: 13.5pt;"><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><u></u><u></u></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div><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>