提交 6faa4c91 authored 作者: Brian West's avatar Brian West

using the wrong api to remove media bug from crienzo on IRC, thanks.

上级 8cf15012
...@@ -495,7 +495,7 @@ switch_status_t callprogress_detector_stop(switch_core_session_t *session) ...@@ -495,7 +495,7 @@ switch_status_t callprogress_detector_stop(switch_core_session_t *session)
switch_channel_t *channel = switch_core_session_get_channel(session); switch_channel_t *channel = switch_core_session_get_channel(session);
switch_media_bug_t *bug = switch_channel_get_private(channel, TONE_PRIVATE); switch_media_bug_t *bug = switch_channel_get_private(channel, TONE_PRIVATE);
if (bug) { if (bug) {
switch_core_media_bug_close(&bug); switch_core_media_bug_remove(session, &bug);
switch_channel_set_private(channel, TONE_PRIVATE, NULL); switch_channel_set_private(channel, TONE_PRIVATE, NULL);
} }
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论