[asterisk-dev] attended transfer TRANSFER_CONTEXT, why from transferee first?

Moises Silva moises.silva at gmail.com
Wed Jan 25 18:50:17 MST 2006


Hi everyone. Im checking res_features.c, function builtin_atxfer(). There
exists a decision of wether ot use TRANSFER_CONTEXT from the peer or chan
channels. I just want to know if exists a specific reason to give priority
to the transferee context??

The code is:

 	ast_log(LOG_DEBUG, "Executing Attended Transfer %s, %s (sense=%d)
XXX\n", chan->name, peer->name, sense);
	*if* (sense == FEATURE_SENSE_PEER) {
		transferer = peer;
		transferee = chan;
	} *else* {
		transferer = chan;
		transferee = peer;
	}
	*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* (!ast_strlen_zero(transferer->macrocontext))
			transferer_real_context = transferer->macrocontext;
		*else*
			transferer_real_context = transferer->context;
	}




Any pointing will be appreciated.

Regards
--
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060125/4061b3e2/attachment.htm


More information about the asterisk-dev mailing list