<div dir="ltr"><div><div>OK, I&#39;ve created one XML file called it users.xml, deleted the previous ones and restarted freeswitch <br></div></div><font><b>now i get the same error for all users...</b></font><br><div><br>&lt;include&gt;<br>
  &lt;!--the domain or ip (the right hand side of the @ in the addr--&gt;<br>    &lt;domain name=&quot;x.x.x.1&quot;&gt;<br>        &lt;groups&gt;<br>            &lt;group name=&quot;Lexifone&quot;&gt;<br>                &lt;users&gt;<br>
                    &lt;user id=&quot;1111&quot;&gt;<br>                        &lt;params&gt;<br>                            &lt;param name=&quot;password&quot; value=&quot;1111&quot;/&gt;<br>                        &lt;/params&gt;<br>
                    &lt;/user&gt;<br>                    &lt;user id=&quot;2222&quot;&gt;<br>                        &lt;params&gt;<br>                            &lt;param name=&quot;password&quot; value=&quot;2222&quot;/&gt;<br>
                        &lt;/params&gt;<br>                    &lt;/user&gt;<br>                    &lt;user id=&quot;3333&quot;&gt;<br>                        &lt;params&gt;<br>                            &lt;param name=&quot;password&quot; value=&quot;3333&quot;/&gt;<br>
                        &lt;/params&gt;<br>                    &lt;/user&gt;<br>                    &lt;user id=&quot;4444&quot;&gt;<br>                        &lt;params&gt;<br>                            &lt;param name=&quot;password&quot; value=&quot;4444&quot;/&gt;<br>
                        &lt;/params&gt;<br>                    &lt;/user&gt;<br>                &lt;/users&gt;<br>            &lt;/group&gt;<br>        &lt;/groups&gt;<br>    &lt;/domain&gt;<br>&lt;/include&gt;<br><br><div>
<div><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>
From: Lucas Castro &lt;<a href="mailto:lucasmcastro@gmail.com">lucasmcastro@gmail.com</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Cc: <br>Date: Wed, 3 Sep 2014 10:17:47 -0300<br>Subject: Re: [Freeswitch-users] Can&#39;t register more than one user to freeswitch<br><div dir="ltr">you need once to define the domain <span style="font-family:arial,sans-serif;font-size:13px">&lt;domain name=&quot;x.x.x.1&quot;&gt; and the 2 users must be within it.</span><div>
<span style="font-family:arial,sans-serif;font-size:13px">i guess its not working now &#39;cause you removed both domain tags.</span><br style="font-family:arial,sans-serif;font-size:13px">

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 9:54 AM, Snabel Kabiya <span dir="ltr">&lt;<a href="mailto:snabel@lexifone.com" target="_blank">snabel@lexifone.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<br><br>now i can&#39;t register both of them and i get the error for both users. <br>
<br>&lt;include&gt;<div>

<br>

  &lt;user id=&quot;4444&quot;&gt;<br>    &lt;params&gt;<br>      &lt;param name=&quot;password&quot; value=&quot;4444&quot;/&gt;<br>    &lt;/params&gt;<br>  &lt;/user&gt; <br></div>&lt;/include&gt;<br><br><div>&lt;include&gt;<div>


<br>
  &lt;user id=&quot;1111&quot;&gt;<br>
    &lt;params&gt;<br>      &lt;param name=&quot;password&quot; value=&quot;1111&quot;/&gt;<br>    &lt;/params&gt;<br>  &lt;/user&gt; <br></div>&lt;/include&gt;<span><font color="#888888"><br><br></font></span></div>

<span><font color="#888888"><div>Snabel,<br></div></font></span><div><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br>---------- Forwarded message ----------<br>From: Brian West &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;<br>



To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Cc: <br>Date: Wed, 3 Sep 2014 07:36:13 -0500<br>Subject: Re: [Freeswitch-users] Can&#39;t register more than one user to freeswitch<br>



<div dir="ltr">You do not need domain tags on the 1111.xml or 4444.xml the domain is wrapped from a higher level include, the possibly reason 1111 is working and not 4444 is the domain is listed twice in the XML and the first one found doesn&#39;t contain a user 4444 in it.</div>




</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 7:18 AM, Snabel Kabiya <span dir="ltr">&lt;<a href="mailto:snabel@lexifone.com" target="_blank">snabel@lexifone.com</a>&gt;</span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br>I&#39;m using X-lite to test mod_sms in freeswitch.<br></div>I&#39;ve created two users on server x.x.x.1<br>




<br>&lt;include&gt;<br>&lt;domain name=&quot;x.x.x.1&quot;&gt;<br>  &lt;user id=&quot;1111&quot;&gt;<br>
    &lt;params&gt;<br>      &lt;param name=&quot;password&quot; value=&quot;1111&quot;/&gt;<br>    &lt;/params&gt;<br>  &lt;/user&gt;<br>&lt;/domain&gt; <br>&lt;/include&gt;<br><br>&lt;include&gt;<br>&lt;domain name=&quot;x.x.x.1&quot;&gt;<br>





  &lt;user id=&quot;4444&quot;&gt;<br>    &lt;params&gt;<br>      &lt;param name=&quot;password&quot; value=&quot;4444&quot;/&gt;<br>    &lt;/params&gt;<br>  &lt;/user&gt;<br>&lt;/domain&gt; <br>&lt;/include&gt;<br><br></div>





<div>I&#39;ve but both files: 1111.xml, 4444.xml in /usr/local/freeswitch/conf/directory. restarted freeswitch after that.<br><br></div><div><br></div>i managed to register user 1111 using X-Lite, but when i tried to register user 4444, i got this error on freeswitch:<br>





<div><br><span style="background-color:rgb(255,255,0)"><font size="4"><b>2014-09-03 15:05:57.177795 [WARNING] sofia_reg.c:2566 Can&#39;t find user [4444@x.x.x.1] from x.x.x.x<br>You must define a domain called &#39;x.x.x.1&#39; in your directory and add a user with the id=&quot;4444&quot; attribute<br>





and you must configure your device to use the proper domain in it&#39;s authentication credentials.</b></font></span><br><br></div><div><div><div>is there some limitation in freeswitch? do i need to change some configuration file?<br>





<br><br></div><div>Thanks,<br></div><div>Snabel<br></div><div><br><br>Hi,<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><br></div>i&#39;m trying to use mod_sms.<br>





</div><br>i did the following steps<br>


</div><div>1 - used the instructions here to compile the module <br></div><a href="http://wiki.freeswitch.org/wiki/Mod_sms#Args" target="_blank">http://wiki.freeswitch.org/wiki/Mod_sms#Args</a><br>
<a href="https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_chat" target="_blank">https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_chat</a><br><br>created two users on both servers x.x.x.1, x.x.x.2 <br><br><div><div>








<div>&lt;domain name=&quot;x.x.x.1&quot;&gt;<br>
  &lt;user id=&quot;2222&quot;&gt;<br>    &lt;params&gt;<br>      &lt;param name=&quot;password&quot; value=&quot;2222&quot;/&gt;<br>    &lt;/params&gt;<br>  &lt;/user&gt;<br>&lt;/domain&gt; <br><br>&lt;domain name=&quot;x.x.x.1&quot;&gt;<br>









  &lt;user id=&quot;1111&quot;&gt;<br>    &lt;params&gt;<br>      &lt;param name=&quot;password&quot; value=&quot;1111&quot;/&gt;<br>    &lt;/params&gt;<br>  &lt;/user&gt;<br>&lt;/domain&gt; <br><br></div><div>created this chatplan:<br>









<br></div><div>public.xml:<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;include&gt;<br>    &lt;context name=&quot;public&quot;&gt;<br>        &lt;extension name=&quot;public&quot;&gt;<br>            &lt;condition field=&quot;to&quot; expression=&quot;^(.*)$&quot;&gt;<br>









                &lt;action application=&quot;log&quot; data=&quot;INFO to_chat remote&quot;/&gt;<br>                &lt;action application=&quot;reply&quot; data=&quot;Hello, you said: ${_body}&quot;/&gt;<br>            &lt;/condition&gt;<br>









        &lt;/extension&gt;<br>    &lt;/context&gt;<br>&lt;/include&gt;<br><br><br></div><div>but now when i send this from server x.x.x.2<br>freeswitch@internal&gt; chat sip|2222@x.x.x.2|external/sip:1111@x.x.x.1|hi from freeswitch snabel is here<br>









Sent<br><br></div><div>i get the following on server x.x.x.1<br>2014-09-03 11:18:18.780102 [INFO] mod_sms.c:336 Processing text message 2222-&gt;1111 in context public<br>Chatplan: 1111 parsing [public-&gt;public] continue=false<br>









Chatplan: 1111@x.x.x.1 Regex (PASS) [public] to(1111@x.x.x.1) =~ /^(.*)$/ break=on-false<br>Chatplan: 1111@x.x.x.1 Action log(INFO to_chat remote) <br>Chatplan: 1111@x.x.x.1 Action reply(Hello, you said: ${_body}) <br><font size="4"><b><span style="background-color:rgb(255,255,0)">2014-09-03 11:18:18.780102 [ERR] switch_loadable_module.c:769 Invalid chat application interface [log]!</span></b></font><br>









<br><br></div><div>what does it mean? what did i miss?<br><br></div><div>Thanks,<br></div><div>Snabel<br></div></div></div></div></blockquote></div></div></blockquote></div></div></div></div></div></div>
</blockquote></div></div></div></div></blockquote></div></div></div></div>
</blockquote></div></div></blockquote></div></div></div></div></div></div>