[Freeswitch-users] Configure FS to reply with domain instead of with IP to: user at domain instead of to: user at ip:port

Tzury Bar Yochay tzury.by at reguluslabs.com
Wed Dec 30 22:59:30 PST 2009

Hi all,

I would like to know what should be done in order to have FreeSWITCH
reply with domains instead of IP-Addresses.
In my server, DNS NAPTR & SRV Records are all set and working fine.
Clients are connected using our pjsip port for windows mobile where

When we connect to a public SIP service (e.g. iptel.org) we get the
domain when performing INVITE request.
We want to gain this behavior in FS as well so it will reply similarly.

I am referring to the "TO" part in the message e.g. To:
sip:user at domain instead of To: <sip:user at client-ip:client-port>

see below our client log in both cases (iptel and FS)

thanks in advance for your help,

## IPTel incoming invite recording

DEBUG: 01:26:01.088 pjsua_core.c RX 1746 bytes Request msg
INVITE/cseq=7942 (rdata0046B234) from UDP

INVITE sip:tal2 at;transport=UDP SIP/2.0

Record-Route: <sip:;r2=on;ftag=ff25112de1c843a58df49f57c54a29a2;avp=FS8DBwBhY2NvdW50AwB5ZXMDBgBzdGltZXIEADE4MDADCQBkaWFsb2dfaWQWADFlMTQtNGE3ODAzY2EtMTVjY2MwMTY;lr=on>

Record-Route: <sip:;transport=tcp;r2=on;ftag=ff25112de1c843a58df49f57c54a29a2;avp=FS8DBwBhY2NvdW50AwB5ZXMDBgBzdGltZXIEADE4MDADCQBkaWFsb2dfaWQWADFlMTQtNGE3ODAzY2EtMTVjY2MwMTY;lr=on>

Via: SIP/2.0/UDP;branch=z9hG4bKd3a7.502cfbb.0;i=12c8

Via: SIP/2.0/tcp;received=;rport=3600;branch=z9hG4bKPj868b3031276d4f0d9f2338b854b63191

Max-Forwards: 16

From: sip:Tal3 at iptel.org;tag=ff25112de1c843a58df49f57c54a29a2

To: sip:tal2 at iptel.org

Contact: <sip:Tal3 at;transport=tcp>

### Freeswitch incoming invite recording

DEBUG: 01:28:39.163 pjsua_core.c RX 1257 bytes Request msg
INVITE/cseq=119747894 (rdata004B8384) from UDP

INVITE sip:1002 at SIP/2.0

Via: SIP/2.0/UDP;rport;branch=z9hG4bKyme7e23ggp2QB

Max-Forwards: 69

From: "Extension 1000" <sip:1000 at>;tag=6F8v2e9NNgZ6a

To: <sip:1002 at>

Call-ID: a9e42c07-10e5-122d-de9e-40402384297d

CSeq: 119747894 INVITE

Contact: <sip:mod_sofia at>

More information about the FreeSWITCH-users mailing list