summaryrefslogtreecommitdiff
path: root/cdr.c
AgeCommit message (Collapse)Author
2006-04-30add a command-line flag and option to force forking, even with -v or -dKevin P. Fleming
rename a flag to have the proper name git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23675 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-21Replace three replicas of the same code with a function.Luigi Rizzo
Consider NULL and "" as equivalent in cid strings. On passing, also remove an extra data copy. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@21786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-14This rather large commit changes the way modules are loaded. Luigi Rizzo
As partly documented in loader.c and include/asterisk/module.h, modules are now expected to return all of their methods and flags into a structure 'mod_data', and are normally loaded with RTLD_NOW | RTLD_LOCAL, so symbols are resolved immediately and conflicts should be less likely. Only in a small number of cases (res_*, typically) modules are loaded RTLD_GLOBAL, so they can export symbols. The core of the change is only the two files loader.c and include/asterisk/module.h, all the rest is simply adaptation of the existing modules to the new API, a rather mechanical (but believe me, time and finger-consuming!) process whose detail you can figure out by svn diff'ing any single module. Expect some minor compilation issue after this change, please report it on mantis http://bugs.digium.com/view.php?id=6968 so we collect all the feedback in one place. I am just sorry that this change missed SVN version number 20000! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-06+ create function cdr_get_tv to replace several duplicatedLuigi Rizzo
instances of the same code to generate a time entry in raw or localtime format; + create functions check_post() and check_start() to check whether a record has been already posted or started, replacing several duplicated instances of the same code; + localize some variables; + normalize some for() loops Especially the former two changes should make the code a lot more consistent and easier to read. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@17878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-26conversions to S_OR (issue #6803)Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15022 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-22Merged revisions 14234 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r14234 | file | 2006-03-22 17:38:32 -0400 (Wed, 22 Mar 2006) | 2 lines Issue #5918 - Disposition showing FAILED even though call is answered successfully (Reported by tracinet) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-15Furthermore, set the disposition to FAILED if the CDR was never even startedRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13160 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-15don't calculate a duration if the CDR wasn't started, as it will result in aRussell Bryant
totally bogus value. Thanks, Luigi! :) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13132 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-15remove calculations that always evaluate to zero, thanks Luigi!Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12995 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14add an option to cdr.conf that enables ending CDRs before executingRussell Bryant
the "h" extension as opposed to afterwards (issue #6193) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-01Merged revisions 11503 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r11503 | tilghman | 2006-03-01 11:41:52 -0600 (Wed, 01 Mar 2006) | 2 lines Bug 6615 - Fix 64bit conversion errors by using a long int ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@11504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-23Bug 6417 - Allow retrieval of raw CDR valuesTilghman Lesher
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-15more memory allocation wrapper conversionKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-14Bug 4377 - Initial round of loader changesTilghman Lesher
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-11Merged revisions 9493,9528 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r9493 | bweschke | 2006-02-11 00:29:34 -0600 (Sat, 11 Feb 2006) | 3 lines kpfleming's fix from r9472 backported to 1.2 ........ r9528 | kpfleming | 2006-02-11 09:22:55 -0600 (Sat, 11 Feb 2006) | 2 lines clean up my mess from thread-starting change ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-10Merged revisions 9404 via svnmerge from Kevin P. Fleming
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r9404 | kpfleming | 2006-02-10 14:38:59 -0600 (Fri, 10 Feb 2006) | 2 lines don't create monitor threads in detached mode, when we need to be able to pthread_join() them later if the module is unloaded (solve crash-on-unload problem for these channel modules) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-01use string fields for some stuff in ast_channelKevin P. Fleming
const-ify some more APIs remove 'type' field from ast_channel, in favor of the one in the channel's tech structure allow string field module users to specify the 'chunk size' for pool allocations update chan_alsa to be compatible with recent const-ification patches git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04doxygen tweakRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-30update doxygen docs to specify authorsRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-19Merged revisions 7521 via svnmerge fromTilghman Lesher
/branches/1.2 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7522 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29remove extraneous svn:executable propertiesKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29remove duplicate list of cdr variable names (issue #5865)Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-14finish merging doxygen updates from issue #5605Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-06Convert some built-in applications to use new args parsing macros.Russell Bryant
Change ast_cdr_reset to take a pointer to an ast_flags structure instead of an integer for flags. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-28add 'ast_cond_t' type for pthread condition variables, and appropriate API ↵Kevin P. Fleming
wrappers git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-27Fix CDR crash (bug #5525 and many others)Mark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-26change ast_strlen_zero to also check for the string to be definedRussell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-24Doxygen documentation update from oej (issue #5505)Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-09eliminate compiler warnings when DEBUG_THREADS is enabledKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25use CDR API calls instead of re-implementing them (bug #4726)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6213 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15add a library of timeval manipulation functions, and change a large number ↵Kevin P. Fleming
of usses to use the new functions (bug #4504) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-08ensure globals are all staticKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6061 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07super crazy ast_copy_string conversion madness!Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-07make CLI output use singular/plural when appropriate (bug #4654)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-20use ast_build_string() to build strings into buffers, and general cleanup of ↵Kevin P. Fleming
variable serializing functions used by 'show channel' (bug #4558) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17minor fixes to conform to the newly-posted coding guideline :-)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-17Fix reset cdr (bug #4531)Mark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-15ensure proper variables are returned from CDR function (bug #4521)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5916 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-14don't use pthread_mutex_lockKevin P. Fleming
don't double-include pthread.h in utils.h, which can cause the pthread_mutex_lock warning to not be generated on some systems git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06more file version tagsKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06remove experimental module version tagsKevin P. Fleming
add per-file revision tags and 'show version files' CLI command git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03support configurable batch posting of CDRs (off by default) (bug #3883)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-25Use defined AST_MAX_ACCOUNT_CODE (bug #4350)Mark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15various fixes:Kevin P. Fleming
use linked list macros for managing backend list (inspired by bug #4258) use ast_copy_string instead of strncpy when appropriate minor fixes and formatting cleanup add AST_LIST_HEAD_STATIC and AST_LIST_REMOVE_CURRENT macros git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05expose function execution routines and warn about trying to set a read-only ↵Anthony Minessale II
cdr var git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-22phase 1 of header include cleanup (bug #4067)Kevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-21use double-quotes instead of angle-brackets for non-system include files ↵Kevin P. Fleming
(bug #4058) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-13add missing newlines, fix misspelling of nonexistent (bug #4027)Russell Bryant
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29Allow functions to be written to (bug #2278, with mods)Mark Spencer
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5296 65c4cc65-6c06-0410-ace0-fbb531ad65f3