Hello!<div><br></div><div>I'd like to be able to have FreeSWITCH check a database for authorization, every time a user registers. There are some great examples on the wiki, which use either MOD_XML_CURL or Lua to dynamically provide a dialplan, but I cannot find an example for providing a directory.</div>
<div><br></div><div>I am developing an application that will have thousands of users, and will run on multiple FreeSWITCH servers behind a load balancer. Ideally, FreeSWITCH would only look-up directory information, specifically, username and password, whenever a user attempts to connect. The directory information will be changing regularly, as users are added or removed from the system.</div>
<div><br></div><div>Is this possible with FreeSWITCH? Or can only dialplan information be provided dynamically?</div><div><br></div><div>I've written a script in Lua that provides the XML data, such as that found in the example /freeswitch/conf/directory/default/ folders, and I try to call it with this bit of XML in /freeswitch/conf/directory/default.xml:</div>
<div><br></div><div><div><div><div><groups></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><group name="default"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><users></div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span><param name="xml-handler-script" value="/directory.lua"/></div><div><span class="Apple-tab-span" style="white-space:pre">                </span><param name="xml-handler-bindings" value="users"/></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span></users></div><div></groups></div><div><br></div><div>Is this the right approach? Am I going about this the right way?</div></div></div></div><div>
<br></div><div>I would appreciate any tips that anyone can provide!</div><div><br></div><div>Thanks!</div><div><br></div><div>Mike van Lammeren</div><div><br></div><div><br></div>