[asterisk-commits] mnicholson: branch group/newcdr r202567 - /team/group/newcdr/funcs/func_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 22 17:17:29 CDT 2009


Author: mnicholson
Date: Mon Jun 22 17:17:25 2009
New Revision: 202567

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202567
Log:
Use ast_dummy_channel_alloc for variable substitution.

Modified:
    team/group/newcdr/funcs/func_odbc.c

Modified: team/group/newcdr/funcs/func_odbc.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/funcs/func_odbc.c?view=diff&rev=202567&r1=202566&r2=202567
==============================================================================
--- team/group/newcdr/funcs/func_odbc.c (original)
+++ team/group/newcdr/funcs/func_odbc.c Mon Jun 22 17:17:25 2009
@@ -1051,7 +1051,7 @@
 	/* Evaluate function */
 	char_args = ast_strdupa(a->argv[3]);
 
-	chan = ast_channel_alloc(0, AST_STATE_DOWN, "","", "", "", "", "", 0, "Bogus/func_odbc");
+	chan = ast_dummy_channel_alloc();
 
 	AST_STANDARD_APP_ARGS(args, char_args);
 	for (i = 0; i < args.argc; i++) {
@@ -1254,7 +1254,7 @@
 	char_args = ast_strdupa(a->argv[3]);
 	char_values = ast_strdupa(a->argv[4]);
 
-	chan = ast_channel_alloc(0, AST_STATE_DOWN, "", "", "", "", "", "", 0, "Bogus/func_odbc");
+	chan = ast_dummy_channel_alloc();
 
 	AST_STANDARD_APP_ARGS(args, char_args);
 	for (i = 0; i < args.argc; i++) {




More information about the asterisk-commits mailing list