<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><div><span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><b>From</b>: "Bryant Zimmerman" <BryantZ@zktech.com><br />
<b>Sent</b>: Tuesday, September 2, 2014 3:10 AM<br />
<b>To</b>: "Asterisk Developers Mailing List" <asterisk-dev@lists.digium.com><br />
<b>Subject</b>: Re: [asterisk-dev] Issue AGI Get Full Variable</span>
<div> </div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px">I am calling the GET FULL VARIABLE agi command.</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px">I am passing in the variable name and the channel name.</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px">It is responding with variable name back to the script and not the value.</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><strong>Failed</strong></span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><SIP/6167761066.2012-00000060>AGI Rx << <strong>GET FULL VARIABLE <span style="color:#FF0000;">aatAct0</span> SIP/6167761066.2012-00000060</strong><br />
<SIP/6167761066.2012-00000060>AGI Tx >> <strong>200 result=1 (<span style="color:#FF0000;">aatAct0</span>)</strong><br />
</span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><strong>Expected</strong></span></div>
<div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><SIP/6167761066.2012-00000060>AGI Rx << GET VARIABLE <span style="color:#0000FF;"><strong>aatAct0</strong></span><br />
<SIP/6167761066.2012-00000060>AGI Tx >> 200 result=1 (<strong><span style="color:#0000FF;">Macro~SBussniessMSIP-Operator~1</span></strong>)</span></div>
</div>
</div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px">I am on asterisk 11.10.2</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px">I am I using the Get Full Variable wrong any ideas?</span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span></div>
<div>-----------------------------------------------------------------------</div>
<div> </div>
<div>Ok I have figured this one out. The issue is the variable name must be wrapped in the ${<span style="color:#0000FF;">variablename</span>} format.</div>
<div> </div>
<div>The agi show commands topic get full variable docs do not show this format requirement. How do we get them updated so others do not get bit by this?</div>
<div> </div>
<div> </div>
<div>
<div> -= Info about agi 'get full variable' =-</div>
<div>[Syntax]<br />
get full variable <variablename> [<channel name>]</div>
<div><u><strong>Should read something Like:</strong></u> <span style="color:#0000FF;">get full variable <${variablename}> [<channel name>]</span></div>
<div>
<div><u><strong>Or Like:</strong></u> <span style="color:#0000FF;">get full variable <${FUNC(variablename)}> [<channel name>]</span></div>
</div>
<div> </div>
<div>[Description]<br />
Returns '0' if <variablename> is not set or channel does not exist. Returns<br />
'1' if <variablename> is set and returns the variable in parenthesis.</div>
<div><span style="color:#0000FF;">This does an eval on all var expressions. <variablename> should be included in ${variablename}, ${FNC(variablename)}, or $[expr]</span><br />
Understands complex variable names and builtin variables, unlike GET VARIABLE.</div>
<div><br />
Example return code: 200 result=1 (testvariable<span style="color:#0000FF;"> value</span>)</div>
<div> </div>
<div>[Synopsis]<br />
Evaluates a channel expression</div>
<div>[Runs Dead]<br />
Yes</div>
<div>[See Also]<br />
Not available</div>
<div> </div>
</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"> </span>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px">Thanks<br />
<br />
Bryant Zimmerman (ZK Tech Inc.)<br />
616-855-1030 Ext. 2003</span></div>
</div></span>