Make CDR variable name chandling consistently case insensitive.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 28 Aug 2013 22:38:30 +0000 (22:38 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 28 Aug 2013 22:38:30 +0000 (22:38 +0000)
........

Merged revisions 397896 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397897 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cdr.c

index 2632598..72128ff 100644 (file)
@@ -1122,7 +1122,7 @@ static struct ast_cdr *cdr_object_create_public_records(struct cdr_object *cdr)
                        int found = 0;
                        struct ast_var_t *newvariable;
                        AST_LIST_TRAVERSE(&cdr_copy->varshead, it_copy_var, entries) {
-                               if (!strcmp(ast_var_name(it_var), ast_var_name(it_copy_var))) {
+                               if (!strcasecmp(ast_var_name(it_var), ast_var_name(it_copy_var))) {
                                        found = 1;
                                        break;
                                }