<div dir="ltr"><div>Hi, Im Completely new to Freeswitch and appreciating it </div><div><br></div><div>Im trying to dynamically register a user using mod_lua, This is the returned XML from my lua script</div><div><br></div>
<div>&lt;include&gt;</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>  &lt;/user&gt;</div><div>  </div><div>&lt;/include&gt;</div><div><br></div><div>however each time i try to make a call with that user, i get a </div>
<div>&quot;</div><div> Can&#39;t find user [9090@My_IP] from My_IP</div><div>You must define a domain called &#39;My_ip&#39; in your directory and add a user with the id=&quot;9090&quot; attribute</div><div>and you must configure your device to use the proper domain in it&#39;s authentication credentials.</div>
<div><br></div><div>&quot;</div><div><br></div><div>However, if i manually create a 9090.xml file  adding the same contents, everything works as should </div><div><br></div><div><br></div><div><br></div><div>this is my lua.conf</div>
<div><br></div><div> &lt;param name=&quot;xml-handler-script&quot; value=&quot;dp.lua&quot;/&gt;</div><div>    &lt;param name=&quot;xml-handler-bindings&quot; value=&quot;directory&quot;/&gt;</div><div><br></div><div>  Any help would is highly appreciated!. </div>
<div><br></div><div>  Thank You</div><div><br></div>-- <br>
</div>