]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix z code
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 3 Sep 2009 14:48:02 +0000 (14:48 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 3 Sep 2009 14:48:02 +0000 (14:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14753 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index 23072cacc60aa593c7d8ee90a583a6b280d6ce95..f57a4142426078a4152344e4c41e89b2b527db1d 100644 (file)
@@ -1456,6 +1456,11 @@ SWITCH_DECLARE(void) switch_rtp_destroy(switch_rtp_t **rtp_session)
 #ifdef ENABLE_ZRTP
        /* ZRTP */
        if (zrtp_on) {
+
+               if (rtp_session->zrtp_ctx != NULL) {
+                       zrtp_stream_stop(rtp_session->zrtp_ctx);
+               }
+
                if (switch_test_flag((*rtp_session), SWITCH_ZRTP_FLAG_SECURE_SEND)) {
                        switch_clear_flag((*rtp_session), SWITCH_ZRTP_FLAG_SECURE_SEND);
                }