aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_features.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-27 22:01:33 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-27 22:01:33 +0000
commitcbd442675dd984833231770b44f862c7740d5179 (patch)
tree7682421eb154b7d6a817e29f15b35c25f1190d6b /res/res_features.c
parent15f87a90769e07a89f558e5ae43cc48675457202 (diff)
Transfer improvements and fixes (bug #2741)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4113 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rwxr-xr-xres/res_features.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 273246ccc..bc10ca5a8 100755
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -304,6 +304,12 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
int allowdisconnect_in,allowdisconnect_out,allowredirect_in,allowredirect_out;
char *monitor_exec;
+ if (chan && peer) {
+ pbx_builtin_setvar_helper(chan, "BRIDGEPEER", peer->name);
+ pbx_builtin_setvar_helper(peer, "BRIDGEPEER", chan->name);
+ } else if (chan)
+ pbx_builtin_setvar_helper(chan, "BLINDTRANSFER", NULL);
+
if (monitor_ok) {
if (!monitor_app) {
if (!(monitor_app = pbx_findapp("Monitor")))
@@ -482,6 +488,8 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
}
/* XXX Maybe we should have another message here instead of invalid extension XXX */
} else if (ast_exists_extension(transferee, transferer_real_context, newext, 1, transferer->cid.cid_num)) {
+ pbx_builtin_setvar_helper(peer, "BLINDTRANSFER", chan->name);
+ pbx_builtin_setvar_helper(chan, "BLINDTRANSFER", peer->name);
ast_moh_stop(transferee);
res=ast_autoservice_stop(transferee);
if (!transferee->pbx) {