diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-06-05 23:29:43 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-06-05 23:29:43 +0000 |
commit | e7e7d7759b9eb7a47950fd9e4cd44e1262b389a1 (patch) | |
tree | cd71c3ecc4bba6905d68c2e97b6b3b514b1e7be8 /main/core_local.c | |
parent | 4cea90202090bf2db056de74b2ea4b5cacd40509 (diff) |
Make local channels use ast_channel_move() instead of the inlined version.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/core_local.c')
-rw-r--r-- | main/core_local.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/core_local.c b/main/core_local.c index 2e0bcc48a..5c7a34f1f 100644 --- a/main/core_local.c +++ b/main/core_local.c @@ -445,9 +445,8 @@ static int local_call(struct ast_channel *ast, const char *dest, int timeout) case LOCAL_CALL_ACTION_MASQUERADE: local_bridge_event(p); ast_answer(chan); - res = ast_channel_masquerade(p->action.masq, chan); + res = ast_channel_move(p->action.masq, chan); if (!res) { - ast_do_masquerade(p->action.masq); /* Chan is now an orphaned zombie. Destroy it. */ ast_hangup(chan); } |