summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d3499da)
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
transferer = chan;
transferee = peer;
}
transferer = chan;
transferee = peer;
}
-
- /* Use the non-macro context to transfer the call */
- if(strlen(transferer->macrocontext))
- transferer_real_context=transferer->macrocontext;
- else
- transferer_real_context=transferer->context;
-
+ if(!(transferer_real_context=pbx_builtin_getvar_helper(transferee, "TRANSFER_CONTEXT")) &&
+ !(transferer_real_context=pbx_builtin_getvar_helper(transferer, "TRANSFER_CONTEXT"))) {
+ /* Use the non-macro context to transfer the call */
+ if(strlen(transferer->macrocontext))
+ transferer_real_context=transferer->macrocontext;
+ else
+ transferer_real_context=transferer->context;
+ }
/* Start autoservice on chan while we talk
to the originator */
ast_autoservice_start(transferee);
/* Start autoservice on chan while we talk
to the originator */
ast_autoservice_start(transferee);