]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5680 --resolve this patch should auto set this variable on dtls enabled channels
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Aug 2013 23:20:36 +0000 (04:20 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 7 Aug 2013 23:20:36 +0000 (04:20 +0500)
src/switch_core_media.c

index 6dde6cf3e6b1d744aa31a6990b568ed781d1f43c..e3e42a60f74371b645336ce16749b1ac01cef0d1 100644 (file)
@@ -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");
+                                               }
                                        }
                                }
                        }