All just playing with Multi-tenant config, and got all the dialplan and domain specific directory settings kinda all working.<div><br></div><div>All the phone register as <a href="mailto:extension@domain.com" target="_blank">extension@domain.com</a> and I've added SRV records for _sip._<a href="http://udp.domain.com" target="_blank">udp.domain.com</a> to my local DNS, and x-lite and SJ-phone correctly resolve this this to my server IP from DNS.</div>
<div><br></div><div>I can make calls using <a href="mailto:extension@domain.com" target="_blank">extension@domain.com</a> toward FS and the call correctly routes in the dialplan - when Sofia originates the new outbound leg using:</div>
<div>
<br></div><div><div><font face="'courier new', monospace"><include></font></div><div><font face="'courier new', monospace"> <context name="domain.comk"></font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace"> <extension name="unloop"></font></div>
<div><font face="'courier new', monospace"> <condition field="${unroll_loops}" expression="^true$"/></font></div><div><font face="'courier new', monospace"> <condition field="${sip_looped_call}" expression="^true$"></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">        </font></span><font face="'courier new', monospace"><action application="deflect" data="${destination_number}"/></font></div>
<div><font face="'courier new', monospace"> </condition></font></div><div><font face="'courier new', monospace"> </extension></font></div>
<div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace"> <extension name="domain_2000"></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">        </font></span><font face="'courier new', monospace"><condition field="destination_number" expression="^(2000)$"></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">                </font></span><font face="'courier new', monospace"><action application="set" data="domain_name=<a href="http://domain.com" target="_blank">domain.com</a>"/></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">                </font></span><font face="'courier new', monospace"><action application="set" data="domain=<a href="http://domain.com" target="_blank">domain.com</a>"/></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">                </font></span><font face="'courier new', monospace"><action application="bridge" data="sofia/domain/2000" /></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">        </font></span><font face="'courier new', monospace"></condition></font></div>
<div><font face="'courier new', monospace"> </extension></font></div><div><font face="'courier new', monospace"><br></font></div><div><font face="'courier new', monospace"> <extension name="vodafone_1000"></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">        </font></span><font face="'courier new', monospace"><condition field="destination_number" expression="^(1000)$"></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">                </font></span><font face="'courier new', monospace"><action application="set" data="domain_name=<a href="http://ims.vodafone.co.uk" target="_blank">ims.vodafone.co.uk</a>"/></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">                </font></span><font face="'courier new', monospace"><action application="set" data="domain=<a href="http://ims.vodafone.co.uk" target="_blank">ims.vodafone.co.uk</a>"/></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">                </font></span><font face="'courier new', monospace"><action application="bridge" data="sofia/<a href="http://ims.vodafone.co.uk/1000" target="_blank">ims.vodafone.co.uk/1000</a>" /></font></div>
<div><span style="white-space: pre-wrap;"><font face="'courier new', monospace">        </font></span><font face="'courier new', monospace"></condition></font></div>
<div><font face="'courier new', monospace"> </extension></font></div><div><br></div>FS still puts its IP as the domain portion of the From and To fields in the INVITE:<br>From: "+441635698866" <<a href="mailto:sip%3A%2B441635698866@192.168.0.56">sip:+441635698866@192.168.0.56</a>>;tag=cg7H7SvjvrSmp<br>
<br>Neill....;o)<br><br><a href="http://aeonvista.blogspot.com" target="_blank">Aeonvista Ltd</a><br>
<i style="color: rgb(51, 102, 255);">Opening Up New Ideas</i><br>
</div>