提交 ff5b7028 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-4971 please try this

上级 52d558ff
...@@ -489,6 +489,10 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session) ...@@ -489,6 +489,10 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session)
if (tech_pvt->write_codec.implementation) { if (tech_pvt->write_codec.implementation) {
switch_core_codec_destroy(&tech_pvt->write_codec); 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; return SWITCH_STATUS_SUCCESS;
......
...@@ -522,6 +522,9 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session) ...@@ -522,6 +522,9 @@ static switch_status_t channel_on_destroy(switch_core_session_t *session)
if (tech_pvt->write_codec.implementation) { if (tech_pvt->write_codec.implementation) {
switch_core_codec_destroy(&tech_pvt->write_codec); 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); ftdm_channel_close(&tech_pvt->ftdm_channel);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论