<div dir="ltr"><div><div><div><div>
         I am using FreeSWITCH demo configuration to test SRTP calls. I am placing a call between endpoint 1000 and 1001. The call works fine when SRTP is disabled on the softphones. The problem starts when I enable SRTP on the softphones. I also enabled SRTP on FreeSWITCH server, by including the following command in vars.xml:<br><br><span style="font-family:monospace,monospace"><X-PRE-PROCESS cmd="set"
data="sip_secure_media=true"/></span><br><br></div>When I try to place a call between the two endpoints now, I end up with one side immediately hanging up.<br></div>Specifically, the error seems to be:<br><span style="font-family:monospace,monospace">[WARNING] switch_core_media.c:4035 Declining invite with only SAVP because secure media is administratively disabled</span><br><br></div>Followed by:<br><span style="font-family:monospace,monospace">[NOTICE] sofia.c:7742 Hangup sofia/internal/<a href="http://1001@10.10.10.112:5060">1001@10.10.10.112:5060</a> [CS_CONSUME_MEDIA] [INCOMPATIBLE_DESTINATION]<br><br></span></div><div><span style="font-family:arial,helvetica,sans-serif">Couldn't find any info on how to resolve this issue online.</span><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><span style="font-family:arial,helvetica,sans-serif">Here's the relevant log:</span><span style="font-family:monospace,monospace"><br>2016-03-18 09:45:21.664536<br><br>[INFO] switch_rtp.c:3605 Activating Audio Secure RTP SEND<br>[DEBUG] switch_core_sqldb.c:2607 Secure Type: srtp:sdes:AES_CM_128_HMAC_SHA1_80<br>[INFO] switch_rtp.c:3583 Activating Audio Secure RTP RECV<br>[DEBUG] switch_core_sqldb.c:2607 Secure Type: srtp:sdes:AES_CM_128_HMAC_SHA1_80<br>[NOTICE] sofia_media.c:92 Pre-Answer sofia/internal/<a href="mailto:1000@10.10.10.77">1000@10.10.10.77</a>!<br>[DEBUG] switch_channel.c:3461 (sofia/internal/<a href="mailto:1000@10.10.10.77">1000@10.10.10.77</a>) Callstate Change RINGING -> EARLY<br>[DEBUG] mod_sofia.c:2330 Ring SDP:<br>v=0<br>o=FreeSWITCH 1458288533 1458288534 IN IP4 10.10.10.77<br>s=FreeSWITCH<br>c=IN IP4 10.10.10.77<br>t=0 0<br>m=audio 20188 RTP/SAVP 0 101<br>a=rtpmap:0 PCMU/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:uhco9Z9FgciE1vh5LQqGyNXxts0etxavW51gJKVP<br><br>[DEBUG] switch_ivr_originate.c:1274 Raw Codec Activation Success L16@8000hz 1 channel 20ms<br>[DEBUG] switch_core_codec.c:221 sofia/internal/<a href="mailto:1000@10.10.10.77">1000@10.10.10.77</a> Push codec L16:100<br>[DEBUG] switch_ivr_originate.c:1343 Play Ringback Tone [%(2000,4000,440,480)]<br>[DEBUG] sofia.c:6756 Channel sofia/internal/<a href="mailto:1000@10.10.10.77">1000@10.10.10.77</a> entering state [early][183]<br>[DEBUG] switch_rtp.c:6645 Correct audio ip/port confirmed.<br>[DEBUG] sofia.c:6756 Channel sofia/internal/<a href="http://1001@10.10.10.112:5060">1001@10.10.10.112:5060</a> entering state [completing][200]<br>[DEBUG] sofia.c:6766 Remote SDP:<br>v=0<br>o=VOCAL 61793 12653 IN IP4 10.10.10.112<br>s=-<br>c=IN IP4 10.10.10.112<br>t=0 0<br>m=audio 1442 RTP/SAVP 0<br>a=rtpmap:0 PCMU/8000<br>a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:i7qQOAKGWeBs/QtXQcYRD3g7u2pGv/BDqrvKE6Av<br>a=ptime:20<br><br>[DEBUG] sofia.c:6756 Channel sofia/internal/<a href="http://1001@10.10.10.112:5060">1001@10.10.10.112:5060</a> entering state [ready][200]<br>[WARNING] switch_core_media.c:4035 Declining invite with only SAVP because secure media is administratively disabled<br>[NOTICE] sofia.c:7742 Hangup sofia/internal/<a href="http://1001@10.10.10.112:5060">1001@10.10.10.112:5060</a> [CS_CONSUME_MEDIA] [INCOMPATIBLE_DESTINATION]<br>[DEBUG] sofia.c:1355 Channel is already hungup.<br><br>2016-03-18 09:45:26.303802<br></span></div>