[asterisk-commits] tilghman: branch tilghman/cdr_custom_odbc r49668
- /team/tilghman/cdr_custom_...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jan 5 14:02:16 MST 2007
Author: tilghman
Date: Fri Jan 5 15:02:15 2007
New Revision: 49668
URL: http://svn.digium.com/view/asterisk?view=rev&rev=49668
Log:
Special case for these two fields
Modified:
team/tilghman/cdr_custom_odbc/cdr/cdr_custom_odbc.c
Modified: team/tilghman/cdr_custom_odbc/cdr/cdr_custom_odbc.c
URL: http://svn.digium.com/view/asterisk/team/tilghman/cdr_custom_odbc/cdr/cdr_custom_odbc.c?view=diff&rev=49668&r1=49667&r2=49668
==============================================================================
--- team/tilghman/cdr_custom_odbc/cdr/cdr_custom_odbc.c (original)
+++ team/tilghman/cdr_custom_odbc/cdr/cdr_custom_odbc.c Fri Jan 5 15:02:15 2007
@@ -249,6 +249,14 @@
case SQL_VARBINARY:
case SQL_LONGVARBINARY:
case SQL_GUID:
+ /* For these two field names, get the rendered form, instead of the raw
+ * form (but only when we're dealing with a character-based field).
+ */
+ if (strcasecmp(entry->name, "disposition") == 0)
+ ast_cdr_getvar(cdr, entry->name, &colptr, colbuf, sizeof(colbuf), 0, 0);
+ else if (strcasecmp(entry->name, "amaflags") == 0)
+ ast_cdr_getvar(cdr, entry->name, &colptr, colbuf, sizeof(colbuf), 0, 0);
+
/* Truncate too-long fields */
if (entry->type != SQL_GUID) {
if (strlen(colptr) > entry->octetlen)
More information about the asterisk-commits
mailing list