Call is being transferred correctly, but newly set variables are not working, instead it’s carry-forwarding the previous variables. Any way to set new variabless by any means?
Update: The call is not routing through rec.context valiable I passed. Instead, it’s going through internal context. I’m getting log like this Local/9999999999@from-internal-xfer-00000dc3
I also tried to inherit the variables key as @khamlichi.khalil suggested. But, no luck.
I believe a transfer is carried out on a newly created channel, so you newly set variables are set there and not in the new where the transfer is actually made, you could try to :
1/ add __ to all the vars (IFI_UUID → __IFI_UUID) to allow inheritance of those variables.
if this does not solve it you could try :
1/ set variable TRANSFER_CONTEXT = “my_attxfer_context” on the call
2/ add __ to all the vars (IFI_UUID → __IFI_UUID)
3/ inside my_attxfer_context reset the vars again or do any logic you see fit
I think that error comes from the common failure to understand that an extension, in Asterisk, is only what appears to the right of “exten=>” in the dialplan. Almost everyone here uses extension to refer to devices, as does FreePBX.