Skip to content
Snippets Groups Projects
Commit 4dba976a authored by Anthony Minessale II's avatar Anthony Minessale II
Browse files

added support to be able to set the channel var TRANSFER_CONTEXT so when

a #transfer is executed it uses ${TRANSFER_CONTEXT} from transferree else
from transferer else it acts as always
-anthm


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3499 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d3499da6
Branches
Tags
No related merge requests found
...@@ -303,13 +303,14 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast ...@@ -303,13 +303,14 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
transferer = chan; transferer = chan;
transferee = peer; transferee = peer;
} }
if(!(transferer_real_context=pbx_builtin_getvar_helper(transferee, "TRANSFER_CONTEXT")) &&
/* Use the non-macro context to transfer the call */ !(transferer_real_context=pbx_builtin_getvar_helper(transferer, "TRANSFER_CONTEXT"))) {
if(strlen(transferer->macrocontext)) /* Use the non-macro context to transfer the call */
transferer_real_context=transferer->macrocontext; if(strlen(transferer->macrocontext))
else transferer_real_context=transferer->macrocontext;
transferer_real_context=transferer->context; else
transferer_real_context=transferer->context;
}
/* Start autoservice on chan while we talk /* Start autoservice on chan while we talk
to the originator */ to the originator */
ast_autoservice_start(transferee); ast_autoservice_start(transferee);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment