diff options
author | Joshua Colp <jcolp@digium.com> | 2006-05-26 17:59:29 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-05-26 17:59:29 +0000 |
commit | 10467be4c0d1ea1525f60dd6d502581ad5b89d4c (patch) | |
tree | a1f1f76c900ab84c23e5c0e3e5667dfdfc8e38df /res | |
parent | 1c158f0ea4d8f705582bc76b0377a4c93f9efe8d (diff) |
attended transfer use transferer context first and set who is transfering at the beginning (issue #6752 reported by moy -- minor mods done by myself)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r-- | res/res_features.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_features.c b/res/res_features.c index 35c203451..20dc85090 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -563,9 +563,9 @@ static int finishup(struct ast_channel *chan) static const char *real_ctx(struct ast_channel *transferer, struct ast_channel *transferee) { - const char *s = pbx_builtin_getvar_helper(transferee, "TRANSFER_CONTEXT"); + const char *s = pbx_builtin_getvar_helper(transferer, "TRANSFER_CONTEXT"); if (ast_strlen_zero(s)) - s = pbx_builtin_getvar_helper(transferer, "TRANSFER_CONTEXT"); + s = pbx_builtin_getvar_helper(transferee, "TRANSFER_CONTEXT"); if (ast_strlen_zero(s)) /* Use the non-macro context to transfer the call XXX ? */ s = transferer->macrocontext; if (ast_strlen_zero(s)) @@ -1039,6 +1039,7 @@ static struct ast_channel *ast_feature_request_and_dial(struct ast_channel *call if ((chan = ast_request(type, format, data, &cause))) { ast_set_callerid(chan, cid_num, cid_name, cid_num); ast_channel_inherit_variables(caller, chan); + pbx_builtin_setvar_helper(chan, "TRANSFERERNAME", caller->name); if (!ast_call(chan, data, timeout)) { struct timeval started; int x, len = 0; |