see:ext-rtp-ipext-sip-iplocal-network-aclThose need to be set properly to determine the correct IP to fib about in the SDP, The ACL dictates whats inside the nat all else is outside.--Brian West
Twitter: @FreeSWITCH , @briankwestISN: 410*543T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WESTiNUM: +883 5100 1420 9001PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED)
On Jun 18, 2014, at 12:54 AM, Miguel Oyarzo <miguelaustro@gmail.com> wrote:_________________________________________________________________________WebClient<---wss/srtp---->FS<--rtp-->SIP_EndpointThe scenario is:I cannot manage to send the right SDP into the INVITE message from FS to my WebRTC client registered on it.Hi,
Calls from WebClient to SIP_Endpoint works well and FS manages to reply a 200 OK response, after INVITE from WebClient, with a public IP into SDP.- FS/application="bridge"
- FS run in a EC2 instance.
- WebClient run on Internet.
Audio is bi-directional, all looks good.However, calls originated on SIP_Endpoint to WebClient makes FS to include its private IP into the DSP for any INVITE toward WebClient (B-leg).
I have updated 'tried ext-rtp-ip' to- Public IP address of the instance- private and public STUN services
- auto-natNo matter what I do, I always get
o=FreeSWITCH 1403050916 1403050917 IN IP4 10.10.1.120
c=IN IP4 10.10.1.120At the WebClient side (INVITE). The weird is, using the same profiles in FS, calls from WebClient to SIP_Endpoint have no issues.
Trace in FS (SIP_Endpoint -> WebClient)
----------------------------------------------------------------------------
2014-06-18 13:09:50.318354 [NOTICE] switch_channel.c:1053 New Channel sofia/inboundbrowser/61370000000 [02c48e60-f696-11e3-b962-2703af7256ae]
2014-06-18 13:09:50.318354 [DEBUG] mod_sofia.c:4446 (sofia/inboundbrowser/61370000000) State Change CS_NEW -> CS_INIT
2014-06-18 13:09:50.318354 [DEBUG] switch_core_session.c:1384 Send signal sofia/inboundbrowser/61370000000 [BREAK]
2014-06-18 13:09:50.318354 [DEBUG] mod_sofia.c:4516 [zrtp_passthru] Setting a-leg inherit_codec=true
2014-06-18 13:09:50.318354 [DEBUG] mod_sofia.c:4519 [zrtp_passthru] Setting b-leg absolute_codec_string='PCMA@8000h@20i@64000b'
2014-06-18 13:09:50.318354 [DEBUG] switch_core_state_machine.c:467 (sofia/inboundbrowser/61370000000) Running State Change CS_INIT
2014-06-18 13:09:50.318354 [DEBUG] switch_core_state_machine.c:507 (sofia/inboundbrowser/61370000000) State INIT
2014-06-18 13:09:50.318354 [DEBUG] mod_sofia.c:87 sofia/inboundbrowser/61370000000 SOFIA INIT
2014-06-18 13:09:50.318354 [DEBUG] switch_core_media.c:865 Set Local Key [1 AES_CM_128_HMAC_SHA1_80 inline:4hCK5K0NEWULvEWlyp6LEmcPVDwqTu2AUhbh7jqV]
2014-06-18 13:09:50.318354 [DEBUG] switch_core_media.c:865 Set Local Key [1 AES_CM_128_HMAC_SHA1_80 inline:6TEOHAvn7aga7PA7GvEsm/QBsztoMyov4Jv8vvGg]
2014-06-18 13:09:50.318354 [DEBUG] sofia_glue.c:1196 sip:10.10.1.120:5064;transport=udp;lr;ovid=aa2aa1e2 Setting proxy route to sofia/inboundbrowser/61370000000
2014-06-18 13:09:50.318354 [DEBUG] sofia_glue.c:1225 sofia/inboundbrowser/61370000000 sending invite version: 1.5.8b git 68e1a56 2014-02-23 23:59:01Z 64bit
Local SDP:
v=0
o=FreeSWITCH 1403050916 1403050917 IN IP4 10.10.1.120
s=FreeSWITCH
c=IN IP4 10.10.1.120
t=0 0
a=msid-semantic: WMS pulb3IfP3ufkGKJf4haQDJ15jmDs4syk
m=audio 10074 RTP/SAVPF 8 101 13
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fingerprint:sha-256 6D:40:E1:C3:73:9F:F1:33:DA:7B:4B:1A:F1:2B:74:C7:42:24:EF:3D:84:6A:3B:1A:F9:9D:8B:3B:09:AB:33:AF
a=rtcp-mux
a=rtcp:10074 IN IP4 10.10.1.120
a=ssrc:3489368462 cname:NKlGirlcLrmh1WnW
a=ssrc:3489368462 msid:pulb3IfP3ufkGKJf4haQDJ15jmDs4syk a0
a=ssrc:3489368462 mslabel:pulb3IfP3ufkGKJf4haQDJ15jmDs4syk
a=ssrc:3489368462 label:pulb3IfP3ufkGKJf4haQDJ15jmDs4syka0
a=ice-ufrag:4oCxXtt6GWoBfNLT
a=ice-pwd:nXpveByQTLXLybxs
a=candidate:1887505845 1 udp 659136 10.10.1.120 10074 typ host generation 0
a=candidate:1887505845 2 udp 659136 10.10.1.120 10074 typ host generation 0
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:4hCK5K0NEWULvEWlyp6LEmcPVDwqTu2AUhbh7jqV
a=ptime:20
a=sendrecv
----------------------------------------------------------------------------What's is wrong here is c=IN IP4 10.10.1.120 (must be public for RTP traffic between WebClient and FS)
and
a=candidate for public IP is missing (STUN is enabled in FS's profile)Any idea?
--"Efficiency is doing things right; effectiveness is doing the right things (Peter Drucker)"
Miguel Oyarzo
DevOps & VoIP Engineer
Linux User: # 483188 - counter.li.org
http://au.linkedin.com/in/mikeaustralia
Melbourne, Australia
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org