<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:12pt">That's what I was trying to explain.<br><br>The xml files comprise a compiled xml registry document where all of the <br>meta data for FreeSWITCH is stored. <br><br>There is a way for a loadable module to bind to various sections of that xml<br>document so when something tries to access the document the loadable module's<br>function is called giving it the opportunity to generate the xml on the<br>fly. mod_xml_curl is an example of this. It can bind to one or more sections<br>of the xml registry and when the user directory or the dialplan is accessed,<br>the module will perform an http request to a cgi on a webserver with all<br>the relevant data of the request and that cgi can return the exact portion<br>of the xml document in place of the static version making it possible
to<br>make both purely dynamic. My suggestion in my last email was that <br>you could either use this or create the equivalent module that does<br>an ldap request and converts it to xml on the fly.<br><br><br><br><div> </div><div>Anthony Minessale II<br><br><span>FreeSWITCH <a target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br><span>ClueCon <a target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br><br>AIM: anthm<br>MSN:anthony_minessale@hotmail.com<br>GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<br>IRC: irc.freenode.net #freeswitch</div><div><br>FreeSWITCH Developer Conference<br>sip:888@conference.freeswitch.org<br>iax:guest@conference.freeswitch.org/888<br>googletalk:conf+888@conference.freeswitch.org<br>pstn:213-799-1400</div><div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new
york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Josip Djuricic <josip.djuricic@primatel.hr><br>To: freeswitch-users@lists.freeswitch.org<br>Sent: Tuesday, December 11, 2007 4:20:21 PM<br>Subject: Re: [Freeswitch-users] mod_ldap<br><br>
Ok, maybe to rephrase my question a bit....is there a way to use
realtime databases, or maybe via radius to get the data for the users
or dialplans, instead of using xml files.... if there is can someone
write the procedure, and if not let me know if ppl are interested to
see such implementation, and I can probably start writing , or
somebody's acctually working on it?<br>
<br>
Thanks in advance...<br>
<br>
j.<br>
<br>
Anthony Minessale wrote:
<blockquote type="cite">
<div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;">mod_ldap
is a plugin for the directory interface abstraction.<br>
Basically the directory interface is a clone of the ldap api but<br>
can have pluggable modules to use other means such as sql of providing
the data. The only thing that uses this interface is<br>
<br>
mod_dialplan_directory which is an example dialplan that uses<br>
the directory interface.<br>
<br>
This may start to sound confusing so keep in mind the ldap<br>
api is called the "directory interface".<br>
<br>
There is also the "xml directory" which is a section of <br>
the FreeSWITCH virtual meta xml config registry. This is <br>
where the domains and users are kept.<br>
<br>
To use ldap for this a module similar to mod_xml_curl would have to be
made called mod_xml_directory that would allow the "directory
interface" to generate xml when the "xml directory was queried"<br>
<br>
Basically, you would create a blank xml object then using <br>
the param strings passed to you make an ldap query via the <br>
directory interface that matches what is being looked for.<br>
then as you get results you take the data and create tags into<br>
the xml object until it's fully populated and return the object to<br>
the caller.<br>
<br>
If this seems like too much, you can also use mod_xml_curl to do<br>
a CGI request to your web server then take the params and do the ldap
conversion from there and send back a text representation of the xml.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div> </div>
<div>Anthony Minessale II<br>
<br>
<span>FreeSWITCH <a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a></span><br>
<span>ClueCon <a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com/</a></span><br>
<br>
AIM: anthm<br>
<a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:MSN:anthony_minessale@hotmail.com" target="_blank" href="mailto:MSN:anthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
<a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com" target="_blank" href="mailto:GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com">GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a target="_blank" href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch</div>
<div><br>
FreeSWITCH Developer Conference<br>
<a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:sip:888@conference.freeswitch.org" target="_blank" href="mailto:sip:888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:iax:guest@conference.freeswitch.org/888" target="_blank" href="mailto:iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:googletalk:conf+888@conference.freeswitch.org" target="_blank" href="mailto:googletalk:conf+888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400</div>
<div style="font-family: courier,monaco,monospace,sans-serif; font-size: 12pt;"><br>
<br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">-----
Original Message ----<br>
From: Josip Djuricic <a rel="nofollow" class="moz-txt-link-rfc2396E" ymailto="mailto:josip.djuricic@primatel.hr" target="_blank" href="mailto:josip.djuricic@primatel.hr"><josip.djuricic@primatel.hr></a><br>
To: <a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Sent: Tuesday, December 11, 2007 2:51:48 PM<br>
Subject: [Freeswitch-users] mod_ldap<br>
<br>
Hi everyone,<br>
<br>
since I can't find any info's regarding mod_ldap, I wonder if anyone <br>
made it work...and if can somebody wrote something about it on the wiki
<br>
or on the reply for this mail... I would really like freeswitch to use <br>
ldap for users and dialplans, just till yet I didn't managed to make it
<br>
work.<br>
<br>
Thank you all in advance.<br>
<br>
J.<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a rel="nofollow" ymailto="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</div>
<br>
</div>
</div>
<br>
<hr size="1">Looking for last minute shopping deals? <a rel="nofollow" target="_blank" href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping">
Find them fast with Yahoo! Search.</a>
<pre><hr size="4" width="90%">
_______________________________________________
Freeswitch-users mailing list
<a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</div><br></div></div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>