[Freeswitch-users] You must define a domain called 'xx.com' in your directory

Gabriel Gunderson gabe at gundy.org
Sat Dec 29 12:50:56 MSK 2012


On Fri, Dec 28, 2012 at 4:29 PM, Steven Schoch
<schoch+freeswitch.org at 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-domain

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 at 192.168.0.1 (or whatever
local IP your server you have) and *not* 103 at 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



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list