We have a concept called the "directory interface" not to be confused with the "user directory".
The directory interface is a pluggable abstract API that looks and feels like LDAP only you can plug in anything you want to implement the functions.
mod_ldap is a module that registers to this interface and connects LDAP to it. So essentially you load mod_ldap then you use the freeswitch directory interface as you would have used the ldap code and it will carry over.
There is a mod_dialplan_directory who uses the directory interface to ask for a dialplan, and installs the results into an extension. In the case of mod_ldap obviously it allows you to get your dialplan from LDAP.
Now also in mod_ldap, there is some code someone recently contributed to tie our XML interface to LDAP,
This is more interesting because then when anything in FreeSWITCH tries to lookup a user, dialplan entry or anything else in our XML config, all the important details are passed to LDAP where it can make a query, pull the info out of LDAP and deliver it back to FreeSWITCH as the XML it was looking for. This allows you to make all of the registrations, dialplan etc real time driven by LDAP, you can also bind a perl or lua script to this operation as well as mod_xml_curl who will turn the request into an HTTP post to a web server to fetch the data.
Currently the directory interface is only used for that dialplan, I
would like to enhance that in the future. The directory dialploan
uses a filter of exten=destination number, and then has name/value
pairs, I will see if I can find the schema we used back when we
developed it, short of that, the code is the best reference on that.
Another option is to use mod_xml_curl and have your cgi back end to
ldap of your choice. This will give you more flexibility to use
other caller information in your ldap lookup.
Mike
On May 28, 2008, at 1:58 AM, Faraz R. Khan wrote:
> First of all- Amazing project. Tired of asterisk deadlocking all the
> time we have been deploying asterisk with OpenSER as the registrar.
> Freeswitch is a huge relief!
>
> This is an extremely important feature we have been looking for.
> Asterisk realtime ldap integration is very flaky. I found this page:
>
> http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_Directory
>
> But there are no clues as to the schema, the queries generated and
> what
> exactly it can hold in Ldap. I am also curious to know whether sofia's
> sip registrations, gateways etc can be kept in LDAP.
>
> We are basically developing an extensive plugin based control panel
> and
> a Asterisk module is already ready. However, we are writing
> asterisk .conf files for managing asterisk. We would be quite
> pleased to
> develop a FreeSwitch Ldap plugin to manage users,sip gateways, groups,
> features, etc.
>
> Though the XML configuration file is extremely easy to parse and
> write,
> pure LDAP integration would be amazing. Any pointers on this would be
> appreciated.
>
>
> --
> Faraz R Khan
> Chief Architect
> Emergen Consulting Pvt Ltd
> +92.21.529.0381 x200
> www.emergen.biz
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org