--- channels/chan_sip.c.orig 2014-10-24 22:02:35.850496452 +0200 +++ channels/chan_sip.c 2014-10-24 22:53:22.809941455 +0200 @@ -10405,6 +10405,12 @@ goto process_sdp_cleanup; } + if (p->udptl && p->srtp) { + ast_log(LOG_WARNING, "Ignoring SRTP for T.38 UDPTL\n"); + sip_srtp_destroy(p->srtp); + p->srtp = NULL; + } + if (secure_audio && !(p->srtp && (ast_test_flag(p->srtp, SRTP_CRYPTO_OFFER_OK)))) { ast_log(LOG_WARNING, "Can't provide secure audio requested in SDP offer\n"); res = -1; @@ -10429,7 +10435,7 @@ goto process_sdp_cleanup; } - if (!(secure_audio || secure_video) && ast_test_flag(&p->flags[1], SIP_PAGE2_USE_SRTP)) { + if (!(secure_audio || secure_video || p->udptl) && ast_test_flag(&p->flags[1], SIP_PAGE2_USE_SRTP)) { ast_log(LOG_WARNING, "Matched device setup to use SRTP, but request was not!\n"); res = -1; goto process_sdp_cleanup;