[asterisk-users] AGI: "Get variable" returns variable VALUE vs "Get full variable" returns variable NAME - bug or my misunderstanding?

Jonathan H lardconcepts at gmail.com
Fri Dec 27 13:24:51 CST 2019


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

<Local/1000 at default-00000020;2>AGI Rx << SET VARIABLE myVar "Hello World!!!"
<Local/1000 at default-00000020;2>AGI Tx >> 200 result=1
<Local/1000 at default-00000020;2>AGI Rx << GET VARIABLE myVar
<Local/1000 at default-00000020;2>AGI Tx >> 200 result=1 (Hello World!!!)

But  GET FULL VARIABLE just returns the NAME of the variable

<Local/1000 at default-0000001f;2>AGI Rx << SET VARIABLE myVar "Hello World!!!"
<Local/1000 at default-0000001f;2>AGI Tx >> 200 result=1
<Local/1000 at default-0000001f;2>AGI Rx << GET FULL VARIABLE myVar
<Local/1000 at default-0000001f;2>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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20191227/2e571643/attachment.html>


More information about the asterisk-users mailing list