]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4971 please try this
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 17 Jan 2013 15:03:40 +0000 (09:03 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 17 Jan 2013 15:03:40 +0000 (09:03 -0600)
libs/freetdm/mod_freetdm/mod_freetdm.c
libs/freetdm/mod_freetdm/tdm.c

index 514fbcf5273f009cdcce4807491a9be8c7314816..2b0517dd792f3332b60ab752b76af59872f4819f 100755 (executable)
@@ -489,6 +489,10 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session)
                if (tech_pvt->write_codec.implementation) {
                        switch_core_codec_destroy(&tech_pvt->write_codec);
                }
+
+               switch_core_session_unset_read_codec(session);
+               switch_core_session_unset_write_codec(session);
+
        }
 
        return SWITCH_STATUS_SUCCESS;
index 0f8b5814c10c1def52da6b3d598ef340c793e46c..911a3a1f229d4595d2da4bfd1bd02190b5974ea6 100644 (file)
@@ -522,6 +522,9 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session)
                if (tech_pvt->write_codec.implementation) {
                        switch_core_codec_destroy(&tech_pvt->write_codec);
                }
+
+               switch_core_session_unset_read_codec(session);
+               switch_core_session_unset_write_codec(session);
         
         ftdm_channel_close(&tech_pvt->ftdm_channel);
        }