<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt">In default configuration, in vars.xml, there's<br><br> <X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/><br> <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/><br><br>I guess that's what causes what you see.<br><br>As far as I understand, you don't really need multi-tenancy, you just need FreeSWITCH to work properly with multiple host IP addresses. In this case, you can create a normal domain name in your local DNS service, like pbx01.company.com, and create the corresponding SRV record. Then you change the global domain setting in vars.xml, and that's it -- all your clients would belong to the same SIP domain name.<br><br><br><br><br><div><span><br></span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york,
times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Matt <code.name.eric@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, September 26, 2013 6:43 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] Caller Domain Variable?<br> </font> </div> <div class="y_msg_container"><br>You are correct. I am using:<br><br> <param name="force-subscription-domain" value="foo-21"/><br> <param name="force-register-domain" value="foo-21"/><br> <param name="force-register-db-domain" value="foo-21"/><br><br>I should have noted in my previous email that, even with forcing those<br>params, $domain_name still evals to address of the
physical interface of<br>the machine - 192.168.20.3.<br><br>I am likely missing something obvious. My workaround is functional, but<br>I would prefer to do things right.<br><br>Matt<br><br><br> <br><br>On 9/26/13 11:05 AM, Cal Leeming [Simplicity Media Ltd] wrote:<br>> The thing that concerns me is that you are forcing the domain in the<br>> profile, but then that domain is not appearing in $domain or<br>> $domain_name, which indicates you are not setting it properly. Unless<br>> I have misunderstood?<br>><br>> Let us know how you get on!<br>><br>> Cal<br>><br>><br>> On Thu, Sep 26, 2013 at 4:49 PM, Matt <<a ymailto="mailto:code.name.eric@gmail.com" href="mailto:code.name.eric@gmail.com">code.name.eric@gmail.com</a><br>> <mailto:<a ymailto="mailto:code.name.eric@gmail.com" href="mailto:code.name.eric@gmail.com">code.name.eric@gmail.com</a>>> wrote:<br>><br>> Oh, I have reviewed the
Multiple Companies and Multi-tenant docs<br>> several<br>> times - and will do so again.<br>><br>> If I do not force the domains in the sip profile to the desired<br>> domains,<br>> ${domain_name} equates to 192.168.20.3 (the address of the<br>> interface in<br>> the server).<br>><br>> This obviously causes an issue when a phone is on a different<br>> subnet and<br>> voicemail is getting passed <a ymailto="mailto:1010@192.168.20.3" href="mailto:1010@192.168.20.3">1010@192.168.20.3</a><br>> <mailto:<a ymailto="mailto:1010@192.168.20.3" href="mailto:1010@192.168.20.3">1010@192.168.20.3</a>> instead of<br>> <a ymailto="mailto:1010@192.168.21.3" href="mailto:1010@192.168.21.3">1010@192.168.21.3</a> <mailto:<a
ymailto="mailto:1010@192.168.21.3" href="mailto:1010@192.168.21.3">1010@192.168.21.3</a>> (or <a ymailto="mailto:1010@foo-21" href="mailto:1010@foo-21">1010@foo-21</a>).<br>><br>> This is likely unrelated: The production machines have multiple<br>> network<br>> interfaces. However, for testing I am using a virtual machine with an<br>> actual address of 192.168.20.3 and an alias of 192.168.21.3. It is an<br>> assumption on my part that interface aliases are not an issue.<br>><br>> I will probably take a break from this particular issue today so as to<br>> get FreeTDM up and running on a future production machine with a<br>> Digium<br>> card.<br>><br>><br>> Matt<br>><br>> On 9/26/13 10:12 AM, Cal Leeming [Simplicity Media Ltd] wrote:<br>>
> It sounds like your approach to multi tenancy has not been correctly<br>> > implemented.<br>> ><br>> > From what I can tell, you are forcing the domain on the two<br>> profiles,<br>> > perhaps review these docs and ensure this has been done correctly;<br>> ><br>> <a href="http://wiki.freeswitch.org/wiki/Multiple_Companies#Enabling_Multiple_Domains" target="_blank">http://wiki.freeswitch.org/wiki/Multiple_Companies#Enabling_Multiple_Domains</a><br>> ><br>> > If ${domain}/${domain_name} do not contain the correct values at the<br>> > correct point in time, then something isn't right with your multi<br>> > tenancy config.<br>> ><br>> > I know this has already been said but, you really need to have
a<br>> read<br>> > over the multi-tenancy docs and compare what's different in your<br>> > config, it could just be a one minute fix, or it could take you<br>> a few<br>> > days to figure out. That's all part of the fun :)<br>> ><br>> > Cal<br>> ><br>> ><br>><br>><br>> _________________________________________________________________________<br>> Professional FreeSWITCH Consulting Services:<br>> <a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> <mailto:<a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>><br>> <a href="http://www.freeswitchsolutions.com/"
target="_blank">http://www.freeswitchsolutions.com</a><br>><br>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>><br>> Official FreeSWITCH Sites<br>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>> <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>> <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>><br>> FreeSWITCH-users mailing list<br>> <a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>> <mailto:<a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>><br>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>><br>><br>><br>><br>> _________________________________________________________________________<br>> Professional FreeSWITCH Consulting Services:<br>> <a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>> <a href="http://www.freeswitchsolutions.com/"
target="_blank">http://www.freeswitchsolutions.com</a><br>><br>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>> <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>><br>> Official FreeSWITCH Sites<br>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>> <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>> <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>><br>> FreeSWITCH-users mailing list<br>> <a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>> UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>> <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br><a
href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br><br><br></div> </div> </div> </div></body></html>