[Freeswitch-users] Can't register more than one user to freeswitch
Snabel Kabiya
snabel at lexifone.com
Thu Sep 4 12:16:45 MSD 2014
Hi,
looking at freeswitch.xml.fsxml log i saw that the domain is loaded twice
from default.xml file and from my users.xml file.
i changed the default.xml file to default.xml_ and now i can register all
users.
now i need to figure out a better way for users to register to freeswitch
...
Thanks for your help guys :)
Snabel,
> ---------- Forwarded message ----------
> From: Iskren Hadzhinedev <iskren.hadzhinedev at ikiji.com>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Date: Thu, 04 Sep 2014 10:48:05 +0300
> Subject: Re: [Freeswitch-users] Can't register more than one user to
> freeswitch
>
> Hi Snabel,
>
> 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 ?
>
> 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:
>
> ....
>
> <section name=”directory” description=”User Directory”>
>
> <!--the domain or ip (the right hand side of the @ in the addr-->
>
> <domain name="x.x.x.1">
>
> <groups>
>
> <group name="Lexifone">
>
> <users>
>
> <user id="1111">
>
> <params>
>
> <param name="password" value="1111"/>
>
> </params>
>
> </user>
>
> <user id="2222">
>
> <params>
>
> <param name="password" value="2222"/>
>
> </params>
>
> </user>
>
> <user id="3333">
>
> <params>
>
> <param name="password" value="3333"/>
>
> </params>
>
> </user>
>
> <user id="4444">
>
> <params>
>
> <param name="password" value="4444"/>
>
> </params>
>
> </user>
>
> </users>
>
> </group>
>
> </groups>
>
> </domain>
>
> </section>
>
> ....
>
> 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 <domain name="all" alias="true"
> parse=”false”/> in your freeswitch/conf/sip_profiles/internal.xml (if
> it’s not there already) and issue “reload mod_sofia” or “sofia profile
> internal rescan”.
>
> Hope this helps.
>
>
>
> Kind regards,
>
> --
>
> Iskren Hadzhinedev
>
>
> On Thursday 04 September 2014 10:28:46 Snabel Kabiya wrote:
>
> OK, I've created one XML file called it users.xml, deleted the previous
> ones and restarted freeswitch
>
> now i get the same error for all users...
>
>
> <include>
> <!--the domain or ip (the right hand side of the @ in the addr-->
> <domain name="x.x.x.1">
> <groups>
> <group name="Lexifone">
> <users>
> <user id="1111">
> <params>
> <param name="password" value="1111"/>
> </params>
> </user>
> <user id="2222">
> <params>
> <param name="password" value="2222"/>
> </params>
> </user>
> <user id="3333">
> <params>
> <param name="password" value="3333"/>
> </params>
> </user>
> <user id="4444">
> <params>
> <param name="password" value="4444"/>
> </params>
> </user>
> </users>
> </group>
> </groups>
> </domain>
> </include>
>
>
>
> ---------- Forwarded message ----------
> From: Lucas Castro <lucasmcastro at gmail.com>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Date: Wed, 3 Sep 2014 10:17:47 -0300
> Subject: Re: [Freeswitch-users] Can't register more than one user to
> freeswitch
>
> you need once to define the domain <domain name="x.x.x.1"> and the 2
> users must be within it.
>
> i guess its not working now 'cause you removed both domain tags.
>
>
>
> On Wed, Sep 3, 2014 at 9:54 AM, Snabel Kabiya <snabel at lexifone.com> wrote:
>
> Hi,
>
> now i can't register both of them and i get the error for both users.
>
> <include>
>
>
> <user id="4444">
> <params>
> <param name="password" value="4444"/>
> </params>
> </user>
>
> </include>
>
> <include>
>
>
> <user id="1111">
> <params>
> <param name="password" value="1111"/>
> </params>
> </user>
>
> </include>
>
> Snabel,
>
>
> ---------- Forwarded message ----------
> From: Brian West <brian at freeswitch.org>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Date: Wed, 3 Sep 2014 07:36:13 -0500
> Subject: Re: [Freeswitch-users] Can't register more than one user to
> freeswitch
>
> 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.
>
>
>
> On Wed, Sep 3, 2014 at 7:18 AM, Snabel Kabiya <snabel at lexifone.com> wrote:
>
> Hi,
>
> I'm using X-lite to test mod_sms in freeswitch.
>
> I've created two users on server x.x.x.1
>
> <include>
> <domain name="x.x.x.1">
> <user id="1111">
> <params>
> <param name="password" value="1111"/>
> </params>
> </user>
> </domain>
> </include>
>
> <include>
> <domain name="x.x.x.1">
> <user id="4444">
> <params>
> <param name="password" value="4444"/>
> </params>
> </user>
> </domain>
> </include>
>
> I've but both files: 1111.xml, 4444.xml in
> /usr/local/freeswitch/conf/directory. restarted freeswitch after that.
>
>
> i managed to register user 1111 using X-Lite, but when i tried to register
> user 4444, i got this error on freeswitch:
>
>
> 2014-09-03 15:05:57.177795 [WARNING] sofia_reg.c:2566 Can't find user
> [4444 at x.x.x.1] from x.x.x.x
> You must define a domain called 'x.x.x.1' in your directory and add a user
> with the id="4444" attribute
> and you must configure your device to use the proper domain in it's
> authentication credentials.
>
> is there some limitation in freeswitch? do i need to change some
> configuration file?
>
>
> Thanks,
>
> Snabel
>
>
>
> Hi,
>
>
> i'm trying to use mod_sms.
>
>
> i did the following steps
>
> 1 - used the instructions here to compile the module
>
> http://wiki.freeswitch.org/wiki/Mod_sms#Args
> https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_chat
>
> created two users on both servers x.x.x.1, x.x.x.2
>
> <domain name="x.x.x.1">
> <user id="2222">
> <params>
> <param name="password" value="2222"/>
> </params>
> </user>
> </domain>
>
> <domain name="x.x.x.1">
> <user id="1111">
> <params>
> <param name="password" value="1111"/>
> </params>
> </user>
> </domain>
>
> created this chatplan:
>
> public.xml:
> <?xml version="1.0" encoding="utf-8"?>
> <include>
> <context name="public">
> <extension name="public">
> <condition field="to" expression="^(.*)$">
> <action application="log" data="INFO to_chat remote"/>
> <action application="reply" data="Hello, you said:
> ${_body}"/>
> </condition>
> </extension>
> </context>
> </include>
>
>
> but now when i send this from server x.x.x.2
> freeswitch at internal> chat sip|2222 at x.x.x.2|external/sip:1111 at x.x.x.1|hi
> from freeswitch snabel is here
> Sent
>
> i get the following on server x.x.x.1
> 2014-09-03 11:18:18.780102 [INFO] mod_sms.c:336 Processing text message
> 2222->1111 in context public
> Chatplan: 1111 parsing [public->public] continue=false
> Chatplan: 1111 at x.x.x.1 Regex (PASS) [public] to(1111 at x.x.x.1) =~ /^(.*)$/
> break=on-false
> Chatplan: 1111 at x.x.x.1 Action log(INFO to_chat remote)
> Chatplan: 1111 at x.x.x.1 Action reply(Hello, you said: ${_body})
> 2014-09-03 11:18:18.780102 [ERR] switch_loadable_module.c:769 Invalid chat
> application interface [log]!
>
>
> what does it mean? what did i miss?
>
> Thanks,
>
> Snabel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140904/9b6f9b10/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list