[Freeswitch-users] Registration to FreeSWITCH through multiple proxy problem
simpot at simpot.com
Sun Jul 17 12:55:46 MSD 2016
I have a scenario, where I need to register to freeswitch through 2 or more stateless forwarding kamailio proxies.
<User> => <Proxy1> => <Proxy2> => <FreeSWITCH>
Registration packet which comes to freeswitch have 3 VIA Headers (please see below):
REGISTER sip:188.8.131.52 SIP/2.0
Via: SIP/2.0/TCP 184.108.40.206:5060;branch=z9hG4bKea26.3936c0f1c658d2da02a7c46a86186077.0;i=1;rport
Via: SIP/2.0/TCP 220.127.116.11:5060;received=18.104.22.168;branch=z9hG4bKea26.98aaf5f1397dccdf6f103ae4150d3ce0.0;i=14;rport=36525
Via: SIP/2.0/TCP 22.214.171.124:63675;branch=z9hG4bK-524287-1---e991c17828928028
Contact: <sip:219 at 126.96.36.199:63675;rinstance=e6186ad594e06aa9;transport=tcp>
To: "219"<sip:219 at 188.8.131.52>
From: "219"<sip:219 at 184.108.40.206>;tag=8c8fc855
CSeq: 1 REGISTER
Allow: INVITE, ACK, CANCEL, BYE, REFER, INFO, NOTIFY, OPTIONS, UPDATE, PRACK, MESSAGE, SUBSCRIBE
User-Agent: Bria iOS release 3.6.5 stamp 34728
User register to freeswitch successfully, however back calling to end-user is impossible bcz it is not going to reach end-phone using VIA haeder from REGISTER.
If I use aggressive-nat: freeswitch send invite calls to end-user to proxy2, which have then no idea where where to send the call (no route haeder in invite from freeswitch)
If I do not use aggressive-nat - freeswitch sends it's invite directly to end-user phone(((
In this example I'm using SIP over TCP, however the same is happened over UDP...
So, the question is how to register correctly to FS and preserve all VIA headers with fs_nat in contact db or some other way, so I could reach the end-user phone in same patch it is registering?
Thanks a lot,
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users