aboutsummaryrefslogtreecommitdiffstats
path: root/cdr
AgeCommit message (Collapse)AuthorFilesLines
2009-03-02Merged revisions 179361 via svnmerge from tilghman1-0/+5
https://origsvn.digium.com/svn/asterisk/trunk ........ r179361 | tilghman | 2009-03-02 11:18:48 -0600 (Mon, 02 Mar 2009) | 2 lines Backport 1.6.0 fix to trunk (failsafe if db is not loaded) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@179362 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-27Merged revisions 179161 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ........ r179161 | tilghman | 2009-02-27 15:32:13 -0600 (Fri, 27 Feb 2009) | 3 lines If config file is blank, don't load module. (Closes issue #14563) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@179163 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-15Merged revisions 164349 via svnmerge from tilghman1-1/+9
https://origsvn.digium.com/svn/asterisk/trunk ........ r164349 | tilghman | 2008-12-15 12:09:58 -0600 (Mon, 15 Dec 2008) | 4 lines When querying for the structure of the CDR table, remove the schema, if it exists. (Closes issue #14058) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@164355 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-29Merged revisions 159818 via svnmerge from kpfleming1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ........ r159818 | kpfleming | 2008-11-29 11:57:39 -0600 (Sat, 29 Nov 2008) | 18 lines incorporates r159808 from branches/1.4: ------------------------------------------------------------------------ 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/branches/1.6.1@159851 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-21Merged revisions 158374 via svnmerge from twilson1-4/+4
https://origsvn.digium.com/svn/asterisk/trunk ........ r158374 | twilson | 2008-11-21 11:08:16 -0600 (Fri, 21 Nov 2008) | 8 lines Reloading the config and having no changes still initialized some settings 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/branches/1.6.1@158377 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-20Merged revisions 158072 via svnmerge from twilson10-62/+62
https://origsvn.digium.com/svn/asterisk/trunk ........ r158072 | twilson | 2008-11-20 11:48:58 -0600 (Thu, 20 Nov 2008) | 2 lines Begin on a crusade to end trailing whitespace! ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@158135 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-24Merged revisions 139707 via svnmerge from tilghman1-1/+17
https://origsvn.digium.com/svn/asterisk/trunk ........ r139707 | tilghman | 2008-08-24 11:26:48 -0500 (Sun, 24 Aug 2008) | 2 lines Memory leak ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@139709 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-14Merged revisions 137933 via svnmerge from seanbright1-9/+9
https://origsvn.digium.com/svn/asterisk/trunk ........ r137933 | seanbright | 2008-08-14 14:47:28 -0400 (Thu, 14 Aug 2008) | 8 lines Fix memory leak in cdr_sqlite3_custom. (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/branches/1.6.1@137935 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-14Merged revisions 137780 via svnmerge from seanbright1-4/+22
https://origsvn.digium.com/svn/asterisk/trunk ........ r137780 | seanbright | 2008-08-14 11:03:03 -0400 (Thu, 14 Aug 2008) | 8 lines If we detect that we are no longer connected, try to reconnect a few times 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/branches/1.6.1@137782 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
2008-06-12Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. ↵jpeeler1-1/+1
Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122234 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15Don't unload config on reload, when config has not changed.tilghman1-1/+1
(Closes issue #12652) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116631 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-10Ensure that "calldate" is acceptable for a column name.tilghman1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115596 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-20Minor logging cleanupsseanbright1-29/+29
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114314 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-15Oops, buffer wasn't long enough for querytilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114152 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-11If any field is not null, but has no default, then it must be set or the ↵tilghman1-3/+26
insert will fail. (Closes issue #12285) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114090 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-09Merged revisions 113874 via svnmerge from tilghman1-3/+13
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r113874 | tilghman | 2008-04-09 13:57:33 -0500 (Wed, 09 Apr 2008) | 4 lines If the [csv] section does not exist in cdr.conf, then an unload/load sequence is needed to correct the problem. Track whether the load succeeded with a variable, so we can fix this with a simple reload event, instead. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@113875 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-25Merged revisions 110779 via svnmerge from qwell1-9/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r110779 | qwell | 2008-03-25 17:51:17 -0500 (Tue, 25 Mar 2008) | 6 lines Make file access in cdr_custom similar to cdr_csv. Fixes issue #12268. Patch borrowed from r82344 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@110780 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-18Go through and fix a bunch of places where character strings were being ↵twilson1-1/+1
interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not actual problems, per se. I also added format attributes to any printf wrapper functions I found that didn't have them. -Wsecurity and -Wmissing-format-attribute added to --enable-dev-mode. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@109447 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11Convert prepare_and_execute to direct_execute for speedtilghman1-11/+11
(closes issue #11935) Reported by: falves11 Patches: 20080208__bug11935.diff.txt uploaded by Corydon76 (license 14) Tested by: falves11, Corydon76 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107722 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11Whitespace changes onlytilghman1-8/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@107551 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Convert to use ast_strtilghman1-59/+47
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105411 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-25Permit additional CDR columns to be saved in Postgres. Note that thesetilghman1-49/+220
changes are backward-compatible, so no changes to UPGRADE.txt are necessary. (closes issue #9279) Reported by: rottenroddy Patches: 20080125__bug9279.diff.txt uploaded by Corydon76 (license 14) Tested by: Corydon76 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104101 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-17Change the way the new filter feature works, by allowing it to be a column NOTtilghman1-16/+31
logged into the database. This will allow more granularity of a decision evaluated in the dialplan, then takes effect when posting the CDR. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98987 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-15Add the "filter" keywordtilghman1-3/+31
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98947 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11Port Nick Gorham's timestamp patch to adaptive_odbc, tootilghman1-6/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98269 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11Commit Nick Gorham's suggestion for timestamp fixtilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98268 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-10Fix problem with timestr going out of scopetilghman1-20/+19
(Closes issue #11726, closes issue #11731) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97805 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-18remove unnecessary (char *) casts for ast_config_AST_* variables.rizzo1-1/+1
There are some left in the .flex files, left to the maintainer... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93582 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-17Merged revisions 93180 via svnmerge from kpfleming1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r93180 | kpfleming | 2007-12-16 22:44:51 -0800 (Sun, 16 Dec 2007) | 23 lines In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html, rizzo brought up some issues related to the way that the metadata required for menuselect and the rest of the build system is extracted from the source files. Since I had a few hours to kill on an airplane today, I decided to improve this situation... so now the system caches the extracted metadata and uses it to build the menuselect 'tree' as much as it can. The result of this is that when a single source file is changed, only the metadata for that file needs to be extracted again, and the rest is used from the cache files. I also reduced the number of forked processes required to do the metadata extraction; it was actually possible to do most of what we needed in the Makefiles themselves without using any shell scripts at all! On my laptop, these changes resulted in an 80% decrease in the time required for the 'menuselect.makeopts' automatic check to occur after editing a single source file. While doing this work I also cleaned up a few minor things in the Makefiles, adding a check for 'awk' to the configure script and changed all remaining places we use 'grep' or 'awk' to use the ones found by the configure script, and changed the 'prep_tarball' script to build the menuselect metadata so that tarballs of Asterisk will include it and won't require the user to wait while it is extracted after unpacking. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@93184 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-13Don't use backslash as an escape character, unless it really is an escape ↵tilghman1-15/+16
character. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92779 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-10Put into Makefile.moddir_rules the common instructions used torizzo1-9/+1
generate loadable and embedded module lists. Individual Makefiles now are a lot simpler, possibly as simple as this: -include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps MODULE_PREFIX=cdr_ all: _all include $(ASTTOPDIR)/Makefile.moddir_rules and also more flexible because in a single directory we can combine various types of modules (app_, cdr_, func_, ... ) by simply listing them in the MODULE_PREFIX variable. The individual Makefiles can also create list of modules to be excluded by listing them in the variablel MODULE_EXCLUDE (see an example in channels/Makefile). With this change it becomes trivial to integrate a directory with locally created/modified sources into the main build. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92082 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-09normalize subdirs' Makefile by using ASTTOPDIR and not .. to referencerizzo1-1/+1
the top level directory. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@92022 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06Fix a problem with quoting in sqlite3 cdr module..qwell1-72/+174
Closes issue #11070, patch by seanbright. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91598 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-06Merged revisions 90166,90736,90753 via svnmerge from tilghman1-11/+16
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r90166 | tilghman | 2007-11-29 13:48:10 -0600 (Thu, 29 Nov 2007) | 3 lines Properly escape cdr->src and cdr->dst and ensure we use thread-safe escaping (Fixes AST-2007-026) ........ r90736 | tilghman | 2007-12-03 17:23:55 -0600 (Mon, 03 Dec 2007) | 5 lines If both dbhost and dbsock were not set, a NULL deref could result Reported by: xrg Patch by: tilghman (Closes issue #11387) ........ r90753 | tilghman | 2007-12-03 17:50:51 -0600 (Mon, 03 Dec 2007) | 5 lines Solaris requires the inclusion of sys/loadavg.h for getloadavg(). Reported by: snuffy Patch by: snuffy,tilghman (Closes issue #11430) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@91561 f38db490-d61c-443f-a65b-d21fe96a405b