diff options
author | Joshua Colp <jcolp@digium.com> | 2014-05-11 01:09:06 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2014-05-11 01:09:06 +0000 |
commit | e2ed86e4ca7df1ec7038d9f744d3accf91a7989e (patch) | |
tree | a7f9975aed6025c506d7d52c471e98c6c7a96dbf /main/framehook.c | |
parent | 3b3e4b9b959e835dab1619beae89b2a469a13049 (diff) |
Undoing framehook support. Issues were uncovered by Bamboo.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@413668 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/framehook.c')
-rw-r--r-- | main/framehook.c | 17 |
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; } |