Index: cdr/cdr_pgsql.c =================================================================== --- cdr/cdr_pgsql.c (revision 299352) +++ cdr/cdr_pgsql.c (working copy) @@ -195,7 +195,7 @@ ast_strftime(buf, sizeof(buf), DATE_FORMAT, &tm); ast_str_append(&sql2, 0, "%s%s", first ? "" : ",", buf); } - } else if (strcmp(cur->name, "end") == 0) { + } else if (strcmp(cur->name, "end") == 0 || strcmp(cur->name,"callend") == 0) { if (strncmp(cur->type, "int", 3) == 0) { LENGTHEN_BUF2(13); ast_str_append(&sql2, 0, "%s%ld", first ? "" : ",", (long) cdr->end.tv_sec);