<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">&lt;<a href="mailto:ssinyagin@yahoo.com" target="_blank">ssinyagin@yahoo.com</a>&gt;</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&#39;s<br>
<br>  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;domain=$${local_ip_v4}&quot;/&gt;<br>  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;<br><br>I guess that&#39;s what causes what you see.<br>
<br>As far as I understand, you don&#39;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&#39;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 &lt;<a href="mailto:code.name.eric@gmail.com" target="_blank">code.name.eric@gmail.com</a>&gt;<br> <b><span style="font-weight:bold">To:</span></b> FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt; <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>    &lt;param name=&quot;force-subscription-domain&quot; value=&quot;foo-21&quot;/&gt;<br>    &lt;param name=&quot;force-register-domain&quot; value=&quot;foo-21&quot;/&gt;<br>
    &lt;param name=&quot;force-register-db-domain&quot; value=&quot;foo-21&quot;/&gt;<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>
&gt; The thing that concerns me is that you are forcing the domain in the<br>&gt; profile, but then that domain is not appearing in $domain or<br>&gt; $domain_name, which indicates you are not setting it properly. Unless<br>
&gt; I have misunderstood?<br>&gt;<br>&gt; Let us know how you get on!<br>&gt;<br>&gt; Cal<br>&gt;<br>&gt;<br>&gt; On Thu, Sep 26, 2013 at 4:49 PM, Matt &lt;<a href="mailto:code.name.eric@gmail.com" target="_blank">code.name.eric@gmail.com</a><br>
&gt; &lt;mailto:<a href="mailto:code.name.eric@gmail.com" target="_blank">code.name.eric@gmail.com</a>&gt;&gt; wrote:<br>&gt;<br>&gt;     Oh, I have reviewed the
 Multiple Companies and Multi-tenant docs<br>&gt;     several<br>&gt;     times - and will do so again.<br>&gt;<br>&gt;     If I do not force the domains in the sip profile to the desired<br>&gt;     domains,<br>&gt;     ${domain_name} equates to 192.168.20.3 (the address of the<br>
&gt;     interface in<br>&gt;     the server).<br>&gt;<br>&gt;     This obviously causes an issue when a phone is on a different<br>&gt;     subnet and<br>&gt;     voicemail is getting passed <a href="mailto:1010@192.168.20.3" target="_blank">1010@192.168.20.3</a><br>
&gt;     &lt;mailto:<a href="mailto:1010@192.168.20.3" target="_blank">1010@192.168.20.3</a>&gt; instead of<br>&gt;     <a href="mailto:1010@192.168.21.3" target="_blank">1010@192.168.21.3</a> &lt;mailto:<a href="mailto:1010@192.168.21.3" target="_blank">1010@192.168.21.3</a>&gt; (or <a href="mailto:1010@foo-21" target="_blank">1010@foo-21</a>).<br>
&gt;<br>&gt;     This is likely unrelated: The production machines have multiple<br>&gt;     network<br>&gt;     interfaces. However, for testing I am using a virtual machine with an<br>&gt;     actual address of 192.168.20.3 and an alias of 192.168.21.3. It is an<br>
&gt;     assumption on my part that interface aliases are not an issue.<br>&gt;<br>&gt;     I will probably take a break from this particular issue today so as to<br>&gt;     get FreeTDM up and running on a future production machine with a<br>
&gt;     Digium<br>&gt;     card.<br>&gt;<br>&gt;<br>&gt;     Matt<br>&gt;<br>&gt;     On 9/26/13 10:12 AM, Cal Leeming [Simplicity Media Ltd] wrote:<br>&gt;   
  &gt; It sounds like your approach to multi tenancy has not been correctly<br>&gt;     &gt; implemented.<br>&gt;     &gt;<br>&gt;     &gt; From what I can tell, you are forcing the domain on the two<br>&gt;     profiles,<br>
&gt;     &gt; perhaps review these docs and ensure this has been done correctly;<br>&gt;     &gt;<br>&gt;     <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>
&gt;     &gt;<br>&gt;     &gt; If ${domain}/${domain_name} do not contain the correct values at the<br>&gt;     &gt; correct point in time, then something isn&#39;t right with your multi<br>&gt;     &gt; tenancy config.<br>
&gt;     &gt;<br>&gt;     &gt; I know this has already been said but, you really need to have
 a<br>&gt;     read<br>&gt;     &gt; over the multi-tenancy docs and compare what&#39;s different in your<br>&gt;     &gt; config, it could just be a one minute fix, or it could take you<br>&gt;     a few<br>&gt;     &gt; days to figure out. That&#39;s all part of the fun :)<br>
&gt;     &gt;<br>&gt;     &gt; Cal<br>&gt;     &gt;<br>&gt;     &gt;<br>&gt;<br>&gt;<br>&gt;     _________________________________________________________________________<br>&gt;     Professional FreeSWITCH Consulting Services:<br>
&gt;     <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>&gt;<br>&gt;     <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>&gt;     FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>&gt;     <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>&gt;<br>&gt;     Official FreeSWITCH Sites<br>&gt;     <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>
&gt;     <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>&gt;     <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>&gt;<br>&gt;     FreeSWITCH-users mailing list<br>
&gt;     <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt;     &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
&gt;     <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;     <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _________________________________________________________________________<br>&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>&gt; <a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br>&gt;<br>&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br>&gt;<br>&gt; Official FreeSWITCH Sites<br>&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>&gt; <a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br>&gt;<br>&gt; FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <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>