I’m trying to set some variables on AMI atxfer action command the following way
ami.action({
'Action': 'Atxfer',
'Channel': channel_id,
'Exten': `Local/${to}@${rec.context}`,
'Variable': {
'IFI_UUID': session_id,
'IFI_AGENT': rec.username,
'IFI_DID': rec.caller_id,
}
}
The 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 variables by any means?
Update:
I’ve solved the issue from this discussion.