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">&lt;<a href="mailto:robert.hadley@teotech.com">robert.hadley@teotech.com</a>&gt;</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&#39;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);">    &lt;extension name=&quot;didmap_lookup_transfer&quot; continue=&quot;true&quot;&gt;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d+)$&quot;&gt;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">        &lt;action application=&quot;set&quot; data=&quot;did_number=$1&quot;/&gt;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">        &lt;action application=&quot;didmap&quot; data=&quot;${did_number} ${caller_id_number}&quot;/&gt;<u></u><u></u></span></p><p class="MsoNormal">
<span style="font-size: 11pt; color: rgb(31, 73, 125);">        &lt;action application=&quot;transfer&quot; data=&quot;${didmaplookup_dest} XML default&quot;/&gt;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">      &lt;/condition&gt;<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">    &lt;/extension&gt;<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&#39;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&#39;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&#39;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&#39;s</span><u></u><u></u></p></div>
<div><p class="MsoNormal"> <u></u><u></u></p></div><div><div><p class="MsoNormal">I&#39;d be interested in seeing the Lua script that does the users/directory. I don&#39;t think I&#39;ve seen one yet, I&#39;m not quite sure how that would work. I&#39;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 &lt;<a href="mailto:cvogel@lyonl.com" target="_blank">cvogel@lyonl.com</a>&gt; 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, &lt;<a href="mailto:ljjimenez@gmail.com" target="_blank">ljjimenez@gmail.com</a>&gt;<u></u><u></u></p>
</div><div><div><div><p class="MsoNormal"> &lt;<a href="mailto:ljjimenez@gmail.com" target="_blank">ljjimenez@gmail.com</a>&gt; wrote:<br><br>&gt; We do this with about 10k DIDs, we use MySQL and a Lua script via ODBC<br>
&gt;<br>&gt; Luis Jimenez<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: Chad Vogel &lt;<a href="mailto:cvogel@lyonl.com" target="_blank">cvogel@lyonl.com</a>&gt;<br>&gt; Sender:<span> </span><a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>
&gt; Date: Wed, 14 Sep 2011 15:44:23<br>&gt; To:<span> </span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>&lt;<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
&gt; Reply-To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>&gt; Subject: [Freeswitch-users] large block of DID&#39;s<br>
&gt;<br>&gt; 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&#39;s that we are moving off of our asterisk servers)<br>&gt;<br>&gt; Chad<br>&gt;<br>&gt;<br>
&gt; FreeSWITCH-users mailing list<br>&gt;<span> </span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt;<span> </span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt;<span> </span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>&gt;<br>&gt;<br>&gt; FreeSWITCH-users mailing list<br>&gt;<span> </span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt;<span> </span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt;<span> </span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<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>