<div>I wonder if anybody could provide a complete set of configuration files for a working xml_curl user directory lookup.</div>
<div>&nbsp;</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>&nbsp;</div>
<div>&lt;configuration name=&quot;xml_curl.conf&quot; description=&quot;cURL XML Gateway&quot;&gt;<br>&nbsp; &lt;bindings&gt;<br>&nbsp;&nbsp;&nbsp; &lt;binding name=&quot;dialplan fetcher&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;gateway-url&quot; value=&quot;<a href="http://172.16.26.10/apache2-default/dialplan.php">http://172.16.26.10/apache2-default/dialplan.php</a>&quot; bindings=&quot;dialplan&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/binding&gt;<br>&nbsp;&nbsp;&nbsp; &lt;binding name=&quot;directory fetcher&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;gateway-url&quot; value=&quot;<a href="http://172.16.26.10/apache2-default/directory.php">http://172.16.26.10/apache2-default/directory.php</a>&quot; bindings=&quot;directory&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/binding&gt;<br>&nbsp; &lt;/bindings&gt;<br>&lt;/configuration&gt;</div>
<div>&nbsp;</div>
<div>Both scripts just dump the expected XML result:</div>
<div>&nbsp;</div>
<div>
<div class="e">
<div>
<div><span class="m"><font color="#0000ff">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>&nbsp; &lt;section name=&quot;dialplan&quot; description=&quot;example_curl_dialplan&quot;&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;context name=&quot;default&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;curl_test&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field=&quot;destination_number&quot; expression=&quot;^999999999$&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;answer&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;send_display&quot; data=&quot;Echo Test&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application=&quot;echo&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/context&gt;<br>
&nbsp; &lt;/section&gt;<br>&lt;/document&gt;</font></span></div>
<div><span class="m"><font color="#0000ff"></font></span>&nbsp;</div>
<div><span class="m">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;<br>&lt;document type=&quot;freeswitch/xml&quot;&gt;<br>&nbsp; &lt;section name=&quot;directory&quot; description=&quot;example_curl_directory&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;domain name=&quot;<a href="http://172.26.16.10">172.26.16.10</a>&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;user id=&quot;carl&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;params&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name=&quot;password&quot; value=&quot;1234&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/params&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/user&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/domain&gt;<br>&nbsp; &lt;/section&gt;<br>&lt;/document&gt;</span></div>
<div><span class="m"></span>&nbsp;</div>
<div><span class="m">The sofia-sip parameter &quot;accept-blind-reg&quot; is set to false.</span></div>
<div><span class="m"></span>&nbsp;</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>&nbsp;</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&#39;t find user [<a href="mailto:carl@172.16.26.10">carl@172.16.26.10</a>]</span></div>
<div><span class="m"></span>&nbsp;</div>
<div><span class="m">When using the xml_locate cli command, I get a similar result:</span></div>
<div><span class="m"></span>&nbsp;</div>
<div><span class="m">&gt; 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">&lt;domain name=&quot;<a href="http://172.16.26.10">172.16.26.10</a>&quot;&gt;</span></div>
<div><span class="m">### contents of local XML file (users 1000 and up)</span></div>
<div><span class="m">&lt;/domain&gt;</span></div>
<div><span class="m"></span>&nbsp;</div>
<div><span class="m">It fetches the XML from the webserver and dumps the contents of the local XML files. Disabling the &quot;directory&quot; 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>&nbsp;</div>
<div><span class="m">I hope someone could help out here.</span></div></div></div></div>