]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 252314 via svnmerge from
authorSean Bright <sean@malleable.com>
Sun, 14 Mar 2010 17:47:11 +0000 (17:47 +0000)
committerSean Bright <sean@malleable.com>
Sun, 14 Mar 2010 17:47:11 +0000 (17:47 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r252314 | seanbright | 2010-03-14 13:43:46 -0400 (Sun, 14 Mar 2010) | 8 lines

  Fix building CDR and CEL SQLite3 modules.

  They added a sqlite3_log() function which was conflicting with our function
  names.

  (closes issue #17017)
  Reported by: alephlg
........

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

cdr/cdr_sqlite3_custom.c

index eee9c99dd792217d0992429fd0905dbe02632aa1..981a2533e47ea3eb615edf36f6424bbde2448dad 100644 (file)
@@ -226,7 +226,7 @@ static void free_config(int reload)
                ast_free(value);
 }
 
-static int sqlite3_log(struct ast_cdr *cdr)
+static int write_cdr(struct ast_cdr *cdr)
 {
        int res = 0;
        char *error = NULL;
@@ -329,7 +329,7 @@ static int load_module(void)
                }
        }
 
-       res = ast_cdr_register(name, desc, sqlite3_log);
+       res = ast_cdr_register(name, desc, write_cdr);
        if (res) {
                ast_log(LOG_ERROR, "Unable to register custom SQLite3 CDR handling\n");
                free_config(0);