aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-26 17:59:29 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-26 17:59:29 +0000
commitce4f89599645c11c69ef90d56bc068c6b81bafa5 (patch)
treea1f1f76c900ab84c23e5c0e3e5667dfdfc8e38df /res
parentcb0181db21df7226ddf8e83c092f188aee7a2dc0 (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: http://svn.digium.com/svn/asterisk/trunk@30548 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_features.c5
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;