dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

70 Commits

Author SHA1 Message Date
tilghman d14ce4c739 Bug 6417 - Allow retrieval of raw CDR values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 23:12:41 +00:00
kpfleming ea305ad521 more memory allocation wrapper conversion
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10141 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 01:48:54 +00:00
tilghman e1bdf6e7ef Bug 4377 - Initial round of loader changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10084 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 23:08:06 +00:00
kpfleming fa4d9273e4 Merged revisions 9493,9528 via svnmerge from
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-11 15:27:38 +00:00
kpfleming e04e114ef1 Merged revisions 9404 via svnmerge from
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-10 20:40:00 +00:00
kpfleming 21d21f89c0 use string fields for some stuff in ast_channel
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-02-01 23:05:28 +00:00
russell 9242f99784 doxygen tweak
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7778 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-04 12:11:11 +00:00
russell ab6566173e update doxygen docs to specify authors
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30 21:18:06 +00:00
tilghman c27a8e3dba Merged revisions 7521 via svnmerge from
/branches/1.2


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7522 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-19 05:42:55 +00:00
kpfleming 24c1e3c222 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:24:39 +00:00
russell 19ef63026b remove duplicate list of cdr variable names (issue #5865)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7217 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29 05:45:35 +00:00
russell 8acbf04043 finish merging doxygen updates from issue #5605
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7096 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-14 19:00:38 +00:00
russell 28eb6d3482 Convert some built-in applications to use new args parsing macros.
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-11-06 21:00:35 +00:00
kpfleming f67cec6dcc add 'ast_cond_t' type for pthread condition variables, and appropriate API wrappers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6877 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-28 16:35:43 +00:00
markster 1d303db42e Fix CDR crash (bug #5525 and many others)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6869 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-27 21:57:53 +00:00
russell 1168964aa4 change ast_strlen_zero to also check for the string to be defined
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 18:54:24 +00:00
russell 2c3b3edc86 Doxygen documentation update from oej (issue #5505)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24 20:12:06 +00:00
kpfleming 95fe2b8fd4 update MANY more files with proper copyright/license info (thanks Ian!)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14 20:46:50 +00:00
kpfleming 23a2111d40 eliminate compiler warnings when DEBUG_THREADS is enabled
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6313 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-09 15:37:33 +00:00
kpfleming 757aadd53d use CDR API calls instead of re-implementing them (bug #4726)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6213 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25 22:56:18 +00:00
kpfleming ff15e0fa53 add a library of timeval manipulation functions, and change a large number 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-15 23:00:47 +00:00
kpfleming 4f868cef84 ensure globals are all static
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6061 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-08 21:09:38 +00:00
russell 92832d9f32 super crazy ast_copy_string conversion madness!
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6056 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-07 23:46:10 +00:00
kpfleming 09ab7d67e4 make CLI output use singular/plural when appropriate (bug #4654)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6047 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-07 22:32:20 +00:00
kpfleming ec0590611f use ast_build_string() to build strings into buffers, and general cleanup of 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-20 23:37:01 +00:00
kpfleming 4e295a89c2 minor fixes to conform to the newly-posted coding guideline :-)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5921 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-17 12:51:03 +00:00
markster a938fdd1eb Fix reset cdr (bug #4531)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5920 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-17 00:37:43 +00:00
kpfleming 09f5c8d4e6 ensure proper variables are returned from CDR function (bug #4521)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5916 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-15 15:01:40 +00:00
kpfleming 3ba563757d don't use pthread_mutex_lock
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-14 14:45:51 +00:00
kpfleming 6f0f46299c more file version tags
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 22:12:19 +00:00
kpfleming b2cbb6a75d remove experimental module version tags
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-06 20:27:51 +00:00
kpfleming 46d0533b99 support configurable batch posting of CDRs (off by default) (bug #3883)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5823 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-03 01:42:31 +00:00
markster ea6f06e9fb Use defined AST_MAX_ACCOUNT_CODE (bug #4350)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5765 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-25 17:18:05 +00:00
kpfleming 85466027b8 various fixes:
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-15 02:42:59 +00:00
anthm d4dd060a57 expose function execution routines and warn about trying to set a read-only cdr var
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5589 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-05 15:07:49 +00:00
kpfleming d6e1341f9b phase 1 of header include cleanup (bug #4067)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5498 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-22 13:11:34 +00:00
kpfleming 31e8dcf4fe use double-quotes instead of angle-brackets for non-system include files (bug #4058)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21 06:02:45 +00:00
russell 9201aa9db0 add missing newlines, fix misspelling of nonexistent (bug #4027)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5467 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-13 23:33:47 +00:00
markster 25212ca9e8 Allow functions to be written to (bug #2278, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5296 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-29 06:16:49 +00:00
markster 6898f073de Merge anthm's CDR updates (bug #3595)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5068 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-23 22:48:47 +00:00
russell 7288b1ced0 update copyright headers for 2005
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21 07:06:25 +00:00
twisted f2eedf346b Misc Grammer/formatting fixes - Thanks Corydon76! (bug #3361)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4827 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-17 22:53:36 +00:00
markster c47ebe99cf More flagification, courtesy drumkilla (bug #3280)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4748 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-10 14:46:59 +00:00
anthm cc209debe2 rollback stupid code
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4109 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-27 03:33:14 +00:00
anthm 5646726039 This patch adds a new api call:
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-22 20:59:38 +00:00
markster f5b9309f83 Correct CDR's for supervised transfer (bug #1595)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3902 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-03 19:59:46 +00:00
markster cfe24c16a1 Major PBX revamps (including labels, update examples)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3886 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-03 04:19:59 +00:00
markster 6868babd22 Huge callerid rework (might break H.323, others)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3874 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-02 00:58:31 +00:00
anthm 6ffda996af add app_forkcdr
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3832 f38db490-d61c-443f-a65b-d21fe96a405b
2004-09-24 21:33:48 +00:00
markster d1fab10737 Handle macros in the CDR properly (bug #2414)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3758 f38db490-d61c-443f-a65b-d21fe96a405b
2004-09-10 13:40:56 +00:00