aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
AgeCommit message (Collapse)AuthorFilesLines
2010-07-12Merged revisions 275626 via svnmerge from lmadsen1-0/+7
https://origsvn.digium.com/svn/asterisk/trunk ........ r275626 | lmadsen | 2010-07-12 10:37:01 -0500 (Mon, 12 Jul 2010) | 11 lines cdr_pgsql does not detect when a table is found. This change adds an ERROR message to let you know when a failure exists to get the columns from the pgsql database, which typically means that the table does not exist. (closes issue #17478) Reported by: kobaz Patches: cdr_pgsql.patch uploaded by kobaz (license 834) Tested by: kobaz, russell, lmadsen ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@275627 f38db490-d61c-443f-a65b-d21fe96a405b
2010-06-08Merged revisions 269007 via svnmerge from seanbright1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ................ r269007 | seanbright | 2010-06-08 11:39:52 -0400 (Tue, 08 Jun 2010) | 18 lines Merged revisions 269006 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r269006 | seanbright | 2010-06-08 11:28:49 -0400 (Tue, 08 Jun 2010) | 11 lines Reduce startup time for cdr_tds with large CDR tables. Since we are just checking for table existence, add a WHERE clause that will return no rows but will raise an error if the table doesn't exist. (closes issue #17380) Reported by: kkwong Patches: issue17380-01.patch uploaded by seanbright (license 71) Tested by: kkwong ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@269010 f38db490-d61c-443f-a65b-d21fe96a405b
2010-04-13Merged revisions 257065 via svnmerge from tilghman1-8/+12
https://origsvn.digium.com/svn/asterisk/trunk ........ r257065 | tilghman | 2010-04-13 11:33:21 -0500 (Tue, 13 Apr 2010) | 8 lines Ensure that we can have commas within cdr values. (closes issue #17001) Reported by: snuffy Patches: 20100412__issue17001.diff.txt uploaded by tilghman (license 14) Tested by: snuffy ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@257068 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-20Merged revisions 253540 via svnmerge from russell1-3/+3
https://origsvn.digium.com/svn/asterisk/trunk ........ r253540 | russell | 2010-03-20 07:03:07 -0500 (Sat, 20 Mar 2010) | 2 lines Resolve more compiler warnings on FreeBSD. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@253620 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-14Merged revisions 252314 via svnmerge from seanbright1-2/+2
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@252317 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-30Merged revisions 236847 via svnmerge from tilghman1-12/+32
https://origsvn.digium.com/svn/asterisk/trunk ........ r236847 | tilghman | 2009-12-30 11:53:29 -0600 (Wed, 30 Dec 2009) | 4 lines When the field is blank, don't warn about the field being unable to be coerced, just skip the column. (closes http://lists.digium.com/pipermail/asterisk-dev/2009-December/041362.html) Reported by Nic Colledge on the -dev list, fixed by me. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@236850 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-09Merged revisions 223136 via svnmerge from mnicholson1-10/+10
https://origsvn.digium.com/svn/asterisk/trunk ........ r223136 | mnicholson | 2009-10-09 12:14:38 -0500 (Fri, 09 Oct 2009) | 8 lines Don't close the sqlite database when reloading. Only close the database when unloading. (closes issue #15953) Reported by: frawd Patches: sqlite3_rev220097.diff uploaded by frawd (license 610) Tested by: frawd ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@223173 f38db490-d61c-443f-a65b-d21fe96a405b
2009-10-06Merged revisions 222309 via svnmerge from tilghman1-9/+49
https://origsvn.digium.com/svn/asterisk/trunk ........ r222309 | tilghman | 2009-10-06 14:31:39 -0500 (Tue, 06 Oct 2009) | 10 lines Change schema query to involve the use of an optional schema parameter. This change is done in such a way as to allow the driver to continue to function with older databases which don't have these features. (closes issue #16000) Reported by: jamicque Patches: 20091002__issue16000.diff.txt uploaded by tilghman (license 14) 20091002__issue16000__1.6.1.diff.txt uploaded by tilghman (license 14) Tested by: jamicque ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@222311 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10AST-2009-005tilghman2-13/+13
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@211580 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-22Merged revisions 202417 via svnmerge from seanbright1-28/+22
https://origsvn.digium.com/svn/asterisk/trunk ........ r202417 | seanbright | 2009-06-22 12:09:50 -0400 (Mon, 22 Jun 2009) | 4 lines Fix lock usage in cdr_sqlite3_custom to avoid potential crashes during reload. Pointed out by Russell while working on the CEL branch. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@202473 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-21Merged revisions 202262 via svnmerge from russell1-9/+20
https://origsvn.digium.com/svn/asterisk/trunk ........ r202262 | russell | 2009-06-21 11:11:48 -0500 (Sun, 21 Jun 2009) | 2 lines Fix possibility of crashiness during reload in custom fields handling. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@202265 f38db490-d61c-443f-a65b-d21fe96a405b
2009-06-21Merged revisions 202258 via svnmerge from russell1-6/+7
https://origsvn.digium.com/svn/asterisk/trunk ........ r202258 | russell | 2009-06-21 11:00:23 -0500 (Sun, 21 Jun 2009) | 2 lines Standardize return values of load_config() so reload() doesn't report an error on success. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@202261 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-03Merged revisions 186230 via svnmerge from russell1-2/+8
https://origsvn.digium.com/svn/asterisk/trunk ................ r186230 | russell | 2009-04-02 21:03:48 -0500 (Thu, 02 Apr 2009) | 29 lines Merged revisions 186229 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r186229 | russell | 2009-04-02 20:57:44 -0500 (Thu, 02 Apr 2009) | 21 lines Fix a memory leak in cdr_radius. I came across this while doing some testing of my ast_channel_ao2 branch. After running a test overnight that generated over 5 million calls, Asterisk had taken up about 1 GB of my system memory. So, I re-ran the test with MALLOC_DEBUG turned on. However, it showed no leaks in Asterisk during the test, even though Asterisk was still consuming it somehow. Instead, I turned to valgrind, which when run with --leak-check=full, told me exactly where the leak came from, which was from allocations inside the radiusclient-ng library. This explains why MALLOC_DEBUG did not report it. After a bit of analysis, I found that we were leaking a little bit of memory every time a CDR record was passed to cdr_radius. I don't actually have a radius server set up to receive CDR records. However, I always have my development systems compile and install all modules. In addition to making sure there are not build errors across modules, always loading modules helps find bugs like this, too, so it is strongly recommend for all developers. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@186233 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-02Backport 1.6.0 fix to trunk (failsafe if db is not loaded)tilghman1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@179361 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-27If config file is blank, don't load module.tilghman1-1/+1
(Closes issue #14563) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@179161 f38db490-d61c-443f-a65b-d21fe96a405b
2009-01-15remove the PBX_ODBC logic from the configure script, and add GENERIC_ODCB ↵kpfleming2-6/+3
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 this stops modules from being linked against both sets of libraries on systems that have both installed git-svn-id: http://svn.digium.com/svn/asterisk/trunk@168734 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-15When querying for the structure of the CDR table, remove the schema, if ittilghman1-1/+9
exists. (Closes issue #14058) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164349 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-13Merge ast_str_opaque branch (discontinue usage of ast_str internals)tilghman4-153/+148
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@163991 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-29incorporates r159808 from branches/1.4:kpfleming1-1/+1
------------------------------------------------------------------------ r159808 | kpfleming | 2008-11-29 10:58:29 -0600 (Sat, 29 Nov 2008) | 7 lines update dev-mode compiler flags to match the ones used by default on Ubuntu Intrepid, so all developers will see the same warnings and errors since this branch already had some printf format attributes, enable checking for them and tag functions that didn't have them format attributes in a consistent way ------------------------------------------------------------------------ in addition: move some format attributes from main/utils.c to the header files they belong in, and fix up references to the relevant functions based on new compiler warnings git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159818 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Reloading the config and having no changes still initialized some settings ↵twilson1-4/+4
to 0. Initialize settings after doing all of the cfg checks. (closes issue #13942) Reported by: davidw Patches: cdr_diff.txt uploaded by otherwiseguy (license 396) Tested by: davidw git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158374 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20Begin on a crusade to end trailing whitespace!twilson10-61/+61
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@158072 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19Fix checking for CONFIG_STATUS_FILEINVALID so that modules don't crash upon ↵twilson9-8/+18
trying to parse an invalid config git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157818 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-14Allow setting static values in CDRstilghman1-11/+36
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157006 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-04improve configure script to remember the previous value of each dependency ↵kpfleming2-2/+2
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 along the way, change tags used in configure script, menuselect-deps and code for various dependencies to be consistently named git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154151 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-08Keep up with shadow warnings. One day I'll actually enable this in the ↵seanbright1-2/+2
Makefile. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147457 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-06All ODBC parts can now use either unixodbc or iodbc.mvanbaak2-2/+6
This allows for the ODBC parts to work on OpenBSD as well. 99.99% of the work is done by seanbright (bow, bow) and I actually did nothing but test and yell at him that it still didn't work :) Thanks for helping out ! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@146925 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-12Build under dev-modeseanbright1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@142635 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-11Add usegmtime, as per the recent -users list discussion, and also add mytilghman1-5/+24
explanation to the file, since that additional text helps people understand the concept. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@142536 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-03Move some duplicated code into a separate function.seanbright1-9/+11
Also try to do some wacky stuff in the commit message, like: a newline \n a bell \a a tab \t a format specification %p That is all. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140821 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-27Oopstilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140355 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-24Memory leaktilghman1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@139707 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-24Eliminate open coding of ast_strtilghman1-47/+55
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@139704 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-14Fix memory leak in cdr_sqlite3_custom.seanbright1-9/+9
(closes issue #13304) Reported by: eliel Patches: sqlite.patch uploaded by eliel (license 64) (Slightly modified by me) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137933 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-14If we detect that we are no longer connected, try to reconnect a few timesseanbright1-4/+22
before giving up. This relies on the timeout settings in the freetds.conf file and, unfortunately, on a recent version of FreeTDS (0.82 or newer). I either need to change the current execs to be non-blocking (which I do not want to do) or we have to force people to run with the latest and greatest of FreeTDS. I'm on the fence... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137780 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-13Use the ast_vasprintf macro instead of vasprintf directly.seanbright1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137403 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-11Log the userfield CDR variable like the other CDR backends, assuming theseanbright1-72/+94
column is actually there. If it's not, we still log everything else as before. (closes issue #13281) Reported by: falves11 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137203 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07Fix runtime symbol errortilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136406 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-07More from the resolve-shadow-warnings branch. This time the cdr/ directory.seanbright5-39/+39
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136300 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-18Fix magic Revision keywords in hashtab.c and change cdr_radius.c to use bbryant1-1/+1
the same keyword as the other files (patch by eliel). (closes issue #13104) Reported by: eliel Patches: revision.patch uploaded by eliel (license 64) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@132050 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-02Fix a bug I noticed while doing the previous mergeseanbright1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@127398 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-30Cast a few more strings to char *, so that we can compile cleanly againstseanbright1-4/+4
FreeTDS 0.60. Update the docs to reflect that we can now compile and run against all modern releases of FreeTDS (0.60 through 0.82) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126513 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-29This was bogus, need to find a better way.seanbright1-19/+19
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126319 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-29While we're at it, escape all the columns in our TDS queries as well. Doubleseanbright1-19/+19
quotes seems to be more standard than square brackets (Sybase and SQL Server both support them). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126312 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-29Quote column names when inserting CDRs into postgres to avoid conflictsseanbright1-4/+4
with reserved words. (closes issue #12947) Reported by: panolex git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126274 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-28Merge in changes from my cdr-tds-conversion branch. This changes the internalseanbright1-196/+180
implementation from using the volatile libtds, to using the db-lib front end. The unintended side effect of this is that we support (at least) versions 0.62 through 0.82 of the FreeTDS distribution without any #ifdef ugliness. (closes issue #12844) Reported by: jcollie git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126226 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-17This solves a crash in the cdr_tds module on 'stop gracefully', for ↵murf1-3/+9
situations where 'settings' is not set to a pointer git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123446 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Last commit for a bit, minor cleanups and move the lock initialization.seanbright1-7/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123076 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Convert to use stringfields. Still some more work to do on config load/reload.seanbright1-94/+107
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123044 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Remove some unused variablesseanbright1-5/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123041 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16Coding guidelines stuff only.seanbright1-24/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123009 f38db490-d61c-443f-a65b-d21fe96a405b