<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 <<a href="mailto:iskren.hadzhinedev@ikiji.com">iskren.hadzhinedev@ikiji.com</a>><br>
To: FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>Cc: <br>Date: Thu, 04 Sep 2014 10:48:05 +0300<br>Subject: Re: [Freeswitch-users] Can't register more than one user to freeswitch<br>
<u></u>
<div style="font-family:"Open Sans";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:"cousine""><section name=”directory” description=”User Directory”></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <!--the domain or ip (the right hand side of the @ in the addr--></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <domain name="x.x.x.1"></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <groups></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <group name="Lexifone"></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <users></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <user id="1111"></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <params></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <param name="password" value="1111"/></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </params></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </user></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <user id="2222"></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <params></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <param name="password" value="2222"/></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </params></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </user></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <user id="3333"></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <params></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <param name="password" value="3333"/></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </params></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </user></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <user id="4444"></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <params></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> <param name="password" value="4444"/></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </params></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </user></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </users></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </group></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </groups></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""> </domain></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:"cousine""></section></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:"cousine""><domain name="all" alias="true" parse=”false”/></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'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><include><br> <!--the domain or ip (the right hand side of the @ in the addr--><br> <domain name="x.x.x.1"><br> <groups><br> <group name="Lexifone"><br>
<users><br> <user id="1111"><br> <params><br> <param name="password" value="1111"/><br>
</params><br> </user><br> <user id="2222"><br> <params><br> <param name="password" value="2222"/><br>
</params><br> </user><br> <user id="3333"><br> <params><br> <param name="password" value="3333"/><br>
</params><br> </user><br> <user id="4444"><br> <params><br> <param name="password" value="4444"/><br>
</params><br> </user><br> </users><br> </group><br> </groups><br> </domain><br></include><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 <<a href="mailto:lucasmcastro@gmail.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">lucasmcastro@gmail.com</span></a>><br>
To: FreeSWITCH Users Help <<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>><br>Cc: <br>
Date: Wed, 3 Sep 2014 10:17:47 -0300<br>Subject: Re: [Freeswitch-users] Can'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:"arial,sans-serif";font-size:13px"><domain name="x.x.x.1"> and the 2 users must be within it.</span></p>
<p style="margin:0px 40px 0px 47px;text-indent:0px"><span style="font-family:"arial,sans-serif";font-size:13px">i guess its not working now '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 <<a href="mailto:snabel@lexifone.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">snabel@lexifone.com</span></a>> wrote:<br>
</p>
<p style="margin:0px 40px 0px 54px;text-indent:0px">Hi,<br><br>now i can't register both of them and i get the error for both users. <br><br><include></p>
<p style="margin:0px 40px 0px 54px;text-indent:0px"><br> <user id="4444"><br> <params><br> <param name="password" value="4444"/><br> </params><br> </user> <br>
</p>
<p style="margin:0px;text-indent:0px"></include><br><br></p>
<p style="margin:0px 40px 0px 54px;text-indent:0px"><include></p>
<p style="margin:0px 40px 0px 54px;text-indent:0px"><br> <user id="1111"><br> <params><br> <param name="password" value="1111"/><br> </params><br> </user> <br>
</p>
<p style="margin:0px;text-indent:0px"></include><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 <<a href="mailto:brian@freeswitch.org" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">brian@freeswitch.org</span></a>><br>
To: FreeSWITCH Users Help <<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>><br>Cc: <br>
Date: Wed, 3 Sep 2014 07:36:13 -0500<br>Subject: Re: [Freeswitch-users] Can'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'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 <<a href="mailto:snabel@lexifone.com" target="_blank"><span style="text-decoration:underline;color:rgb(0,87,174)">snabel@lexifone.com</span></a>> wrote:<br>
</p>
<p style="margin:0px 40px 0px 68px;text-indent:0px">Hi,<br><br>I'm using X-lite to test mod_sms in freeswitch.<br></p>
<p style="margin:0px;text-indent:0px">I've created two users on server x.x.x.1<br><br><include><br><domain name="x.x.x.1"><br> <user id="1111"><br> <params><br> <param name="password" value="1111"/><br>
</params><br> </user><br></domain> <br></include><br><br><include><br><domain name="x.x.x.1"><br> <user id="4444"><br> <params><br> <param name="password" value="4444"/><br>
</params><br> </user><br></domain> <br></include><br><br></p>
<p style="margin:0px 40px 0px 68px;text-indent:0px">I'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't find user [4444@x.x.x.1] from x.x.x.x<br>
You must define a domain called 'x.x.x.1' in your directory and add a user with the id="4444" attribute<br>and you must configure your device to use the proper domain in it'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'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"><domain name="x.x.x.1"><br> <user id="2222"><br> <params><br> <param name="password" value="2222"/><br>
</params><br> </user><br></domain> <br><br><domain name="x.x.x.1"><br> <user id="1111"><br> <params><br> <param name="password" value="1111"/><br>
</params><br> </user><br></domain> <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><?xml version="1.0" encoding="utf-8"?><br><include><br> <context name="public"><br> <extension name="public"><br>
<condition field="to" expression="^(.*)$"><br> <action application="log" data="INFO to_chat remote"/><br> <action application="reply" data="Hello, you said: ${_body}"/><br>
</condition><br> </extension><br> </context><br></include><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> 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->1111 in context public<br>Chatplan: 1111 parsing [public->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>