diff options
author | Jeff Peeler <jpeeler@digium.com> | 2010-01-14 18:03:31 +0000 |
---|---|---|
committer | Jeff Peeler <jpeeler@digium.com> | 2010-01-14 18:03:31 +0000 |
commit | 9228fba7d7e68a1ce8f4fe92203030d15e78aaad (patch) | |
tree | cbc12a2499689fafa50f7e53a212055379e40c10 | |
parent | 3eb8f0a8dceb3060865d1a635cba13cf7eda5aba (diff) |
Fix broken call pickup
The problem was the OUTGOING flag was not getting set properly on the channel,
resulting in pickup failing as ast_read thought the call was inbound. Refer to
170393 for a more verbose description as this is the same exact change.
(closes issue #16539)
Reported by: syspert
Patches:
bug16539.patch uploaded by jpeeler (license 325)
Tested by: syspert
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@240179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index be396f8a1..657b05353 100644 --- a/main/channel.c +++ b/main/channel.c @@ -5357,7 +5357,7 @@ int ast_do_masquerade(struct ast_channel *original) /* XXX What about blocking, softhangup, blocker, and lock and blockproc? XXX */ /* Application and data remain the same */ /* Clone exception becomes real one, as with fdno */ - ast_copy_flags(original, clonechan, AST_FLAG_EXCEPTION | AST_FLAG_OUTGOING); + ast_set_flag(original, ast_test_flag(clonechan, AST_FLAG_EXCEPTION | AST_FLAG_OUTGOING)); original->fdno = clonechan->fdno; /* Schedule context remains the same */ /* Stream stuff stays the same */ |