<div>I wonder if anybody could provide a complete set of configuration files for a working xml_curl user directory lookup.</div>
<div> </div>
<div>I have been trying using the default set of configuration files, added the xml_curl module loading and modified the configuration like this:</div>
<div> </div>
<div><configuration name="xml_curl.conf" description="cURL XML Gateway"><br> <bindings><br> <binding name="dialplan fetcher"><br> <param name="gateway-url" value="<a href="http://172.16.26.10/apache2-default/dialplan.php">http://172.16.26.10/apache2-default/dialplan.php</a>" bindings="dialplan"/><br>
</binding><br> <binding name="directory fetcher"><br> <param name="gateway-url" value="<a href="http://172.16.26.10/apache2-default/directory.php">http://172.16.26.10/apache2-default/directory.php</a>" bindings="directory"/><br>
</binding><br> </bindings><br></configuration></div>
<div> </div>
<div>Both scripts just dump the expected XML result:</div>
<div> </div>
<div>
<div class="e">
<div>
<div><span class="m"><font color="#0000ff"><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br> <section name="dialplan" description="example_curl_dialplan"><br>
<context name="default"><br> <extension name="curl_test"><br> <condition field="destination_number" expression="^999999999$"><br> <action application="answer"/><br>
<action application="send_display" data="Echo Test"/><br> <action application="echo"/><br> </condition><br> </extension><br> </context><br>
</section><br></document></font></span></div>
<div><span class="m"><font color="#0000ff"></font></span> </div>
<div><span class="m"><?xml version="1.0" encoding="UTF-8" standalone="no"?><br><document type="freeswitch/xml"><br> <section name="directory" description="example_curl_directory"><br>
<domain name="<a href="http://172.26.16.10">172.26.16.10</a>"><br> <user id="carl"><br> <params><br> <param name="password" value="1234"/><br>
</params><br> </user><br> </domain><br> </section><br></document></span></div>
<div><span class="m"></span> </div>
<div><span class="m">The sofia-sip parameter "accept-blind-reg" is set to false.</span></div>
<div><span class="m"></span> </div>
<div><span class="m">When using one of the default users (1000), I can register and the xml_curl dialplan lookup works like expected. However, when trying to register as user carl,</span></div>
<div><span class="m">I can see that the XML is received by the xml_curl interface, but sofia-sip complains that it cannot find the user. Here is a part of the console output:</span></div>
<div><span class="m"></span> </div>
<div><span class="m">mod_xml_curl.c:194 xml_url_fetch() XML response is in /tmp/6053a796-2bdb-11dd-9449-17a3c8baef50.tmp.xml</span></div>
<div><span class="m">sofia_reg.c:1061 sofia_reg_parse_auth() can't find user [<a href="mailto:carl@172.16.26.10">carl@172.16.26.10</a>]</span></div>
<div><span class="m"></span> </div>
<div><span class="m">When using the xml_locate cli command, I get a similar result:</span></div>
<div><span class="m"></span> </div>
<div><span class="m">> xml_locate directory domain name <a href="http://172.16.26.10">172.16.26.10</a></span></div>
<div><span class="m">mod_xml_curl.c:194 xml_url_fetch() XML response is in /tmp/93d6019a-2bdb-11dd-9449-17a3c8baef50.tmp.xml</span></div>
<div><span class="m">API CALL [xml_locate(directory domain name <a href="http://172.16.26.10">172.16.26.10</a>)] output:</span></div>
<div><span class="m"><domain name="<a href="http://172.16.26.10">172.16.26.10</a>"></span></div>
<div><span class="m">### contents of local XML file (users 1000 and up)</span></div>
<div><span class="m"></domain></span></div>
<div><span class="m"></span> </div>
<div><span class="m">It fetches the XML from the webserver and dumps the contents of the local XML files. Disabling the "directory" section in the default freeswitch.xml file does not help,</span></div>
<div><span class="m">as I initially thought it might be caused by the duplicate domain names.</span></div>
<div><span class="m"></span> </div>
<div><span class="m">I hope someone could help out here.</span></div></div></div></div>