<div dir="ltr"><div><div><div><div> Hi,<br></div><br></div>I cannot manage to send the right SDP into the INVITE message from FS to my WebRTC client registered on it.<br><br></div>The scenario is:<br><br></div>WebClient&lt;---wss/srtp----&gt;FS&lt;--rtp--&gt;SIP_Endpoint<br>
<div><div><div><br>- FS run in a EC2 instance.<br></div>- FS/application=&quot;bridge&quot;<br>- WebClient run on Internet.<br><br></div>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.<br>
</div><div>Audio is bi-directional, all looks good.<br></div><div><div><br></div><div>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).<br>
</div><div><br><div>I have updated &#39;tried ext-rtp-ip&#39; to<br></div><div>- Public IP address of the instance<br></div><div>- private and public STUN services<br>- auto-nat<br></div><div><br></div><div>No matter what I do, I always get <br>
o=FreeSWITCH 1403050916 1403050917 IN IP4 10.10.1.120<br>c=IN IP4 10.10.1.120<br></div><div><br></div>At the WebClient side (INVITE). The weird is, using the same profiles in FS, calls from WebClient to SIP_Endpoint have no issues.<br>
</div><div><br><br><br>Trace in FS (SIP_Endpoint -&gt; WebClient)<br>----------------------------------------------------------------------------<br>2014-06-18 13:09:50.318354 [NOTICE] switch_channel.c:1053 New Channel sofia/inboundbrowser/61370000000 [02c48e60-f696-11e3-b962-2703af7256ae]<br>
2014-06-18 13:09:50.318354 [DEBUG] mod_sofia.c:4446 (sofia/inboundbrowser/61370000000) State Change CS_NEW -&gt; CS_INIT<br>2014-06-18 13:09:50.318354 [DEBUG] switch_core_session.c:1384 Send signal sofia/inboundbrowser/61370000000 [BREAK]<br>
2014-06-18 13:09:50.318354 [DEBUG] mod_sofia.c:4516 [zrtp_passthru] Setting a-leg inherit_codec=true<br>2014-06-18 13:09:50.318354 [DEBUG] mod_sofia.c:4519 [zrtp_passthru] Setting b-leg absolute_codec_string=&#39;PCMA@8000h@20i@64000b&#39;<br>
2014-06-18 13:09:50.318354 [DEBUG] switch_core_state_machine.c:467 (sofia/inboundbrowser/61370000000) Running State Change CS_INIT<br>2014-06-18 13:09:50.318354 [DEBUG] switch_core_state_machine.c:507 (sofia/inboundbrowser/61370000000) State INIT<br>
2014-06-18 13:09:50.318354 [DEBUG] mod_sofia.c:87 sofia/inboundbrowser/61370000000 SOFIA INIT<br>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]<br>
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]<br>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<br>
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<br>Local SDP:<br>v=0<br>o=FreeSWITCH 1403050916 1403050917 IN IP4 10.10.1.120<br>
s=FreeSWITCH<br>c=IN IP4 10.10.1.120<br>t=0 0<br>a=msid-semantic: WMS pulb3IfP3ufkGKJf4haQDJ15jmDs4syk<br>m=audio 10074 RTP/SAVPF 8 101 13<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:101 telephone-event/8000<br>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<br>
a=rtcp-mux<br>a=rtcp:10074 IN IP4 10.10.1.120<br>a=ssrc:3489368462 cname:NKlGirlcLrmh1WnW<br>a=ssrc:3489368462 msid:pulb3IfP3ufkGKJf4haQDJ15jmDs4syk a0<br>a=ssrc:3489368462 mslabel:pulb3IfP3ufkGKJf4haQDJ15jmDs4syk<br>a=ssrc:3489368462 label:pulb3IfP3ufkGKJf4haQDJ15jmDs4syka0<br>
a=ice-ufrag:4oCxXtt6GWoBfNLT<br>a=ice-pwd:nXpveByQTLXLybxs<br>a=candidate:1887505845 1 udp 659136 10.10.1.120 10074 typ host generation 0<br>a=candidate:1887505845 2 udp 659136 10.10.1.120 10074 typ host generation 0<br>a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:4hCK5K0NEWULvEWlyp6LEmcPVDwqTu2AUhbh7jqV<br>
a=ptime:20<br>a=sendrecv<br>----------------------------------------------------------------------------<br><div><br><br></div><div>What&#39;s is wrong here is c=IN IP4 10.10.1.120 (must be public for RTP traffic between WebClient and FS)<br>
</div><div>and <br>a=candidate for public IP is missing (STUN is enabled in FS&#39;s profile)<br></div><div><br><br></div><div>Any idea? <br></div><div><br clear="all"><br>-- <br><div dir="ltr"><div><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">&quot;Efficiency is doing things right; effectiveness is doing the right things</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"> (Peter Drucker)</span>&quot;<br>
</span></div><br><div><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Miguel Oyarzo</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">DevOps &amp; VoIP Engineer</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Linux User: # 483188 - </span><font color="#888888" face="arial, sans-serif"><a href="http://counter.li.org" target="_blank">counter.li.org</a></font><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,255)"><font color="#888888" face="arial, sans-serif"><a href="http://au.linkedin.com/in/mikeaustralia" target="_blank">http://au.linkedin.com/in/mikeaustralia</a> </font><br><font color="#888888" face="arial, sans-serif">Melbourne, Australia</font></span>
</div></div>
</div></div></div></div>