[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
transport=tls.

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,
Tzury


## IPTel incoming invite recording

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

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

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

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

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

Via: SIP/2.0/tcp
10.0.0.103:3600;received=80.74.97.189;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 80.74.97.189:3600;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 67.23.5.142:5060:

INVITE sip:1002 at 95.35.115.158:5060 SIP/2.0

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

Max-Forwards: 69

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

To: <sip:1002 at 95.35.115.158:5060>

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

CSeq: 119747894 INVITE

Contact: <sip:mod_sofia at 67.23.5.142:5060>




More information about the FreeSWITCH-users mailing list