From: Anthony Minessale Date: Tue, 16 Dec 2014 16:19:05 +0000 (-0600) Subject: set rtp_has_crypto for dtls calls X-Git-Tag: v1.4.15^2~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cee8b30c457f843d14c50b15b02172a986768cdc;p=thirdparty%2Ffreeswitch.git set rtp_has_crypto for dtls calls --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index d068e960ee..8f7bcefec6 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -3379,6 +3379,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_add_crypto_key(switch_rtp_t *rtp_sess if (switch_event_create(&fsevent, SWITCH_EVENT_CALL_SECURE) == SWITCH_STATUS_SUCCESS) { if (rtp_session->dtls) { switch_event_add_header(fsevent, SWITCH_STACK_BOTTOM, "secure_type", "srtp:dtls:AES_CM_128_HMAC_SHA1_80"); + switch_channel_set_variable(channel, "rtp_has_crypto", "srtp:dtls:AES_CM_128_HMAC_SHA1_80"); } else { switch_event_add_header(fsevent, SWITCH_STACK_BOTTOM, "secure_type", "srtp:sdes:%s", switch_channel_get_variable(channel, "rtp_has_crypto")); }