aboutsummaryrefslogtreecommitdiffstats
path: root/cdr.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-1175/+0
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-14Fix for uninitialized workspace in ast_cdr_getvar, pointed out by sergeefile1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39731 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-5/+4
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30add a command-line flag and option to force forking, even with -v or -dkpfleming1-1/+1
rename a flag to have the proper name git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23675 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21Replace three replicas of the same code with a function.rizzo1-46/+24
Consider NULL and "" as equivalent in cid strings. On passing, also remove an extra data copy. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21786 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14This rather large commit changes the way modules are loaded. rizzo1-1/+1
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: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06+ create function cdr_get_tv to replace several duplicatedrizzo1-146/+78
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: http://svn.digium.com/svn/asterisk/trunk@17878 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-26conversions to S_OR (issue #6803)russell1-12/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15022 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-22Merged revisions 14234 via svnmerge from file1-2/+4
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: http://svn.digium.com/svn/asterisk/trunk@14235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-15Furthermore, set the disposition to FAILED if the CDR was never even startedrussell1-2/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13160 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-15don't calculate a duration if the CDR wasn't started, as it will result in arussell1-3/+4
totally bogus value. Thanks, Luigi! :) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13132 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-15remove calculations that always evaluate to zero, thanks Luigi!russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12995 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14add an option to cdr.conf that enables ending CDRs before executingrussell1-5/+8
the "h" extension as opposed to afterwards (issue #6193) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12896 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-01Merged revisions 11503 via svnmerge from tilghman1-4/+4
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: http://svn.digium.com/svn/asterisk/trunk@11504 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23Bug 6417 - Allow retrieval of raw CDR valuestilghman1-19/+39
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15more memory allocation wrapper conversionkpfleming1-19/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10141 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14Bug 4377 - Initial round of loader changestilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10084 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11Merged revisions 9493,9528 via svnmerge from kpfleming1-2/+1
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: http://svn.digium.com/svn/asterisk/trunk@9529 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-10Merged revisions 9404 via svnmerge from kpfleming1-3/+1
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: http://svn.digium.com/svn/asterisk/trunk@9405 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01use string fields for some stuff in ast_channelkpfleming1-2/+3
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: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-04doxygen tweakrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7778 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30update doxygen docs to specify authorsrussell1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-19Merged revisions 7521 via svnmerge fromtilghman1-3/+6
/branches/1.2 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7522 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29remove duplicate list of cdr variable names (issue #5865)russell1-31/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7217 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-14finish merging doxygen updates from issue #5605russell1-9/+21
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7096 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06Convert some built-in applications to use new args parsing macros.russell1-5/+7
Change ast_cdr_reset to take a pointer to an ast_flags structure instead of an integer for flags. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6987 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-28add 'ast_cond_t' type for pthread condition variables, and appropriate API ↵kpfleming1-5/+5
wrappers git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6877 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-27Fix CDR crash (bug #5525 and many others)markster1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6869 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26change ast_strlen_zero to also check for the string to be definedrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-4/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-09eliminate compiler warnings when DEBUG_THREADS is enabledkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6313 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25use CDR API calls instead of re-implementing them (bug #4726)kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6213 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15add a library of timeval manipulation functions, and change a large number ↵kpfleming1-15/+13
of usses to use the new functions (bug #4504) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-08ensure globals are all statickpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6061 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-07super crazy ast_copy_string conversion madness!russell1-6/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6056 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-07make CLI output use singular/plural when appropriate (bug #4654)kpfleming1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6047 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-20use ast_build_string() to build strings into buffers, and general cleanup of ↵kpfleming1-36/+23
variable serializing functions used by 'show channel' (bug #4558) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5944 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-17minor fixes to conform to the newly-posted coding guideline :-)kpfleming1-8/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5921 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-17Fix reset cdr (bug #4531)markster1-3/+20
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5920 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-15ensure proper variables are returned from CDR function (bug #4521)kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5916 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-14don't use pthread_mutex_lockkpfleming1-4/+4
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: http://svn.digium.com/svn/asterisk/trunk@5906 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06remove experimental module version tagskpfleming1-0/+4
add per-file revision tags and 'show version files' CLI command git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-03support configurable batch posting of CDRs (off by default) (bug #3883)kpfleming1-4/+437
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5823 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-25Use defined AST_MAX_ACCOUNT_CODE (bug #4350)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5765 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-15various fixes:kpfleming1-206/+183
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: http://svn.digium.com/svn/asterisk/trunk@5659 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-05expose function execution routines and warn about trying to set a read-only ↵anthm1-0/+12
cdr var git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5589 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-22phase 1 of header include cleanup (bug #4067)kpfleming1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5498 f38db490-d61c-443f-a65b-d21fe96a405b