<div dir="ltr">Matt,<div><br>Can you confirm if the fix posted by Stanislav was able to resolve your problem? It would be good to get a concrete answer on this so this thread can help others in future.</div><div><br></div>
<div>Thanks</div><div><br>Cal</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 27, 2013 at 2:04 AM, Stanislav Sinyagin <span dir="ltr"><<a href="mailto:ssinyagin@yahoo.com" target="_blank">ssinyagin@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif">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 <a href="http://pbx01.company.com" target="_blank">pbx01.company.com</a>, 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"><div class="im"> <b><span style="font-weight:bold">From:</span></b> Matt <<a href="mailto:code.name.eric@gmail.com" target="_blank">code.name.eric@gmail.com</a>><br> <b><span style="font-weight:bold">To:</span></b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>> <br>
</div><b><span style="font-weight:bold">Sent:</span></b> Thursday, September 26, 2013 6:43 PM<div class="im"><br> <b><span style="font-weight:bold">Subject:</span></b> Re: [Freeswitch-users] Caller Domain Variable?<br> </div>
</font> </div><div><div class="h5"> <div><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 href="mailto:code.name.eric@gmail.com" target="_blank">code.name.eric@gmail.com</a><br>
> <mailto:<a href="mailto:code.name.eric@gmail.com" target="_blank">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 href="mailto:1010@192.168.20.3" target="_blank">1010@192.168.20.3</a><br>
> <mailto:<a href="mailto:1010@192.168.20.3" target="_blank">1010@192.168.20.3</a>> instead of<br>> <a href="mailto:1010@192.168.21.3" target="_blank">1010@192.168.21.3</a> <mailto:<a href="mailto:1010@192.168.21.3" target="_blank">1010@192.168.21.3</a>> (or <a href="mailto:1010@foo-21" target="_blank">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 href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> <mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">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 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>> <mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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 href="mailto:consulting@freeswitch.org" target="_blank">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 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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 href="mailto:consulting@freeswitch.org" target="_blank">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 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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> </div> </div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a 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 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></blockquote></div><br></div>