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@default-00000020;2>AGI Rx << SET VARIABLE myVar "Hello World!!!"
<Local/1000@default-00000020;2>AGI Tx >> 200 result=1
<Local/1000@default-00000020;2>AGI Rx << GET VARIABLE myVar
<Local/1000@default-00000020;2>AGI Tx >> 200 result=1 (Hello World!!!)

But  GET FULL VARIABLE just returns the NAME of the variable

<Local/1000@default-0000001f;2>AGI Rx << SET VARIABLE myVar "Hello World!!!"
<Local/1000@default-0000001f;2>AGI Tx >> 200 result=1
<Local/1000@default-0000001f;2>AGI Rx << GET FULL VARIABLE myVar
<Local/1000@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)
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to