[asterisk-commits] seanbright: branch group/newcdr r202748 - /team/group/newcdr/main/cel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 23 13:21:29 CDT 2009


Author: seanbright
Date: Tue Jun 23 13:21:26 2009
New Revision: 202748

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202748
Log:
ast_cel_fill_record() has the smarts in it to properly intialize
ast_cel_event_record.event_name, so we can use that instead of checking again.

Modified:
    team/group/newcdr/main/cel.c

Modified: team/group/newcdr/main/cel.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/main/cel.c?view=diff&rev=202748&r1=202747&r2=202748
==============================================================================
--- team/group/newcdr/main/cel.c (original)
+++ team/group/newcdr/main/cel.c Tue Jun 23 13:21:26 2009
@@ -397,12 +397,7 @@
 	}
 
 	/* next, fill the channel with their data */
-	if (record.event_type == AST_CEL_USER_DEFINED) {
-		newvariable = ast_var_assign("eventtype", record.user_defined_name);
-	} else {
-		newvariable = ast_var_assign("eventtype", ast_cel_get_type_name(record.event_type));
-	}
-	if (newvariable) {
+	if ((newvariable = ast_var_assign("eventtype", record.event_name))) {
 		AST_LIST_INSERT_HEAD(headp, newvariable, entries);
 	}
 




More information about the asterisk-commits mailing list