From 2ceb818f8eca4b8aebd0a4f2b36a641c832d8819 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 31 Aug 2023 17:33:47 -0700 Subject: session: fix allocation of proxy fifos Fifos need to be synchronously allocated once a transport like tcp accepts a session. Since events are now delivered asynchronously, proxy apps must explicitly register a cb function that manages fifo allocation prior to being notified of connect event. Type: fix Fixes: 0242d30 Signed-off-by: Florin Coras Change-Id: I7df973b7014e53e0766ea2bdc61e9871160bc18b --- src/plugins/srtp/srtp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/srtp/srtp.c') diff --git a/src/plugins/srtp/srtp.c b/src/plugins/srtp/srtp.c index 8b7c5b6374c..bb54e672918 100644 --- a/src/plugins/srtp/srtp.c +++ b/src/plugins/srtp/srtp.c @@ -154,6 +154,7 @@ srtp_ctx_init_client (srtp_tc_t *ctx) app_session = session_get (ctx->c_s_index, ctx->c_thread_index); app_session->app_wrk_index = ctx->parent_app_wrk_index; app_session->connection_index = ctx->srtp_ctx_handle; + app_session->opaque = ctx->parent_app_api_context; app_session->session_type = session_type_from_proto_and_ip (TRANSPORT_PROTO_SRTP, ctx->udp_is_ip4); -- cgit 1.2.3-korg