[asterisk-commits] trunk - r8078 /trunk/manager.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Jan 14 23:50:20 MST 2006


Author: tilghman
Date: Sat Jan 14 23:50:19 2006
New Revision: 8078

URL: http://svn.digium.com/view/asterisk?rev=8078&view=rev
Log:
Prepare for removal of DBGet/DBPut manager commands, by allowing Getvar to get functions (Setvar can already set functions)

Modified:
    trunk/manager.c

Modified: trunk/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/manager.c?rev=8078&r1=8077&r2=8078&view=diff
==============================================================================
--- trunk/manager.c (original)
+++ trunk/manager.c Sat Jan 14 23:50:19 2006
@@ -745,7 +745,11 @@
 		}
 	}
 
-	pbx_retrieve_variable(c, varname, &varval, workspace, sizeof(workspace), NULL);
+	if (varname[strlen(varname) - 1] == ')') {
+		varval = ast_func_read(c, varname, workspace, sizeof(workspace));
+	} else {
+		pbx_retrieve_variable(c, varname, &varval, workspace, sizeof(workspace), NULL);
+	}
 
 	if (c)
 		ast_mutex_unlock(&c->lock);



More information about the asterisk-commits mailing list