diff --git a/res/res_srtp.c b/res/res_srtp.c
index 549a1eaeb9514c3f56d0ea3768a4fd67650ed168..dea222baea28791d322eb6a5de4a07b387c1b8c5 100644
--- a/res/res_srtp.c
+++ b/res/res_srtp.c
@@ -546,6 +546,7 @@ static void res_srtp_shutdown(void)
 {
 	srtp_install_event_handler(NULL);
 	ast_rtp_engine_unregister_srtp();
+	srtp_shutdown();
 	g_initialized = 0;
 }