All just playing with Multi-tenant config, and got all the dialplan and domain specific directory settings kinda all working.
All the phone register as
extension@domain.com and I've added SRV records for _sip._
udp.domain.com to my local DNS, and x-lite and SJ-phone correctly resolve this this to my server IP from DNS.
<include>
<context name="domain.comk">
<extension name="unloop">
<condition field="${unroll_loops}" expression="^true$"/>
<condition field="${sip_looped_call}" expression="^true$">
<action application="deflect" data="${destination_number}"/>
</condition>
</extension>
<extension name="domain_2000">
<condition field="destination_number" expression="^(2000)$">
<action application="set" data="domain_name=domain.com"/>
<action application="set" data="domain=domain.com"/>
<action application="bridge" data="sofia/domain/2000" />
</condition>
</extension>
<extension name="vodafone_1000">
<condition field="destination_number" expression="^(1000)$">
</condition>
</extension>
FS still puts its IP as the domain portion of the From and To fields in the INVITE:
From: "+441635698866" <
sip:+441635698866@192.168.0.56>;tag=cg7H7SvjvrSmp
Neill....;o)
Aeonvista Ltd
Opening Up New Ideas