diff options
Diffstat (limited to 'main/bridge_basic.c')
-rw-r--r-- | main/bridge_basic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/bridge_basic.c b/main/bridge_basic.c index cb8c2f992..0d95d83d2 100644 --- a/main/bridge_basic.c +++ b/main/bridge_basic.c @@ -2982,11 +2982,18 @@ static struct ast_channel *dial_transfer(struct ast_channel *caller, const char return NULL; } + ast_channel_lock_both(chan, caller); + + ast_channel_req_accountcodes(chan, caller, AST_CHANNEL_REQUESTOR_BRIDGE_PEER); + /* Who is transferring the call. */ pbx_builtin_setvar_helper(chan, "TRANSFERERNAME", ast_channel_name(caller)); ast_bridge_set_transfer_variables(chan, ast_channel_name(caller), 1); + ast_channel_unlock(chan); + ast_channel_unlock(caller); + /* Before we actually dial out let's inherit appropriate information. */ copy_caller_data(chan, caller); |