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