AMI Action ATXFER setting Variables not working

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.

It does not seem like adding variables is supported.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+ManagerAction_Atxfer

Indeed, this was also posted on the Asterisk discourse at https://community.asterisk.org/t/ami-action-atxfer-setting-variables-not-working/88501/5 and I stated the same thing. As well Exten is being used incorrectly.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.