hi,I have "no audio" issue with TLS and i hope someone could help as Im getting crazy ... literally :(my setup is like this:Phone <> NAT <> INTERNET <> NAT <FreeSWITCH>FreeSWITCH version: 1.6.12~64bit ( 64bit)I have a separate profile configured for TLS:<param name="rtp-ip" value="192.168.100.60"/><param name="sip-ip" value="192.168.100.60"/><param name="apply-nat-acl" value="rfc1918"/><param name="ext-sip-ip" value="stun:stun.freeswitch.org "/><param name="ext-rtp-ip" value="stun:stun.freeswitch.org "/><!--<param name="aggressive-nat-detection" value="true"/>--> <param name="tls-only" value="true"/><param name="tls-sip-port" value="15061"/>
============================================================ ============================== ======= Name tls-publicDomain Name N/AAuto-NAT falseDBName sofia_reg_tls-publicPres Hosts 192.168.100.60,192.168.100.60Dialplan XMLContext publicChallenge Realm auto_fromRTP-IP 192.168.100.60Ext-RTP-IP stun:stun.freeswitch.orgSIP-IP 192.168.100.60Ext-SIP-IP 85.114.41.180TLS-BIND-URL sips:mod_sofia@85.114.41.180:15061;maddr=192.168.100.60; transport=tls WS-BIND-URL sip:mod_sofia@192.168.100.60:5066;transport=ws WSS-BIND-URL sips:mod_sofia@192.168.100.60:7443;transport=wss HOLD-MUSIC local_stream://mohOUTBOUND-PROXY N/ACODECS IN PCMACODECS OUT PCMATEL-EVENT 101DTMF-MODE rfc2833CNG 13SESSION-TO 0MAX-DIALOG 0NOMEDIA falseLATE-NEG truePROXY-MEDIA falseZRTP-PASSTHRU falseAGGRESSIVENAT falseCALLS-IN 0FAILED-CALLS-IN 0CALLS-OUT 2FAILED-CALLS-OUT 2REGISTRATIONS 0
i manage to register the phone with no problems but when i call the phone i get no audio;bgapi expand originate ${sofia_contact(tls-profile/agent2/nexios@192.168.100.60)} &echo() FS sends the invite as:SDP in INVITE message from FSv=0o=FreeSWITCH 1519708899 1519708900 IN IP4 85.114.41.180s=FreeSWITCHc=IN IP4 85.114.41.180t=0 0m=audio 17480 RTP/AVP 8 101a=rtpmap:8 PCMA/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16a=ptime:20SIP Client responds with:SDP in 200 OK from the clientv=0o=- 3728718779 3728718780 IN IP4 213.147.96.240s=pjmediab=AS:84t=0 0a=X-nat:0m=audio 4002 RTP/AVP 8 101c=IN IP4 213.147.96.240b=TIAS:64000a=rtcp:4003 IN IP4 213.147.96.240a=sendrecva=rtpmap:8 PCMA/8000a=rtpmap:101 telephone-event/8000a=fmtp:101 0-16So the UDP stream is: client( 4002 ) <> ( 17480 )FSwhen i sniff the traffic (on both sides client/FS) using wireshark, i see RTP packets ( src:4002, dst:17480 ) leaving the client towards FS, but I don't see RTP packets ( src:17480, dst:4002 ) from FS side leaving towards the client.so my question, of course, is why FS is not sending RTP packets to the IP:PORT notified in 200 OK SDP from the client ? Did i miss some needed configuration ?in FS logs i see 192.168.100.60 port 17480 -> 213.147.96.240 port 4002 but nothing is actually being sent out from FS2018-02-27 11:13:02.733376 [DEBUG] sofia.c:6965 Channel sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 entering state [ready][200]2018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:4311 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:4366 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match2018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:4227 Set telephone-event payload to 101@80002018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:3021 Set Codec sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 PCMA/8000 20 ms 160 samples 64000 bits 1 channels2018-02-27 11:13:02.733376 [DEBUG] switch_core_codec.c:111 sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 Original read codec set to PCMA:82018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:4572 Set telephone-event payload to 101@80002018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:4631 sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 Set 2833 dtmf send payload to 101 recv payload to 1012018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:6588 AUDIO RTP [sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 ] 192.168.100.60 port 17480 -> 213.147.96.240 port 4002 codec: 8 ms: 202018-02-27 11:13:02.733376 [DEBUG] switch_rtp.c:3875 Starting timer [soft] 160 bytes per 20ms2018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:6806 Activating RTCP PORT 40032018-02-27 11:13:02.733376 [DEBUG] switch_rtp.c:4261 RTCP send rate is: 5000 and packet rate is: 20000 Remote Port: 40032018-02-27 11:13:02.733376 [DEBUG] switch_rtp.c:2534 Setting RTCP remote addr to 213.147.96.240:4003 22018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:6887 sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 Set 2833 dtmf send payload to 1012018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:6894 sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 Set 2833 dtmf receive payload to 1012018-02-27 11:13:02.733376 [DEBUG] switch_core_media.c:6917 sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 Set rtp dtmf delay to 402018-02-27 11:13:02.733376 [NOTICE] sofia.c:8023 Channel [sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 ] has been answered2018-02-27 11:13:02.733376 [DEBUG] switch_channel.c:3770 (sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 ) Callstate Change RINGING -> ACTIVE2018-02-27 11:13:02.753388 [DEBUG] switch_ivr_originate.c:3686 Originate Resulted in Success: [sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 ]2018-02-27 11:13:02.753388 [INFO] switch_channel.c:3127 sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 Flipping CID from "" <0000000000> to "Outbound Call" <nexios>2018-02-27 11:13:02.753388 [DEBUG] mod_commands.c:4788 (sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 ) State Change CS_CONSUME_MEDIA -> CS_EXECUTE2018-02-27 11:13:02.753388 [DEBUG] switch_core_state_machine.c:584 (sofia/tls-public/sip:agent2/n exios@213.147.96.240:10551 ) Running State Change CS_EXECUTE2018-02-27 11:13:02.753388 [DEBUG] switch_core_state_machine.c:650 (sofia/tls-public/sip:agent2/n exios@213.147.96.240:10551 ) State EXECUTE2018-02-27 11:13:02.753388 [DEBUG] mod_sofia.c:198 sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 SOFIA EXECUTE2018-02-27 11:13:02.753388 [DEBUG] switch_core_state_machine.c:328 sofia/tls-public/sip:agent2/ne xios@213.147.96.240:10551 Standard EXECUTEEXECUTE sofia/tls-public/sip:agent2/nexios@213.147.96.240:10551 echo()Regards,Tihomir.