mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-12 21:09:00 +00:00
Add missing CEL logging fields to various CEL backends.
* Add missing eventextra to cel_psql.c and cel_odbc.c. * Add missing PeerAccount and EventExtra to cel_manager.c. * Add missing userdeftype support for cel_custom.conf.sample and cel_sqlite3_custom.conf.sample. (closes issue ASTERISK-17190) Reported by: Bryant Zimmerman git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@350555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -438,6 +438,8 @@ static void odbc_log(const struct ast_event *event, void *userdata)
|
||||
ast_copy_string(colbuf, record.peer, sizeof(colbuf));
|
||||
} else if (strcmp(entry->celname, "amaflags") == 0) {
|
||||
snprintf(colbuf, sizeof(colbuf), "%d", record.amaflag);
|
||||
} else if (strcmp(entry->celname, "eventextra") == 0) {
|
||||
ast_copy_string(colbuf, record.extra, sizeof(colbuf));
|
||||
} else {
|
||||
colbuf[0] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user