[Freeswitch-users] How do I change the from: to: domain from the IP address of freeswitch?

Neill Wilkinson neillw at aeonvista.com
Mon Sep 27 10:27:44 PDT 2010


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 at 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.

I can make calls using extension at domain.com toward FS and the call correctly
routes in the dialplan - when Sofia originates the new outbound leg using:

<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)$">
 <action application="set" data="domain_name=ims.vodafone.co.uk"/>
 <action application="set" data="domain=ims.vodafone.co.uk"/>
 <action application="bridge" data="sofia/ims.vodafone.co.uk/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 at 192.168.0.56<sip%3A%2B441635698866 at 192.168.0.56>
>;tag=cg7H7SvjvrSmp

Neill....;o)

Aeonvista Ltd <http://aeonvista.blogspot.com>
*Opening Up New Ideas*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100927/ab3ce312/attachment-0001.html 


More information about the FreeSWITCH-users mailing list