You must define a domain called 'xx.com' in your directory
I must be getting closer to getting this to work, because now I get this message: 2012-12-28 15:18:23.596375 [WARNING] sofia_reg.c:2485 Can't find user [ 103@xx.com] You must define a domain called 'xx.com' in your directory and add a user with the id="103" attribute and you must configure your device to use the proper domain in it's authentication credentials. I have a file named conf/directory/xx.com.xml. It's a copy of conf/directory/default.xml, except the include line specifies "xx.com/*.xml" instead of "default/*.xml". I have the conf/directory/xx.com/103.xml file. sofia status says: Name Type Data State ================================================================================================= xx.com alias internal ALIASED internal profile sip:mod_sofia@192.168.4.1:5060 RUNNING (0) internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0) external profile sip:mod_sofia@192.168.4.1:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::flowroute gateway sip:xxxxxxxxxx@sip.flowroute.com REGED ================================================================================================= 3 profiles 1 alias I checked the file log/freeswitch.xml.fsxml, and it has the lines from the "103.xml" file, which has the password defined. I can't figure out what to do next. Help? -- Steve
<domain name="xx.com"> </domain> F6 2012/12/29 Steven Schoch <schoch+freeswitch.org@xwin32.com>
I must be getting closer to getting this to work, because now I get this message:
2012-12-28 15:18:23.596375 [WARNING] sofia_reg.c:2485 Can't find user [ 103@xx.com] You must define a domain called 'xx.com' in your directory and add a user with the id="103" attribute and you must configure your device to use the proper domain in it's authentication credentials.
I have a file named conf/directory/xx.com.xml. It's a copy of conf/directory/default.xml, except the include line specifies " xx.com/*.xml" instead of "default/*.xml". I have the conf/directory/ xx.com/103.xml file.
sofia status says:
Name Type Data State
================================================================================================= xx.com alias internal ALIASED internal profile sip:mod_sofia@192.168.4.1:5060 RUNNING (0) internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0) external profile sip:mod_sofia@192.168.4.1:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::flowroute gateway sip:xxxxxxxxxx@sip.flowroute.com REGED
================================================================================================= 3 profiles 1 alias
I checked the file log/freeswitch.xml.fsxml, and it has the lines from the "103.xml" file, which has the password defined.
I can't figure out what to do next. Help?
-- Steve
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Fri, Dec 28, 2012 at 9:28 PM, Anton Kvashenkin <anton.jugatsu@gmail.com>wrote:
<domain name="xx.com"> </domain>
That's getting me closer! I have already changed the domain in vars.xml to include this line: <X-PRE-PROCESS cmd="set" data="domain=xx.com"/> This has caused '<domain name="xx.com">' to be expanded in both directory/default.xml and directory/xx.com.xml. I'm thinking the best way to avoid confusion is to either remove directory/default.xml, or remove directory/xx.com.xml, and use the default file, with the expanded domain name. On Sat, Dec 29, 2012 at 1:50 AM, Gabriel Gunderson <gabe@gundy.org> wrote:
Play around with find_user_xml and user_exists to trouble shoot your directory independent of any specific SUA:
I have this user: freeswitch@internal> list_users user 103 userid|context|domain|group|contact|callgroup|effective_caller_id_name|effective_caller_id_number 103|default|xx.com|xx.com|error/user_not_registered|techsupport|Extension 103|103 But I still get this: 2013-01-02 10:21:33.913853 [WARNING] sofia_reg.c:2485 Can't find user [ 103@xx.com] You must define a domain called 'xx.com' in your directory and add a user with the id="103" attribute and you must configure your device to use the proper domain in it's authentication credentials. and... freeswitch@internal> user_exists id 103 xx.com false -- Steve
On Fri, Dec 28, 2012 at 4:29 PM, Steven Schoch <schoch+freeswitch.org@xwin32.com> wrote:
I have a file named conf/directory/xx.com.xml. It's a copy of conf/directory/default.xml, except the include line specifies "xx.com/*.xml" instead of "default/*.xml". I have the conf/directory/xx.com/103.xml file.
Play around with find_user_xml and user_exists to trouble shoot your directory independent of any specific SUA: http://wiki.freeswitch.org/wiki/Mod_commands#find_user_xml http://wiki.freeswitch.org/wiki/Mod_commands#user_exists Once you're satisfied that your directory is setup properly, move on to the sofia part of the puzzle. I'm going from memory here but I think you'll find that the default configs (internal.xml) set this paramater: http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#force-register-dom... to $${domain}. And $${domain} is set in vars.xml to $${local_ip_v4}. That is magically set to some non-routable IPv4 address on your server. So, that means that when you register your phone (with any domain), FreeSWITCH ends up looking for 103@192.168.0.1 (or whatever local IP your server you have) and *not* 103@xx.com. The reason they do that is to make it easier to get FreeSWITCH working out of the box for a first time user. More advance users will figure out what's going on and be able to move on from that simple setup to something that's domain based. Now, it's late and I didn't read your question very closely, so take this all with a grain of salt ;) Good luck and good night! Best, Gabe
participants (3)
-
Anton Kvashenkin
-
Gabriel Gunderson
-
Steven Schoch