summaryrefslogtreecommitdiff
path: root/main/framehook.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/framehook.c')
-rw-r--r--main/framehook.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/main/framehook.c b/main/framehook.c
index 053e11a76..0d353cf36 100644
--- a/main/framehook.c
+++ b/main/framehook.c
@@ -160,10 +160,6 @@ int ast_framehook_attach(struct ast_channel *chan, struct ast_framehook_interfac
ast_frfree(frame);
}
- if (ast_channel_is_bridged(chan)) {
- ast_softhangup_nolock(chan, AST_SOFTHANGUP_UNBRIDGE);
- }
-
return framehook->id;
}
@@ -189,10 +185,6 @@ int ast_framehook_detach(struct ast_channel *chan, int id)
}
AST_LIST_TRAVERSE_SAFE_END;
- if (!res && ast_channel_is_bridged(chan)) {
- ast_softhangup_nolock(chan, AST_SOFTHANGUP_UNBRIDGE);
- }
-
return res;
}
@@ -223,12 +215,6 @@ int ast_framehook_list_is_empty(struct ast_framehook_list *framehooks)
int ast_framehook_list_contains_no_active(struct ast_framehook_list *framehooks)
{
- return ast_framehook_list_contains_no_active_of_type(framehooks, 0);
-}
-
-int ast_framehook_list_contains_no_active_of_type(struct ast_framehook_list *framehooks,
- enum ast_frame_type type)
-{
struct ast_framehook *cur;
if (!framehooks) {
@@ -243,9 +229,6 @@ int ast_framehook_list_contains_no_active_of_type(struct ast_framehook_list *fra
if (cur->detach_and_destroy_me) {
continue;
}
- if (type && cur->i.consume_cb && !cur->i.consume_cb(cur->i.data, type)) {
- continue;
- }
return 0;
}