Hi, Can anyone suggest a way of doing the following in Asterisk 1.6.2 - I do not think it can be done trivially using TRANSFER_CONTEXT. What I want is for the TRANSFER_CONTEXT for all technologies to be the same as the initial context defined in the configuration of the device initiating the transfer. This is not as simple as it seems (unless I am missing something). For example: A call arrives on IAX/1234, and executes DIAL(SIP/100&SIP/101&SIP/102) in the dialplan. Let us then assume that the contexts are configured in the config files as: IAX/1234: context=external SIP/100: context=default SIP/101: context=superuser SIP/102: context=local So depending on who receives the call, and who REFERs it, the required TRANSFER_CONTEXT is different. The same applies if the call is REFER'ed by the IAX party. I am assuming that the SIP/IAX protocol transfer feature is used, rather than the res_features transfer, although they appear to be similar in having this issue. Regards, Steve
On Thu, 2010-04-15 at 13:59 +0100, Steve Davies wrote:> Let us then assume that the contexts are configured in the config files as: > IAX/1234: context=external > SIP/100: context=default > SIP/101: context=superuser > SIP/102: context=local >It's early and my brain hasn't fully engaged this morning, but couldn't you just do something like "setvar=_TRANSFER_CONTEXT=default" in the definition of user 100 in sip.conf, and "setvar=_TRANSFER_CONTEXT=superuser" in the definition of 101, and so forth? That way, it would get set on the incoming call from that particular user, and be inherited by the spawned call. Am I missing something obvious? -- Jared Smith Digium, Inc.