<div dir="ltr">recv 1815 bytes from tls/[81.23.228.150]:443 at 07:59:52.249297:
<br>------------------------------------------------------------------------
<br>   INVITE <a class="gmail-moz-txt-link-freetext">sip:gw+sip2sip@</a><my_IP:5061;transport=tls;gw=sip2sip SIP/2.0
<br>   Record-Route: 
<a class="gmail-moz-txt-link-rfc2396E"><sip:81.23.228.150:443;transport=tls;r2=on;lr;ftag=KKQaHvjDvKecF;did=f94.1a4c1615></a>
<br>   Record-Route: 
<a class="gmail-moz-txt-link-rfc2396E"><sip:81.23.228.150;r2=on;lr;ftag=KKQaHvjDvKecF;did=f94.1a4c1615></a>
<br>   Record-Route: <a class="gmail-moz-txt-link-rfc2396E"><sip:81.23.228.129;lr;ftag=KKQaHvjDvKecF;did=f94.5418aa17></a>
<br>   Record-Route: <a class="gmail-moz-txt-link-rfc2396E"><sip:81.23.228.150;lr;ftag=KKQaHvjDvKecF></a>
<br>   Record-Route: <a class="gmail-moz-txt-link-rfc2396E"><sip:85.17.186.7;r2=on;lr;ftag=KKQaHvjDvKecF></a>
<br>   Record-Route: 
<a class="gmail-moz-txt-link-rfc2396E"><sip:85.17.186.7;transport=tcp;r2=on;lr;ftag=KKQaHvjDvKecF></a>
<br>   Via: SIP/2.0/TLS 81.23.228.150:443;branch=z9hG4bK9a88.2adb9c55.0
<br>   Via: SIP/2.0/UDP 81.23.228.129:5060;branch=z9hG4bK9a88.40d983a7.0
<br>   Via: SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK9a88.1adb9c55.0
<br>   Via: SIP/2.0/UDP 85.17.186.7:5060;branch=z9hG4bK9a88.80ff70a4.0;i=62a32
<br>   Via: SIP/2.0/TCP 
81.23.228.160:57446;rport=55026;received=81.23.228.160;branch=z9hG4bKKBNcH3r9B48Xr
<br>   Max-Forwards: 66
<br>   From: "Victor" 
<a class="gmail-moz-txt-link-rfc2396E"><sip:rCodzvTEQK+uupE5QSBudQ@guest.sip2sip.info></a>;tag=KKQaHvjDvKecF
<br>   To: <a class="gmail-moz-txt-link-rfc2396E"><sip:13579@sip2sip.info></a>
<br>   Call-ID: f45c2a4a-d381-1236-1298-047d7b87609e
<br>   CSeq: 933861599 INVITE
<br>   Contact: <a class="gmail-moz-txt-link-rfc2396E"><sip:rCodzvTEQK+uupE5QSBudQ@81.23.228.160:55026></a>
<br>   User-Agent: SylkRTC (Firefox 60.0 on Windows 8.1)
<br>   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, UPDATE
<br>   Content-Type: application/sdp
<br>   Content-Disposition: session
<br>   Content-Length: 474
<br>
<br>   v=0
<br>   o=mozilla...THIS_IS_SDPARTA-60.0 3887687583368393798 
5225707675845380188 IN IP4 81.23.228.160
<br>   s=-
<br>   t=0 0
<br>   a=sendrecv
<br>   m=audio 54672 RTP/AVP 109 9 0 8 101
<br>   c=IN IP4 81.23.228.129
<br>   a=rtpmap:109 opus/48000/2
<br>   a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
<br>   a=rtpmap:9 G722/8000/1
<br>   a=rtpmap:0 PCMU/8000
<br>   a=rtpmap:8 PCMA/8000
<br>   a=rtpmap:101 telephone-event/8000
<br>   a=fmtp:101 0-15
<br>   a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:WIsk0UoOzvahjfdFEDDgAVd5hXFmUnUpvBoPK1eY
<br>
<br>In Freeswitch debug I see the correct local SDP:
<br>
<br>[DEBUG] mod_sofia.c:850 Local SDP 
<a class="gmail-moz-txt-link-abbreviated" href="mailto:sofia/sip2sip/rCodzvTEQK+uupE5QSBudQ@guest.sip2sip.info">sofia/sip2sip/rCodzvTEQK+uupE5QSBudQ@guest.sip2sip.info</a>:
<br>v=0
<br>o=FreeSWITCH 1526429009 1526429010 IN IP4 <my_IP>
<br>s=FreeSWITCH
<br>c=IN IP4 <my_IP>
<br>t=0 0
<br>m=audio 28590 RTP/SAVP 8 101
<br>a=rtpmap:8 PCMA/8000
<br>a=rtpmap:101 telephone-event/8000
<br>a=fmtp:101 0-16
<br>a=ptime:20
<br>a=sendrecv
<br>a=crypto:1 AES_CM_128_HMAC_SHA1_80 
inline:7MKm6yBppNSDw1IJDgyl0a2xkkvmashJVyTACq89
<br>
<br>but in siptrace I see that really Freeswitch sends this strange SDP (and 
nothing else):
<br>
<br>send 1529 bytes to tls/[81.23.228.150]:443 at 07:59:59.082373:
<br>------------------------------------------------------------------------
<br>   SIP/2.0 200 OK
<br>   Via: SIP/2.0/TLS 
81.23.228.150:443;branch=z9hG4bK9a88.2adb9c55.0;rport=443
<br>   Via: SIP/2.0/UDP 81.23.228.129:5060;branch=z9hG4bK9a88.40d983a7.0
<br>   Via: SIP/2.0/UDP 81.23.228.150:5060;branch=z9hG4bK9a88.1adb9c55.0
<br>   Via: SIP/2.0/UDP 85.17.186.7:5060;branch=z9hG4bK9a88.80ff70a4.0;i=62a32
<br>   Via: SIP/2.0/TCP 
81.23.228.160:57446;rport=55026;received=81.23.228.160;branch=z9hG4bKKBNcH3r9B48Xr
<br>   Record-Route: 
<a class="gmail-moz-txt-link-rfc2396E"><sip:81.23.228.150:443;transport=tls;r2=on;lr;ftag=KKQaHvjDvKecF;did=f94.1a4c1615></a>
<br>   Record-Route: 
<a class="gmail-moz-txt-link-rfc2396E"><sip:81.23.228.150;r2=on;lr;ftag=KKQaHvjDvKecF;did=f94.1a4c1615></a>
<br>   Record-Route: <a class="gmail-moz-txt-link-rfc2396E"><sip:81.23.228.129;lr;ftag=KKQaHvjDvKecF;did=f94.5418aa17></a>
<br>   Record-Route: <a class="gmail-moz-txt-link-rfc2396E"><sip:81.23.228.150;lr;ftag=KKQaHvjDvKecF></a>
<br>   Record-Route: <a class="gmail-moz-txt-link-rfc2396E"><sip:85.17.186.7;r2=on;lr;ftag=KKQaHvjDvKecF></a>
<br>   Record-Route: 
<a class="gmail-moz-txt-link-rfc2396E"><sip:85.17.186.7;transport=tcp;r2=on;lr;ftag=KKQaHvjDvKecF></a>
<br>   From: "Victor" 
<a class="gmail-moz-txt-link-rfc2396E"><sip:rCodzvTEQK+uupE5QSBudQ@guest.sip2sip.info></a>;tag=KKQaHvjDvKecF
<br>   To: <a class="gmail-moz-txt-link-rfc2396E"><sip:13579@sip2sip.info></a>;tag=p8SyjjgjH5HZB
<br>   Call-ID: f45c2a4a-d381-1236-1298-047d7b87609e
<br>   CSeq: 933861599 INVITE
<br>   Contact: <<a class="gmail-moz-txt-link-freetext">sip:13579@</a><my_IP>:5061;transport=tls>
<br>   User-Agent: Freeswitch
<br>   Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, 
REGISTER, REFER, NOTIFY
<br>   Supported: timer, outbound, path, replaces
<br>   Allow-Events: talk, hold, conference, refer
<br>   Content-Type: application/sdp
<br>   Content-Disposition: session
<br>   Content-Length: 129
<br>
<br>   v=0
<br>   o=FreeSWITCH 1526429009 1526429010 IN IP4 <my_IP>
<br>   s=FreeSWITCH
<br>   c=IN IP4 <my_IP>
<br>   t=0 0
<br>   m=audio 0 RTP/AVP 19
<br>
<br>
<br>Bearing in mind that sip2sip includes a=crypto attribute  in RTP/AVP
<br>
<br>I added this string in dialplan:
<br>
<br><action application="set" data="rtp_allow_crypto_in_avp=true"/>
<br>
<br>othewise I always received  [ERR] switch_core_media.c:4316 a=crypto in 
RTP/AVP, refer to rfc3711
<br>[NOTICE] switch_channel.c:3812 Hangup 
<a class="gmail-moz-txt-link-abbreviated" href="mailto:sofia/sip2sip/wFxwmegJTLu4n6kK8DpXjw@guest.sip2sip.info">sofia/sip2sip/wFxwmegJTLu4n6kK8DpXjw@guest.sip2sip.info</a> [CS_EXECUTE] 
[INCOMPATIBLE_DESTINATION]
<br>
<br>But now Freeswitch doesn't send the correct  SDP with RTP/SAVP (I see it 
just in debug).
<br>
<br>FreeSWITCH Version 1.6.19+git~20171120T163416Z~b1b21d0695~64bit (git 
b1b21d0 2017-11-20 16:34:16Z 64bit)
<br>
</div>