Commit Graph

360 Commits (b718f91873e39e75aee91bd73d95ffb62ed38f1e)

Author SHA1 Message Date
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
17 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
Luigi Rizzo d82a631f9c more removal of duplicate #include lines
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Steve Murphy 98429d37b2 Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string.
18 years ago
Jason Parker b436362b19 Fix a few potential deadlocks in cdr_sqlite3_custom.
18 years ago
Steve Murphy a87efea3c4 Merged revisions 89088 via svnmerge from
18 years ago
Joshua Colp 16e33c3791 Restore building under 64-bit platforms.
18 years ago
Tilghman Lesher 4650a56d23 Convert cdr_odbc to use res_odbc managed connections
18 years ago
Steve Murphy 63f2f04cf4 This commits the performance mods that give the priority processing engine in the pbx, a 25-30% speed boost. The two updates used, are, first, to merge the ast_exists_extension() and the ast_spawn_extension() where they are called sequentially in a loop in the code, into a slightly upgraded version of ast_spawn_extension(), with a few extra args; and, second, I modified the substitute_variables_helper_full, so it zeroes out the byte after the evaluated string instead of demanding you pre-zero the buffer; I also went thru the code and removed the code that zeroed this buffer before every call to the substitute_variables_helper_full. The first fix provides about a 9% speedup, and the second the rest. These figures come from the 'PIPS' benchmark I describe in blogs, conf. reports, etc.
18 years ago
Tilghman Lesher c96c01cfd1 Fix memory leak
18 years ago
Tilghman Lesher 9691f51d73 Set enablecdr at the end of re-reading the config file (Closes issue #10852)
18 years ago
Tilghman Lesher 2fc1f89c30 Fix cdr_manager, such that if the config file is created past load, it'll
18 years ago
Joshua Colp 6489076887 Fix memory leaks in pbx_dundi, cdr_pgsql, and the configuration file parser.
18 years ago
Joshua Colp 2f0dba3010 Clean up code in cdr_csv. (Are you sensing a theme for me today?)
18 years ago
Jason Parker 0d1abc92fe Don't try to continue loading cdr_sqlite3_custom on a module load failure (such as the config not existing)
18 years ago
Jason Parker 28fbbde310 Merged revisions 82344 via svnmerge from
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Russell Bryant 9d959a040e Resolve some compiler warnings so that I can build under dev mode
18 years ago
Tilghman Lesher 7f570a8b3d Some ODBC drivers don't set the CHAR_OCTET_LENGTH field correctly.
18 years ago
Joshua Colp 52099657d5 Merged revisions 77540 via svnmerge from
18 years ago