From d2106c0b21e2e4d53eb177d1d271c30c362700f1 Mon Sep 17 00:00:00 2001
From: Alexander Anikin <may213@yandex.ru>
Date: Mon, 7 Sep 2015 22:19:41 +0400
Subject: [PATCH] chan_ooh323: call ast_rtp_instance_stop on ooh323_destroy

    Call ast_rtp_instance_stop on ooh323_destroy to free resources
    allocated by rtp instance

    ASTERISK-25299 #close
    Report by: Alexandr Dranchuk

Change-Id: I455096bd7da016b871afe90af86067c2c7c9f33f
---
 addons/chan_ooh323.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/addons/chan_ooh323.c b/addons/chan_ooh323.c
index 58db56fb7e..aa9cbaffa8 100644
--- a/addons/chan_ooh323.c
+++ b/addons/chan_ooh323.c
@@ -4115,6 +4115,7 @@ int ooh323_destroy(struct ooh323_pvt *p)
 		}
 
 		if (cur->rtp) {
+			ast_rtp_instance_stop(cur->rtp);
 			ast_rtp_instance_destroy(cur->rtp);
 			cur->rtp = NULL;
 		}
-- 
GitLab