<div dir="ltr"><div><div><div><div>Hi,<br><br></div>looking at freeswitch.xml.fsxml log i saw that the domain is loaded twice from default.xml file and from my users.xml file.<br></div>i changed the default.xml file to default.xml_ and now i can register all users. <br>
</div><div>now i need to figure out  a better way for users to register to freeswitch ...<br></div><div><br></div>Thanks for your help guys :)<br></div>Snabel,<br><div><div><br><div><div><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"><br>---------- Forwarded message ----------<br>From: Iskren Hadzhinedev &lt;<a href="mailto:iskren.hadzhinedev@ikiji.com">iskren.hadzhinedev@ikiji.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: Thu, 04 Sep 2014 10:48:05 +0300<br>Subject: Re: [Freeswitch-users] Can&#39;t register more than one user to freeswitch<br>
<u></u>
<div style="font-family:&quot;Open Sans&quot;;font-size:8pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">Hi Snabel,</p>
<p style="margin:0px;text-indent:0px">Can you try replacing the domain name with $${local_ip_v4} and verify that the file with your users is located in freeswitch/conf/directory ?</p>
<p style="margin:0px;text-indent:0px">If it’s in a subdirectory (e.g. freeswitch/conf/directory/default) it won’t load correctly. The other thing you might want to check is the freeswitch/log/freeswitch.xml.fsxml  file, as that holds the parsed configuration from FreeSWITCH. Check if your directory is loaded like this:</p>

