[Home]

Summary:ASTERISK-05283: [patch] API Command GetVar can only retrieve local variables and not global variables
Reporter:Ted Cabeen (secabeen)Labels:
Date Opened:2005-10-11 20:14:21Date Closed:2008-01-15 15:50:47.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/ManagerInterface
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) getglobalvar.diff
Description:The Manager API command GetVar can currently only query local variables.  Here is a brief patch to remove the Channel requirement from the API command and allow for the checking of local variables.  It does not change current behavior other than to allow the omission of the Channel argument to the GetVar Action in order to retrieve Global Variables.

****** ADDITIONAL INFORMATION ******

The patch attached allows global variables to be checked by making the Channel argument optional when calling the GetVar Action.  
Comments:By: Russell Bryant (russell) 2005-10-13 16:37:04

fixed in cvs head, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:50:47.000-0600

Repository: asterisk
Revision: 6763

U   trunk/manager.c

------------------------------------------------------------------------
r6763 | russell | 2008-01-15 15:50:46 -0600 (Tue, 15 Jan 2008) | 3 lines

allow manager getvar action to retrieve global variables as well as
channel variables (issue ASTERISK-5283)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6763