[asterisk-commits] oej: branch oej/tilghman-chanvar-backport r222100 - /team/oej/tilghman-chanva...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 2 14:47:33 CDT 2009


Author: oej
Date: Fri Oct  2 14:47:29 2009
New Revision: 222100

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=222100
Log:
Disabling some stuff to test

Modified:
    team/oej/tilghman-chanvar-backport/main/manager.c

Modified: team/oej/tilghman-chanvar-backport/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/tilghman-chanvar-backport/main/manager.c?view=diff&rev=222100&r1=222099&r2=222100
==============================================================================
--- team/oej/tilghman-chanvar-backport/main/manager.c (original)
+++ team/oej/tilghman-chanvar-backport/main/manager.c Fri Oct  2 14:47:29 2009
@@ -268,15 +268,15 @@
 	AST_RWLIST_RDLOCK(&channelvars);
 	AST_LIST_TRAVERSE(&channelvars, var, entry) {
 		const char *val = "";
-		if (var->isfunc) {
-			struct ast_dynamic_str *res = ast_dynamic_str_thread_get(&manager_event_funcbuf, 16);
-			int ret;
-			if (res && (ret = ast_func_read2(chan, var->name, &res, 0)) == 0) {
-				val = ast_str_buffer(res);
-			}
-		} else {
+		//if (var->isfunc) {
+			//struct ast_dynamic_str *res = ast_dynamic_str_thread_get(&manager_event_funcbuf, 16);
+			//int ret;
+			//if (res && (ret = ast_func_read2(chan, var->name, &res, 0)) == 0) {
+				//val = ast_str_buffer(res);
+			//}
+		//} else {
 			val = pbx_builtin_getvar_helper(chan, var->name);
-		}
+		//}
 		ast_dynamic_str_append(pbuf, 0, "ChanVariable(%s): %s=%s\r\n", chan->name, var->name, val ? val : "");
 	}
 	AST_RWLIST_UNLOCK(&channelvars);




More information about the asterisk-commits mailing list