<p style="margin:0px;text-indent:0px">....</p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">&lt;section name=”directory” description=”User Directory”&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">  &lt;!--the domain or ip (the right hand side of the @ in the addr--&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">    &lt;domain name=&quot;x.x.x.1&quot;&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">        &lt;groups&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">            &lt;group name=&quot;Lexifone&quot;&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                &lt;users&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                    &lt;user id=&quot;1111&quot;&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                        &lt;params&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                            &lt;param name=&quot;password&quot; value=&quot;1111&quot;/&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                        &lt;/params&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                    &lt;/user&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                    &lt;user id=&quot;2222&quot;&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                        &lt;params&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                            &lt;param name=&quot;password&quot; value=&quot;2222&quot;/&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                        &lt;/params&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                    &lt;/user&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                    &lt;user id=&quot;3333&quot;&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                        &lt;params&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                            &lt;param name=&quot;password&quot; value=&quot;3333&quot;/&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                        &lt;/params&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                    &lt;/user&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                    &lt;user id=&quot;4444&quot;&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                        &lt;params&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                            &lt;param name=&quot;password&quot; value=&quot;4444&quot;/&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                        &lt;/params&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                    &lt;/user&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">                &lt;/users&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">            &lt;/group&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">        &lt;/groups&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">    &lt;/domain&gt;</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&quot;cousine&quot;">&lt;/section&gt;</span></p>
<p style="margin:0px;text-indent:0px">....</p>
<p style="margin:0px;text-indent:0px">If that’s fine too, you might want to check is the output of the “sofia status” command and see if you have an aliased domain named “x.x.x.1”. If you don’t, you might want to put <span style="font-family:&quot;cousine&quot;">&lt;domain name=&quot;all&quot; alias=&quot;true&quot; parse=”false”/&gt;</span> in your freeswitch/conf/sip_profiles/internal.xml (if it’s not there already) and issue “reload mod_sofia” or “sofia profile internal rescan”.</p>

<p style="margin:0px;text-indent:0px">Hope this helps.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Kind regards,</p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px"><span style="font-weight:600">Iskren Hadzhinedev</span></p>
<p style="margin:0px;text-indent:0px"><br>On Thursday 04 September 2014 10:28:46 Snabel Kabiya wrote:<br></p>
<p style="margin:12px 40px 0px;text-indent:0px">OK, I&#39;ve created one XML file called it users.xml, deleted the previous ones and restarted freeswitch <br></p>
<p style="margin:0px;text-indent:0px"><span style="font-weight:600">now i get the same error for all users...</span><br></p>
<p style="margin:0px 40px;text-indent:0px"><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></p>

<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px;text-indent:0px"><br></p>
<p style="margin:0px 40px 0px 47px;text-indent:0px">---------- Forwarded message ----------<br>From: Lucas Castro &lt;<a href="mailto:lucasmcastro@gmail.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">lucasmcastro@gmail.com</span></a>&gt;<br>
To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">freeswitch-users@lists.freeswitch.org</span></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></p>
<p style="margin:0px 40px 0px 47px;text-indent:0px">you need once to define the domain <span style="font-family:&quot;arial,sans-serif&quot;;font-size:13px">&lt;domain name=&quot;x.x.x.1&quot;&gt; and the 2 users must be within it.</span></p>

<p style="margin:0px 40px 0px 47px;text-indent:0px"><span style="font-family:&quot;arial,sans-serif&quot;;font-size:13px">i guess its not working now &#39;cause you removed both domain tags.<br></span></p>
<p style="margin:0px 40px 0px 47px;text-indent:0px"><br><br></p>
<p style="margin:0px 40px 0px 47px;text-indent:0px">On Wed, Sep 3, 2014 at 9:54 AM, Snabel Kabiya &lt;<a href="mailto:snabel@lexifone.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">snabel@lexifone.com</span></a>&gt; wrote:<br>
</p>
<p style="margin:0px 40px 0px 54px;text-indent:0px">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;</p>
<p style="margin:0px 40px 0px 54px;text-indent:0px"><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>
</p>
<p style="margin:0px;text-indent:0px">&lt;/include&gt;<br><br></p>
<p style="margin:0px 40px 0px 54px;text-indent:0px">&lt;include&gt;</p>
<p style="margin:0px 40px 0px 54px;text-indent:0px"><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>
</p>
<p style="margin:0px;text-indent:0px">&lt;/include&gt;<span style="color:rgb(136,136,136)"><br><br></span></p>
<p style="margin:0px;text-indent:0px"><span style="color:rgb(136,136,136)">Snabel,<br></span></p>
<p style="margin:0px 40px 0px 61px;text-indent:0px"><br>---------- Forwarded message ----------<br>From: Brian West &lt;<a href="mailto:brian@freeswitch.org" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">brian@freeswitch.org</span></a>&gt;<br>
To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">freeswitch-users@lists.freeswitch.org</span></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></p>
<p style="margin:0px 40px 0px 61px;text-indent:0px">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. </p>

<p style="margin:0px 40px 0px 61px;text-indent:0px"><br><br></p>
<p style="margin:0px 40px 0px 61px;text-indent:0px">On Wed, Sep 3, 2014 at 7:18 AM, Snabel Kabiya &lt;<a href="mailto:snabel@lexifone.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">snabel@lexifone.com</span></a>&gt; wrote:<br>
</p>
<p style="margin:0px 40px 0px 68px;text-indent:0px">Hi,<br><br>I&#39;m using X-lite to test mod_sms in freeswitch.<br></p>
<p style="margin:0px;text-indent:0px">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></p>
<p style="margin:0px 40px 0px 68px;text-indent:0px">I&#39;ve but both files: 1111.xml, 4444.xml in /usr/local/freeswitch/conf/directory. restarted freeswitch after that.<br><br></p>
<p style="margin:0px 40px 0px 68px;text-indent:0px"><br></p>
<p style="margin:0px;text-indent:0px">i managed to register user 1111 using X-Lite, but when i tried to register user 4444, i got this error on freeswitch:<br></p>
<p style="margin:0px 40px 0px 68px;text-indent:0px"><br><span style="font-size:large;font-weight:600;background-color:rgb(255,255,0)">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.</span><br>
<br></p>
<p style="margin:0px 40px 0px 68px;text-indent:0px">is there some limitation in freeswitch? do i need to change some configuration file?<br><br><br></p>
<p style="margin:0px 40px 0px 68px;text-indent:0px">Thanks,<br></p>
<p style="margin:0px 40px 0px 68px;text-indent:0px">Snabel<br></p>
<p style="margin:0px 40px 0px 68px;text-indent:0px"><br><br>Hi,<br></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px"><br></p>
<p style="margin:0px;text-indent:0px">i&#39;m trying to use mod_sms.<br></p>
<p style="margin:0px;text-indent:0px"><br>i did the following steps<br></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">1 - used the instructions here to compile the module <br></p>
<p style="margin:0px;text-indent:0px"><a href="http://wiki.freeswitch.org/wiki/Mod_sms#Args" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">http://wiki.freeswitch.org/wiki/Mod_sms#Args</span></a><br>
<a href="https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_chat" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_chat</span></a><br><br>
created two users on both servers x.x.x.1, x.x.x.2 <br><br></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">&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></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">created this chatplan:<br><br></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">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></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">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>
</p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">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><span style="font-size:large;font-weight:600;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><br>
<br><br></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">what does it mean? what did i miss?<br><br></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">Thanks,<br></p>
<p style="margin:0px 40px 0px 82px;text-indent:0px">Snabel<br></p>
</div></blockquote></div></div></div></div></div></div></div></div>