<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">yes.. so look at the code in mod_xml_curl for how to interface with that in the c code, replace the code that pulls xml using curl with something that creates the results you need based on your sql queries.<div><br></div><div>Mike</div><div><br><div><div>On Feb 19, 2014, at 4:47 PM, Vik Killa &lt;<a href="mailto:vipkilla@gmail.com">vipkilla@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">I already use XML_CURL to dynamically provide the user directory.&nbsp;<br>I am interested in writing a module in C to provide the user directory.<div>I want the module to use PostgreSQL to populate user information and give it to FreeSWITCH.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 3:01 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div dir="ltr"><div>Read my last post a few more times, the wiki and possibly either edition of the FS book.</div><div>
<br></div><a href="https://wiki.freeswitch.org/wiki/Xml_curl" target="_blank">https://wiki.freeswitch.org/wiki/Xml_curl</a><br>
<div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 1:31 PM, Vik Killa <span dir="ltr">&lt;<a href="mailto:vipkilla@gmail.com" target="_blank">vipkilla@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div dir="ltr">I am quite confused. Is there no way to create a module that serve's User Agent authentication information to FS?&nbsp;</div>

<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 2:09 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div dir="ltr">You are confusing the directory interface "wrapper for ldap" with the FS Directory (The XML Registry)<div>


<br></div><div>How the XML Registry works is extensively documented in the wiki and our FS book.</div>
<div><br></div><div>The gist is that the XML is the abstraction layer; So you can write modules to seek things from the XML and not worry about external access.</div><div>Then you write modules that bind to xml searches and pre-empt the static xml by returning your own binary xml object with the correct data.</div>



<div><br></div><div>xml_curl and xml_scgi are the 2 in-house examples that transform the xml search into a url and fetch the xml from a remote service but you can also easily make a binding module to parse xml searches, do sql stmts and format the results in a binary xml obj without ever using textual xml markup.</div>



<div><br></div><div><br></div><div>&nbsp;</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Wed, Feb 19, 2014 at 12:49 PM, Vik Killa <span dir="ltr">&lt;<a href="mailto:vipkilla@gmail.com" target="_blank">vipkilla@gmail.com</a>&gt;</span> wrote:<br>



</div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div><div dir="ltr"><div class="gmail_extra">I am trying to test the directory interface in my module.</div>


<div class="gmail_extra">
It seems that FS will not send the authentication request to my module's directory interface though.</div>
<div class="gmail_extra">I know it is loaded because I see:</div><div class="gmail_extra"><br></div><div class="gmail_extra">2014-02-19 13:46:46.056080 [NOTICE] switch_loadable_module.c:429 Adding Directory interface 'test_directory'<br>




</div><div class="gmail_extra"><br></div><div class="gmail_extra">I have some debug lines in my module to display when the interface is run but i don't see the debugging.<br></div><div class="gmail_extra">Also, i loaded mod_ldap to test and it will not get queried by FS either.</div>




<div class="gmail_extra">Is there a FS parameter or setting that is needed to tell it to use the alternate directory interface?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks</div><div class="gmail_extra">




<br></div></div>
</div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div><br></div></body></html>