<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<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.<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399">Moishe Grunstein<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399">Tornado Computer Systems, Inc.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399">212.400.7650 888.IPPBX.US<br>
</span><b><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#76923C">Service Request Email:
<a href="mailto:support@nysolutions.com"><span style="color:blue">support@nysolutions.com</span></a>
</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#333399"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399">Polycom Certified VAR<br>
Microsoft Small Business Specialist, Cisco SMB Select Certified</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#333399"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.nysolutions.com/"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;text-decoration:none"><img border="0" width="147" height="68" id="Picture_x0020_1" src="cid:image001.jpg@01CF7F3A.4A920CF0" alt="cid:image001.jpg@01C72F94.9EE45D60"></span></a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Calibri","sans-serif";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:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<b>On Behalf Of </b>Iwada Eja<br>
<b>Sent:</b> Tuesday, June 03, 2014 2:35 PM<br>
<b>To:</b> freeswitch-users@lists.freeswitch.org<br>
<b>Subject:</b> [Freeswitch-users] User Not found<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Hi, Im Completely new to Freeswitch and appreciating it <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><include><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <user id="9090"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <params><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <param name="password" value="9090"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <param name="vm-password" value="7000"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </params><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variables><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variable name="toll_allow" value="domestic,international,local"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variable name="accountcode" value="7000"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variable name="user_context" value="default"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variable name="effective_caller_id_name" value="Jude"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variable name="effective_caller_id_number" value="Jude"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <variable name="callgroup" value="techsupport"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </variables><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </user><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"></include><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">however each time i try to make a call with that user, i get a <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> Can't find user [9090@My_IP] from My_IP<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">You must define a domain called 'My_ip' in your directory and add a user with the id="9090" attribute<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">and you must configure your device to use the proper domain in it's authentication credentials.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">However, if i manually create a 9090.xml file adding the same contents, everything works as should <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">this is my lua.conf<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"> <param name="xml-handler-script" value="dp.lua"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <param name="xml-handler-bindings" value="directory"/><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"> Any help would is highly appreciated!. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"> Thank You<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
</div>
</body>
</html>