提交 107199f0 authored 作者: Anthony Minessale's avatar Anthony Minessale

try this sekil

上级 45a0fb7b
...@@ -853,15 +853,15 @@ static switch_status_t hanguphook(switch_core_session_t *session) ...@@ -853,15 +853,15 @@ static switch_status_t hanguphook(switch_core_session_t *session)
msg.from = __FILE__; msg.from = __FILE__;
msg.string_arg = switch_channel_get_variable(channel, SWITCH_SIGNAL_BRIDGE_VARIABLE); msg.string_arg = switch_channel_get_variable(channel, SWITCH_SIGNAL_BRIDGE_VARIABLE);
if (state == CS_ROUTING) {
if (switch_channel_test_flag(channel, CF_BRIDGE_ORIGINATOR)) { if (switch_channel_test_flag(channel, CF_BRIDGE_ORIGINATOR)) {
switch_channel_clear_flag_recursive(channel, CF_BRIDGE_ORIGINATOR); switch_channel_clear_flag_recursive(channel, CF_BRIDGE_ORIGINATOR);
if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_UNBRIDGE) == SWITCH_STATUS_SUCCESS) { if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_UNBRIDGE) == SWITCH_STATUS_SUCCESS) {
switch_channel_event_set_data(channel, event); switch_channel_event_set_data(channel, event);
switch_event_fire(&event); switch_event_fire(&event);
}
} }
} }
switch_core_session_receive_message(session, &msg); switch_core_session_receive_message(session, &msg);
switch_core_event_hook_remove_state_change(session, hanguphook); switch_core_event_hook_remove_state_change(session, hanguphook);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论