From 3682e54d1917540dcc12e8709aaadd7e047d82fa Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 8 Aug 2013 04:20:36 +0500 Subject: [PATCH] FS-5680 --resolve this patch should auto set this variable on dtls enabled channels --- src/switch_core_media.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 6dde6cf3e6..e3e42a60f7 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -2671,6 +2671,9 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s if (!strcasecmp(attr->a_name, "fingerprint") && !zstr(attr->a_value)) { got_crypto = 1; + if (sdp_type == SDP_TYPE_REQUEST) { + switch_channel_set_variable(session->channel, "answer_delay", "2500"); + } } } }