Commit Graph

379 Commits (27dc2094e98b59b8a50b059ddd6048285a42e6b9)

Author SHA1 Message Date
Russell Bryant 3da9f8ed19 Resolve more compiler warnings on FreeBSD.
15 years ago
Sean Bright 9a3d1b76e3 Fix building CDR and CEL SQLite3 modules.
15 years ago
Russell Bryant a297f2d04e formatting tweaks and constification
15 years ago
Russell Bryant 1f2f5fadcc trivial formatting tweak (working on reducing diff against trunk for cdr-q)
15 years ago
Russell Bryant 2abbaa5b6d remove include
15 years ago
Russell Bryant 022e262d71 constification, remove include
15 years ago
Russell Bryant ab9741edbb Remove unnecessary includes, formatting tweak
15 years ago
Russell Bryant 5e9c39468b constification and remove unnecessary include
15 years ago
Sean Bright e612d87695 Convert a few places to use ast_calloc_with_stringfields where applicable.
16 years ago
Tilghman Lesher 98a07b127f When the field is blank, don't warn about the field being unable to be coerced, just skip the column.
16 years ago
Matthew Nicholson c7358b39b7 Don't close the sqlite database when reloading. Only close the database when unloading.
16 years ago
Olle Johansson fff998bf41 Use extref for doxygen references to external libraries (in this case PostgreSQL)
16 years ago
Tilghman Lesher 2d60b75594 Change schema query to involve the use of an optional schema parameter.
16 years ago
Tilghman Lesher 642bec4d6f AST-2009-005
16 years ago
Sean Bright a4284a507b Add a new module, cdr_syslog, which allows writing CDRs to syslog.
16 years ago
Russell Bryant 0264eef115 Merge the new Channel Event Logging (CEL) subsystem.
16 years ago
Sean Bright 1fa4796b19 Update sample cdr_tds configuration to try and eliminate some confusion.
16 years ago
Sean Bright 8d3fb80928 Fix lock usage in cdr_sqlite3_custom to avoid potential crashes during reload.
16 years ago
Russell Bryant 356c0e2f8c Note a bug in cdr_sqlite3_custom so I don't forget about it.
16 years ago
Russell Bryant eccfeaf9b4 Fix possibility of crashiness during reload in custom fields handling.
16 years ago
Russell Bryant 32fdcc00b2 Standardize return values of load_config() so reload() doesn't report an error on success.
16 years ago
Russell Bryant f57752d380 Leave a note about some unsafe code in cdr_manager
16 years ago
Russell Bryant b390327dd7 Remove unnecessary usleep() from a couple of module unload callbacks.
16 years ago
Kevin P. Fleming 82fb56886e More 'static' qualifiers on module global variables.
16 years ago
Sean Bright 9a83ed9d93 Use a properly allocated channel for substitution in cdr_sqlite3_custom.
16 years ago
Sean Bright b543887664 Use a properly allocated channel for substitution in cdr_manager.
16 years ago
Sean Bright 1d28f5acd4 Fix errors in cdr_custom that cause reference errors when non-CDR variable
16 years ago
Kevin P. Fleming e6b2e9a750 Const-ify the world (or at least a good part of it)
16 years ago
Sean Bright c890725398 Remove some unused code.
16 years ago
Sean Bright dd0cd47630 Const-ify a string, fix a log message, and use the correct signature for the
16 years ago
Sean Bright f223598207 Allow cdr_custom to write to multiple files instead of just one.
16 years ago
Tilghman Lesher a866a75900 Merge str_substitution branch.
16 years ago
Russell Bryant fde695bb7f Merged revisions 186229 via svnmerge from
16 years ago
Tilghman Lesher 5120334acc Backport 1.6.0 fix to trunk (failsafe if db is not loaded)
16 years ago
Tilghman Lesher 31ae1bfa0d If config file is blank, don't load module.
16 years ago
Kevin P. Fleming 9a7efae8fd remove the PBX_ODBC logic from the configure script, and add GENERIC_ODCB logic that includes copying the relevant LIB and INCLUDE data from either UnixODBC or iODBC, based on which was found; if both were found, prefer UnixODBC
17 years ago
Tilghman Lesher b584784f85 When querying for the structure of the CDR table, remove the schema, if it
17 years ago
Tilghman Lesher c8223fc957 Merge ast_str_opaque branch (discontinue usage of ast_str internals)
17 years ago
Kevin P. Fleming 887e28d7aa incorporates r159808 from branches/1.4:
17 years ago
Terry Wilson 3a4177f52e Reloading the config and having no changes still initialized some settings to 0. Initialize settings after doing all of the cfg checks.
17 years ago
Terry Wilson 4f8242904a Begin on a crusade to end trailing whitespace!
17 years ago
Terry Wilson d66a8cd264 Fix checking for CONFIG_STATUS_FILEINVALID so that modules don't crash upon trying to parse an invalid config
17 years ago
Tilghman Lesher 03b1a5a384 Allow setting static values in CDRs
17 years ago
Kevin P. Fleming 448562af93 improve configure script to remember the previous value of each dependency in build_tools/menuselect-deps, so that (once it has been written) menuselect can use this information to warn the user when a previously met dependency is no longer met
17 years ago
Sean Bright ceee55ea63 Keep up with shadow warnings. One day I'll actually enable this in the Makefile.
17 years ago
Michiel van Baak 4560279c69 All ODBC parts can now use either unixodbc or iodbc.
17 years ago
Sean Bright e189fb406f Build under dev-mode
17 years ago
Tilghman Lesher 3a67cc8016 Add usegmtime, as per the recent -users list discussion, and also add my
17 years ago
Sean Bright a8a0ecb509 Move some duplicated code into a separate function.
17 years ago
Tilghman Lesher b95a4f4680 Oops
17 years ago
Tilghman Lesher 8be98abf79 Memory leak
17 years ago
Tilghman Lesher a88af95df4 Eliminate open coding of ast_str
17 years ago
Sean Bright 2fbd22bbc2 Fix memory leak in cdr_sqlite3_custom.
17 years ago
Sean Bright 297ebf779f If we detect that we are no longer connected, try to reconnect a few times
17 years ago
Sean Bright c2faa7bfda Use the ast_vasprintf macro instead of vasprintf directly.
17 years ago
Sean Bright 9c7099faae Log the userfield CDR variable like the other CDR backends, assuming the
17 years ago
Tilghman Lesher 8397209316 Fix runtime symbol error
17 years ago
Sean Bright 778b3d88a7 More from the resolve-shadow-warnings branch. This time the cdr/ directory.
17 years ago
Brett Bryant 86e5bb8b7d Fix magic Revision keywords in hashtab.c and change cdr_radius.c to use
17 years ago
Sean Bright 097ac98034 Fix a bug I noticed while doing the previous merge
17 years ago
Sean Bright dd0c0f3d38 Cast a few more strings to char *, so that we can compile cleanly against
17 years ago
Sean Bright a61f8794e3 This was bogus, need to find a better way.
17 years ago
Sean Bright e41a7c3d51 While we're at it, escape all the columns in our TDS queries as well. Double
17 years ago
Sean Bright 044a7b945f Quote column names when inserting CDRs into postgres to avoid conflicts
17 years ago
Sean Bright 19830f3359 Merge in changes from my cdr-tds-conversion branch. This changes the internal
17 years ago
Steve Murphy c23e5fea96 This solves a crash in the cdr_tds module on 'stop gracefully', for situations where 'settings' is not set to a pointer
17 years ago
Sean Bright f0b9647b09 Last commit for a bit, minor cleanups and move the lock initialization.
17 years ago
Sean Bright 4ee3510f10 Convert to use stringfields. Still some more work to do on config load/reload.
17 years ago
Sean Bright 852c514e25 Remove some unused variables
17 years ago
Sean Bright 8b1ed7aa5b Coding guidelines stuff only.
17 years ago
Jeff Peeler ef3b214728 Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow.
17 years ago
Tilghman Lesher 1207e9207e Don't unload config on reload, when config has not changed.
17 years ago
Tilghman Lesher 0c08b7727d Ensure that "calldate" is acceptable for a column name.
17 years ago
Sean Bright 87973ccea2 Minor logging cleanups
17 years ago
Tilghman Lesher 369ccdef5e Oops, buffer wasn't long enough for query
17 years ago
Tilghman Lesher 7c26320110 If any field is not null, but has no default, then it must be set or the insert will fail.
17 years ago
Tilghman Lesher ded5ec5b5d Merged revisions 113874 via svnmerge from
17 years ago
Jason Parker 1958abd90e Merged revisions 110779 via svnmerge from
17 years ago
Terry Wilson b02bc230af Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
17 years ago
Tilghman Lesher cafd900dc8 Convert prepare_and_execute to direct_execute for speed
17 years ago
Tilghman Lesher 408228bfb8 Whitespace changes only
17 years ago
Tilghman Lesher fbb78d988d Convert to use ast_str
17 years ago
Tilghman Lesher f274f7bcaa Permit additional CDR columns to be saved in Postgres. Note that these
18 years ago
Tilghman Lesher ac3c95e370 Change the way the new filter feature works, by allowing it to be a column NOT
18 years ago
Tilghman Lesher 799246dae3 Add the "filter" keyword
18 years ago
Tilghman Lesher ada37a921b Port Nick Gorham's timestamp patch to adaptive_odbc, too
18 years ago
Tilghman Lesher ed3007e7b3 Commit Nick Gorham's suggestion for timestamp fix
18 years ago
Tilghman Lesher 222917317d Fix problem with timestr going out of scope
18 years ago
Luigi Rizzo fd88390af7 remove unnecessary (char *) casts for ast_config_AST_* variables.
18 years ago
Kevin P. Fleming 100ef27af9 Merged revisions 93180 via svnmerge from
18 years ago
Tilghman Lesher 5d23b05a92 Don't use backslash as an escape character, unless it really is an escape character.
18 years ago
Luigi Rizzo 5490889153 Put into Makefile.moddir_rules the common instructions used to
18 years ago
Luigi Rizzo d652be0930 normalize subdirs' Makefile by using ASTTOPDIR and not .. to reference
18 years ago
Jason Parker 0ea5f428d0 Fix a problem with quoting in sqlite3 cdr module..
18 years ago
Tilghman Lesher 700cd10397 Merged revisions 90166,90736,90753 via svnmerge from
18 years ago
Tilghman Lesher ce2f670228 Change cdr_manager to use a "CDR" level, rather than the (overcrowded) "call" level.
18 years ago
Luigi Rizzo 7e8835e0d7 remove another set of redundant #include "asterisk/options.h"
18 years ago
Tilghman Lesher cbfc6dcbea Make trunk build again
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 9335ace850 another bunch of include removals (errno.h and asterisk/logger.h)
18 years ago