<div dir="ltr"><div>I think your XML schema is not incorrect (see <a href="https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory">https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory</a>).  Try returning something like the following:</div>
<div><br></div><div>&lt;document type=&quot;freeswitch/xml&quot;&gt;</div><div>  &lt;section name=&quot;directory&quot;&gt;<br></div><div><div>    &lt;domain name=&quot;<a href="http://somedomain.com">somedomain.com</a>&quot;&gt;</div>
</div><div>      &lt;user id=&quot;9090&quot;&gt;</div><div>        &lt;params&gt;</div><div>          &lt;param name=&quot;password&quot; value=&quot;9090&quot;/&gt;</div><div>          &lt;param name=&quot;vm-password&quot; value=&quot;7000&quot;/&gt;</div>
<div>        &lt;/params&gt;</div><div>      &lt;variables&gt;</div><div>        &lt;variable name=&quot;toll_allow&quot; value=&quot;domestic,international,local&quot;/&gt;</div><div>        &lt;variable name=&quot;accountcode&quot; value=&quot;7000&quot;/&gt;</div>
<div>        &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;</div><div>        &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Jude&quot;/&gt;</div><div>        &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;Jude&quot;/&gt;</div>
<div>        &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;$${outbound_caller_name}&quot;/&gt;</div><div>        &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;$${outbound_caller_id}&quot;/&gt;</div>
<div>        &lt;variable name=&quot;callgroup&quot; value=&quot;techsupport&quot;/&gt;</div><div>      &lt;/variables&gt;</div><div><div>    &lt;/domain&gt;</div></div><div>  &lt;/section&gt;</div><div>&lt;/document&gt;<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 3, 2014 at 12:23 PM, Iwada Eja <span dir="ltr">&lt;<a href="mailto:iwada.bassey@gmail.com" target="_blank">iwada.bassey@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks once again, i&#39;ve done that also, even shutdown and started up freeswitch with no luck</div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 3, 2014 at 8:16 PM, Moishe Grunstein <span dir="ltr">&lt;<a href="mailto:max@nysolutions.com" target="_blank">max@nysolutions.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">You need to restart sip profile to changes to take effect.<u></u><u></u></span></p><div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399">Moishe Grunstein<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399">Tornado Computer Systems, Inc.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399"><a href="tel:212.400.7650" value="+12124007650" target="_blank">212.400.7650</a> <a href="http://888.IPPBX.US" target="_blank">888.IPPBX.US</a><br>

</span><b><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#76923c">Service Request Email:
<a href="mailto:support@nysolutions.com" target="_blank">support@nysolutions.com</a> </span></b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#333399"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399">Polycom Certified VAR<br>
Microsoft Small Business Specialist, Cisco SMB Select Certified</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#333399"><u></u><u></u></span></p>
<p class="MsoNormal"><a href="http://www.nysolutions.com/" target="_blank"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d;text-decoration:none"><img border="0" width="147" height="68" src="cid:image001.jpg@01CF7F3E.DC264830" alt="cid:image001.jpg@01C72F94.9EE45D60"></span></a><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#c0504d">Computer Networking * Managed Services * IP Video Surveillance * Network Assessments * Web Solutions
 * Voice over IP * Disaster Recovery * Network Security * Site Surveys * CMS</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
</div><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>]
<b>On Behalf Of </b>Iwada Eja<br>
<b>Sent:</b> Tuesday, June 03, 2014 3:11 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] User Not found<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Thanks Molshe, <u></u><u></u></p>
<div>
<p class="MsoNormal">Made the changes you suggested, but still having the same challenge<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Jun 3, 2014 at 7:44 PM, Moishe Grunstein &lt;<a href="mailto:max@nysolutions.com" target="_blank">max@nysolutions.com</a>&gt; wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Try either changing the user context to My_IP or if this is a single tenant/domain add force-register-domain=$${domain}  to the sip profile.<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399">Thanks,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399">Moishe Grunstein</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399">Tornado Computer Systems, Inc.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399"><a href="tel:212.400.7650" value="+12124007650" target="_blank">212.400.7650</a>
<a href="http://888.IPPBX.US" target="_blank">888.IPPBX.US</a><br>
</span><b><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#76923c">Service Request Email:
<a href="mailto:support@nysolutions.com" target="_blank">support@nysolutions.com</a>
</span></b><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#333399">Polycom Certified VAR<br>
Microsoft Small Business Specialist, Cisco SMB Select Certified</span><u></u><u></u></p>
<p class="MsoNormal"><a href="http://www.nysolutions.com/" target="_blank"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1f497d;text-decoration:none"><img border="0" width="147" height="68" src="cid:image001.jpg@01CF7F3E.DC264830" alt="cid:image001.jpg@01C72F94.9EE45D60"></span></a><u></u><u></u></p>


<p class="MsoNormal"><span style="font-size:8.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#c0504d">Computer Networking * Managed Services * IP Video Surveillance * Network Assessments * Web Solutions
 * Voice over IP * Disaster Recovery * Network Security * Site Surveys * CMS</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>]
<b>On Behalf Of </b>Iwada Eja<br>
<b>Sent:</b> Tuesday, June 03, 2014 2:35 PM<br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">
freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> [Freeswitch-users] User Not found</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi, Im Completely new to Freeswitch and appreciating it <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Im trying to dynamically register a user using mod_lua, This is the returned XML from my lua script<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">&lt;include&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">  &lt;user id=&quot;9090&quot;&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">    &lt;params&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;param name=&quot;password&quot; value=&quot;9090&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;param name=&quot;vm-password&quot; value=&quot;7000&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">    &lt;/params&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">    &lt;variables&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;variable name=&quot;toll_allow&quot; value=&quot;domestic,international,local&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;variable name=&quot;accountcode&quot; value=&quot;7000&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Jude&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;Jude&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;variable name=&quot;outbound_caller_id_name&quot; value=&quot;$${outbound_caller_name}&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;variable name=&quot;outbound_caller_id_number&quot; value=&quot;$${outbound_caller_id}&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">      &lt;variable name=&quot;callgroup&quot; value=&quot;techsupport&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">    &lt;/variables&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">  &lt;/user&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">  <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">&lt;/include&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">however each time i try to make a call with that user, i get a <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">&quot;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Can&#39;t find user [9090@My_IP] from My_IP<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">You must define a domain called &#39;My_ip&#39; in your directory and add a user with the id=&quot;9090&quot; attribute<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">and you must configure your device to use the proper domain in it&#39;s authentication credentials.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">&quot;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">However, if i manually create a 9090.xml file  adding the same contents, everything works as should <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">this is my lua.conf<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> &lt;param name=&quot;xml-handler-script&quot; value=&quot;dp.lua&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">    &lt;param name=&quot;xml-handler-bindings&quot; value=&quot;directory&quot;/&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">  Any help would is highly appreciated!. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">  Thank You<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">--
<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <br>
Kind Regards<br>
Iwada<u></u><u></u></p>
</div>
</div></div></div>
</div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Kind Regards<br>Iwada<br>
</div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>