AGI: “Get Variable” Returns Variable VALUE Vs “Get Full Variable” Returns Variable NAME – Bug Or My Misunderstanding?

Home » Asterisk Users » AGI: “Get Variable” Returns Variable VALUE Vs “Get Full Variable” Returns Variable NAME – Bug Or My Misunderstanding?
Asterisk Users 3 Comments

Just trying out a node agi package (https://github.com/sergey12313/ts-agi/ , and it wasn’t behaving as I expected, but when turning on agi debug, it looks like it might be Asterisk (using 17.1.0)

This works as expected

AGI Rx << SET VARIABLE myVar "Hello World!!!" AGI Tx >> 200 result=1
AGI Rx << GET VARIABLE myVar AGI Tx >> 200 result=1 (Hello World!!!)

But GET FULL VARIABLE just returns the NAME of the variable

AGI Rx << SET VARIABLE myVar "Hello World!!!" AGI Tx >> 200 result=1
AGI Rx << GET FULL VARIABLE myVar AGI Tx >> 200 result=1 (myVar)

Is this a bug, poor documentation, or my poor understanding of them?

https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+AGICommand_get+full+variable GET FULL VARIABLE VARIABLENAME CHANNEL NAME
Example return code: 200 result=1 (testvariable)

https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+AGICommand_get+variable GET VARIABLE VARIABLENAME
Example return code: 200 result=1 (testvariable)

3 thoughts on - AGI: “Get Variable” Returns Variable VALUE Vs “Get Full Variable” Returns Variable NAME – Bug Or My Misunderstanding?