local.cfg
listen=UDP_SIP advertise 125.212.212.40:5060
listen=TCP_SIP advertise 125.212.212.40:5060kazoo_event_stream.c:245 increased event stream buffer size to 5168
EXECUTE sofia/sipinterface_1/hahai@hahai1412.anttel-pro.ab-kz-02.antbuddy.com
bridge({outbound_redirect_fatal="false",call_timeout=20,originate_timeout=20,local_var_clobber="true"}[ecallmgr_Authorizing-ID="71310939684a2c8acc4e0e6dff1be6c2",ecallmgr_Owner-ID="188cd101dcea060d080261b328fdf1ca",ecallmgr_Account-ID="3f221d1ce6959ec04acd372923e253b9",sdp_secure_savp_only="false",sip_invite_domain="hahai1412.anttel-pro.ab-kz-02.antbuddy.com",presence_id="shark...@hahai1412.anttel-pro.ab-kz-02.antbuddy.com",sip_h_X-KAZOO-AOR=sip:sharklasers@hahai1412.anttel-pro.ab-kz-02.antbuddy.com,absolute_codec_string="^^:PCMU:VP8",leg_timeout="20",effective_callee_id_number="sharklasers",effective_callee_id_name="sharklasers ",origination_callee_id_number="sharklasers",origination_callee_id_name="sharklasers ",ecallmgr_Realm="hahai1412.anttel-pro.ab-kz-02.antbuddy.com",ecallmgr_Username="sharklasers"]sofia/sipinterface_1/sharklasers@113.161.89.159:5914;transport=ws;fs_path=sip:10.127.15.36:5060;lr;received="sip:113.161.89.159:5914;transport=ws")This isn't related to Kazoo is it? If not, you're posting to the wrong place. This should go to the freeswitch or kamailio mailing lists. ..
Sent from the 2600hz mobile network
-------- Original message --------
From: HaiBui <hai...@htklabs.com>
Date: 03/10/2016 7:49 PM (GMT-08:00)
To: 2600hz-dev <2600h...@googlegroups.com>
Subject: Problem with Freeswitch with IP public and Kamailio behind NAT
Hi all,
I have NAT problem when configure Freeswitch and Kamailio.As the old network diagram:I configure dispatcher to FS 1,2 with IP private and map IP public <-> IP private for each server via Router.This work fine.Then now, I want to improve FS performance so that I set up new FS with IP public:I configure dispatcher FS3 with IP public, connection between FS3 & ecallmgr via public IP is Okay but have problem with NAT:When Kamailio foward SIP INVITE message to FS3 then FS3 response 200 OK message but it send to Ip private of Kamailio not IP public.As Kamailio I have already configure advertise IP public:local.cfg
listen=UDP_SIP advertise 125.212.212.40:5060
listen=TCP_SIP advertise 125.212.212.40:5060
View console log on Freeswitch, I see the ecallmgr response to FS3:
- bridge({outbound_redirect_fatal="false",call_timeout=20,originate_timeout=20,local_var_clobber="true"}[ecallmgr_Authorizing-ID="71310939684a2c8acc4e0e6dff1be6c2",ecallmgr_Owner-ID="188cd101dcea060d080261b328fdf1ca",ecallmgr_Account-ID="3f221d1ce6959ec04acd372923e253b9",sdp_secure_savp_only="false",sip_invite_domain="hahai1412.anttel-pro.ab-kz-02.antbuddy.com",presence_id="sharkla...@hahai1412.anttel-pro.ab-kz-02.antbuddy.com",sip_h_X-KAZOO-AOR=sip:sharklasers@hahai1412.anttel-pro.ab-kz-02.antbuddy.com,absolute_codec_string="^^:PCMU:VP8",leg_timeout="20",effective_callee_id_number="sharklasers",effective_callee_id_name="sharklasers ",origination_callee_id_number="sharklasers",origination_callee_id_name="sharklasers ",ecallmgr_Realm="hahai1412.anttel-pro.ab-kz-02.antbuddy.com",ecallmgr_Username="sharklasers"]sofia/sipinterface_1/sharklasers@113.161.89.159:5914;transport=ws;fs_path=sip:10.127.15.36:5060;lr;received="sip:113.161.89.159:5914;transport=ws")
I research fs_path parameter: https://wiki.freeswitch.org/wiki/Sofia-SIP#Specifying_SIP_Proxy_With_fs_pathI guess this is broken It should be Public IP: fs_path=sip:125.212.212.40:5060. But I don't know how I can change this parameter !Anybody faced that problem ? Any solution ?
Regards,Hai Bui
Ahhh ok so you are using Kazoo :-) heh
FreeSWITCH should be sending it back to Kamailio, I believe, based on wherever it saw it from originally. I assume you are calling a registered device, yes? And that's what the bridge command below is?
From: HaiBui <hai...@htklabs.com>
Date: Thursday, March 10, 2016 at 8:13 PM
To: 2600hz-dev <2600h...@googlegroups.com>
Cc: Computer User <dschr...@2600hz.com>
Subject: Re: Problem with Freeswitch with IP public and Kamailio behind NAT
Hi Darren Schreiber,
Thank for replying.This message freeswitch receive from Ecallmgr:
kazoo_event_stream.c:245 increased event stream buffer size to 5168
EXECUTE sofia/sipinterface_1/hahai@hahai1412.anttel-pro.ab-kz-02.antbuddy.
com
bridge({outbound_redirect_fatal="false",call_timeout=20,originate_timeout=20,local_var_clobber="true"}[ecallmgr_Authorizing-ID="71310939684a2c8acc4e0e6dff1be6c2",ecallmgr_Owner-ID="188cd101dcea060d080261b328fdf1ca",ecallmgr_Account-ID="3f221d1ce6959ec04acd372923e253b9",sdp_secure_savp_only="false",sip_invite_domain="hahai1412.anttel-pro.ab-kz-02.antbuddy.com",presence_id="sharkla...@hahai1412.anttel-pro.ab-kz-02.antbuddy.com",sip_h_X-KAZOO-AOR=sip:sharklasers@hahai1412.anttel-pro.ab-kz-02.antbuddy.com,absolute_codec_string="^^:PCMU:VP8",leg_timeout="20",effective_callee_id_number="sharklasers",effective_callee_id_name="sharklasers ",origination_callee_id_number="sharklasers",origination_callee_id_name="sharklasers ",ecallmgr_Realm="hahai1412.anttel-pro.ab-kz-02.antbuddy.com",ecallmgr_Username="sharklasers"]sofia/sipinterface_1/sharklasers@113.161.89.159:5914;transport=ws;fs_path=sip:10.127.15.36:5060;lr;received="sip:113.161.89.159:5914;transport=ws")