This change fixes a bug where the DTLS timeout timer would be
initialized to 0 if DTLS was not used for an RTP session.
ASTERISK-25103
Change-Id: If8d26bb054f1d300838850da5b8db9044c2fe2ac
dtls->connection = AST_RTP_DTLS_CONNECTION_NEW;
ast_mutex_init(&dtls->lock);
- dtls->timeout_timer = -1;
return 0;
#ifdef HAVE_OPENSSL_SRTP
rtp->rekeyid = -1;
+ rtp->dtls.timeout_timer = -1;
#endif
rtp->f.subclass.format = ao2_bump(ast_format_none);
#endif
#ifdef HAVE_OPENSSL_SRTP
+ rtp->rtcp->dtls.timeout_timer = -1;
dtls_setup_rtcp(instance);
#endif