aboutsummaryrefslogtreecommitdiffstats
path: root/cdr.c
AgeCommit message (Collapse)AuthorFilesLines
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.2.0-beta1@7221 ↵kpfleming1-0/+0
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
2005-04-21use double-quotes instead of angle-brackets for non-system include files ↵kpfleming1-8/+8
(bug #4058) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-13add missing newlines, fix misspelling of nonexistent (bug #4027)russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5467 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-29Allow functions to be written to (bug #2278, with mods)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5296 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-23Merge anthm's CDR updates (bug #3595)markster1-9/+266
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5068 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21update copyright headers for 2005russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-17Misc Grammer/formatting fixes - Thanks Corydon76! (bug #3361)twisted1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4827 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-10More flagification, courtesy drumkilla (bug #3280)markster1-24/+25
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4748 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-27rollback stupid codeanthm1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4109 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-22This patch adds a new api call:anthm1-0/+1
int pbx_builtin_serialize_variables(struct ast_channel *chan, char *buf, size_t size); takes a chan and a char * 'buf' assumed to be 'size' bytes. The function fills 'buf' with a <CR>('\n') delimited list of name,value pairs in turn delimeted by '=' eg: SIPCALLID=f30e4e72-f715193f@1.2.3.4 SIPUSERAGENT=Sipura/SPA2000-2.0.6(c) SIPDOMAIN=1.2.3.4 It returns the acutal number of variables encountered. If the attempt to fill 'buf' goes beyond 'size' bytes the operation is halted and the incomplete string is returned as is. To demonstrate a use for this, the "show channel <channame>" command has been retrofitted with the call so it also dumps all of the chan's vars *CLI> show channel Zap/5-1 -- General -- Name: Zap/5-1 Type: Zap UniqueID: 1098480666.17 Caller ID: 4999 Caller ID Name: Tony DNID Digits: (N/A) State: Up (6) Rings: 0 NativeFormat: 68 WriteFormat: 4 ReadFormat: 4 1st File Descriptor: 22 Frames in: 41969 Frames out: 83240 Time to Hangup: 0 Elapsed Time: 0h13m54s -- PBX -- Context: phone1 Extension: 4994 Priority: 2 Call Group: 2 Pickup Group: 2 Application: Dial Data: IAX2/ulaw@cube1/00010014994@croip Stack: 0 Blocking in: ast_waitfor_nandfds Variables: DIALEDPEERNUMBER=ulaw@cube1/00010014994@croip DIALEDPEERNAME=IAX2/cube1/3 CALLTYPE=SPEECH tempvar=tempval git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4051 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-03Correct CDR's for supervised transfer (bug #1595)markster1-3/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3902 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-03Major PBX revamps (including labels, update examples)markster1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3886 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-02Huge callerid rework (might break H.323, others)markster1-41/+56
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3874 f38db490-d61c-443f-a65b-d21fe96a405b
2004-09-24add app_forkcdranthm1-13/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3832 f38db490-d61c-443f-a65b-d21fe96a405b
2004-09-10Handle macros in the CDR properly (bug #2414)markster1-4/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3758 f38db490-d61c-443f-a65b-d21fe96a405b
2004-07-09More strcpy / snprintf as part of rgagnon's audit (bug #2004)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3410 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-28Add new built-in app 'SetAMAFlags'jeremy1-0/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3328 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22Misc formatting cleanupscitats1-4/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3279 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22Remove pthread.h from source. We should be using asterisk/lock.h everywhere ↵citats1-1/+0
instead (except in asterisk/lock.h). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3276 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-20Merge (and cleanup) anthm's CDR changesmarkster1-98/+128
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3248 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-20Allow CDR's to be linked and work on the linked listmarkster1-19/+40
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3247 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-09Merge FreeBSD locking fixes (bug #1411)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3176 f38db490-d61c-443f-a65b-d21fe96a405b
2004-05-06Use ast_strlen_zero in cdr.ccitats1-13/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2906 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-21Log that we are unregistering cdr module (bug 1460)citats1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2729 f38db490-d61c-443f-a65b-d21fe96a405b
2004-01-11Add application to log user data to the CDRsjeremy1-0/+21
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1926 f38db490-d61c-443f-a65b-d21fe96a405b
2003-09-17Don't complain that wait4 is unkown and make sure that we won't segfault if ↵martinp1-36/+36
chan->cdr is NULL git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1522 f38db490-d61c-443f-a65b-d21fe96a405b
2003-09-12Add distinguishing between BUSY and FAILURE for outgoing spool calls. Always ↵martinp1-2/+44
save CDR record (even if the call fails). If the call fails try to see if there is "failed" extension in the specified context (only if you use context,extension,priority syntax) and execute it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1499 f38db490-d61c-443f-a65b-d21fe96a405b
2003-08-13Totally revamp thread debugging to support locating and removing deadlocksmarkster1-9/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1310 f38db490-d61c-443f-a65b-d21fe96a405b
2003-05-30Add unique identifiermarkster1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1064 f38db490-d61c-443f-a65b-d21fe96a405b
2003-03-30Merge hint patch, add new variables, and misc. PBX cleanupsmarkster1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@722 f38db490-d61c-443f-a65b-d21fe96a405b
2003-02-02Version 0.3.0 from FTPmarkster1-0/+70
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@598 f38db490-d61c-443f-a65b-d21fe96a405b
2002-07-29Version 0.2.0 from FTPmarkster1-2/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@493 f38db490-d61c-443f-a65b-d21fe96a405b