[svn-commits] seanbright: branch group/newcdr r202004 - /team/group/newcdr/cel/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 19 15:44:34 CDT 2009


Author: seanbright
Date: Fri Jun 19 15:44:31 2009
New Revision: 202004

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202004
Log:
Get cel_adaptive_odbc compiling with recent API changes.

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

Modified: team/group/newcdr/cel/cel_adaptive_odbc.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/cel/cel_adaptive_odbc.c?view=diff&rev=202004&r1=202003&r2=202004
==============================================================================
--- team/group/newcdr/cel/cel_adaptive_odbc.c (original)
+++ team/group/newcdr/cel/cel_adaptive_odbc.c Fri Jun 19 15:44:31 2009
@@ -352,7 +352,7 @@
 	char colbuf[1024], *colptr;
 	SQLHSTMT stmt = NULL;
 	SQLLEN rows = 0;
-	enum ast_cel_eventtype eventtype;
+	enum ast_cel_event_type eventtype;
 	const char *userdefname = 0;
 	struct timeval eventtime = {0};
 	const char *cid_ani, *cid_rdnis, *cid_name, *cid_num, *cid_dnid;
@@ -369,7 +369,7 @@
 	eventtype = ast_event_get_ie_uint(event, AST_EVENT_IE_CEL_EVENT_TYPE);
 	eventtime.tv_sec = ast_event_get_ie_uint(event, AST_EVENT_IE_CEL_EVENT_TIME);
 	eventtime.tv_usec = ast_event_get_ie_uint(event, AST_EVENT_IE_CEL_EVENT_TIME_USEC);
-	if (eventtype == CEL_USER_DEFINED) {
+	if (eventtype == AST_CEL_USER_DEFINED) {
 		userdefname = ast_event_get_ie_str(event, AST_EVENT_IE_CEL_USEREVENT_NAME);
 	}
 	cid_name = ast_event_get_ie_str(event, AST_EVENT_IE_CEL_CIDNAME);
@@ -496,7 +496,7 @@
 					 * form (but only when we're dealing with a character-based field).
 					 */
 					if (strcasecmp(entry->name, "eventtype") == 0) {
-						snprintf(colbuf, sizeof(colbuf), "%s", ast_cel_eventtype2str(eventtype));
+						snprintf(colbuf, sizeof(colbuf), "%s", ast_cel_get_type_name(eventtype));
 					}
 
 					/* Truncate too-long fields */




More information about the svn-commits mailing list