From: "Bryant Zimmerman" <[email protected]>
Sent: Tuesday, September 2, 2014 3:10 AM
To: "Asterisk Developers Mailing List" <[email protected]>
Subject: Re: [asterisk-dev] Issue AGI Get Full Variable   
 I am calling the GET FULL VARIABLE agi command.
    
   I am passing in the variable name and the channel name.
   It is responding with variable name back to the script and not the 
value.
    
   Failed
    <SIP/6167761066.2012-00000060>AGI Rx << GET FULL VARIABLE aatAct0 
SIP/6167761066.2012-00000060
<SIP/6167761066.2012-00000060>AGI Tx >> 200 result=1 (aatAct0)
 
 Expected
  <SIP/6167761066.2012-00000060>AGI Rx << GET VARIABLE aatAct0
<SIP/6167761066.2012-00000060>AGI Tx >> 200 result=1 
(Macro~SBussniessMSIP-Operator~1)

    
   I am on asterisk 11.10.2
    
   I am I using the Get Full Variable wrong any ideas?
    
 -----------------------------------------------------------------------
  
 Ok I have figured this one out. The issue is the variable name must be 
wrapped in the ${variablename} format.
  
 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?
  
  
    -= Info about agi 'get full variable' =-
 [Syntax]
get full variable <variablename> [<channel name>]
 Should read something Like: get full variable <${variablename}> [<channel 
name>]
  Or Like: get full variable <${FUNC(variablename)}> [<channel name>]

  
 [Description]
Returns '0' if <variablename> is not set or channel does not exist. 
Returns
'1' if <variablename> is set and returns the variable in parenthesis.
 This does an eval on all var expressions.  <variablename> should be 
included in ${variablename}, ${FNC(variablename)}, or $[expr]
Understands complex variable names and builtin variables, unlike GET 
VARIABLE.

Example return code: 200 result=1 (testvariable value)
  
 [Synopsis]
Evaluates a channel expression
 [Runs Dead]
Yes
 [See Also]
Not available
  

  
  
  
  
   Thanks

Bryant Zimmerman (ZK Tech Inc.)
616-855-1030 Ext. 2003


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

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

Reply via email to