dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

94 Commits

Author SHA1 Message Date
russell fcdce7ed63 eliminate warning on older versions of gcc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9629 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 20:54:21 +00:00
tilghman d36e97804d Bug 6322 - Implementation of SHA1 in Asterisk (plus dialplan function to use it)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9138 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-03 22:37:29 +00:00
kpfleming de2fd6aebf string field manager improvements:
use multiple memory blocks, instead of realloc(), ensuring that field pointers will never become invalid or change
don't run vs(n)printf twice when doing a field build unless required


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8697 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-26 04:00:05 +00:00
oej a648f2869e Declare missing randomlock
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7936 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-10 08:33:52 +00:00
tilghman 603f6f0ce3 Bug 5961 - new RAND() function
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7920 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-10 00:55:45 +00:00
kpfleming dd5fd06f56 ensure that string field 'build' operation only evaluates arguments one time
fix some minor documentation errors
return proper type from string field space allocator


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7841 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-06 19:19:17 +00:00
kpfleming b3aeb7784d add memory-pool based string field management for structures
convert chan_sip sip_pvt and sip_registry structures to use string fields
add 'const' qualifiers to a few API calls that don't modify their input strings
add an asprintf() wrapper to astmm


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7797 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-04 21:54:09 +00:00
russell cc20111b72 - move the string join() function to utils.c since it is used in both cli.c and res_agi.c
- reimplement ast_join to be of linear effieciency instead of quadratic
- remove some useless checks for "if (e)"
- reorder checks for strings starting with '_' to avoid a useless call to ast_join()
- check array bounds when parsing arguments to AGI
(issue #5868)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7556 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-20 20:20:04 +00:00
kpfleming ffdea154ca Merged revisions 7468 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7468 | kpfleming | 2005-12-13 10:06:27 -0600 (Tue, 13 Dec 2005) | 2 lines

correct broken math in tvfix() for timestamp values over one million

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7469 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-13 16:07:19 +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
kpfleming ccc2fc8a31 issue #5569 minus lock.h changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7024 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 04:13:19 +00:00
kpfleming 4d4023555b issue #4678
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01 21:53:30 +00:00
kpfleming 013b837832 issue #5549
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6930 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01 20:26:29 +00:00
kpfleming 1427e43aa1 provide an alternate getloadavg implementation and a fallback for systems that don't have it at all (issue #5549 with minor mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6903 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31 21:25:21 +00:00
kpfleming 5493d36ce9 silence compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6898 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-31 15:21:12 +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 79bc9ed2e9 remove duplicate header
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6859 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 17:33:29 +00:00
russell bb65d2e30a more doxygenification (issue #5513)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6852 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 13:03:17 +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
markster c29b82874d Fix segfault in CVS head (sorry about that)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6839 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-21 14:09:03 +00:00
markster a2447d37bb Be sure to avoid octal interpretations of IP's (bug #5477)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6838 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-21 04:09:23 +00:00
markster 6b22b400d4 More utility cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6798 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-16 03:10:33 +00:00
kpfleming 997e6dd0d5 add ast_build_string_va(), which accepts a varargs list directly
ensure the _entire_ manager_event() output is either queued or sent via ast_carefulwrite()


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6708 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-01 15:41:27 +00:00
kpfleming 5ea0115905 ensure scheduling priority is inherited into new threads (issue #5293)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6692 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-29 04:08:18 +00:00
russell b6f867a38a move process_quotes_and_slashes to utils.c since it is used by both pbx_ael and pbx_config
clean up some formatting
remove some commented out reference code
move unload_module in pbx_ael down to be with the rest of the standard module functions


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6630 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-23 02:57:14 +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 96c9ed9488 don't double define our own string functions on platforms that don't have them (issue #5169)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6587 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14 02:30:33 +00:00
russell d976cebb0c fix a couple of warnings on osx
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6500 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-02 11:39:24 +00:00
kpfleming e66e742eeb encode/decode URIs in 'pedantic' mode (issue #3923)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6441 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-29 22:39:39 +00:00
kpfleming 9d54047145 make the warning message be LOG_WARNING (issue #4960)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6388 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23 17:55:59 +00:00
russell f849d31d29 more fixes for gcc4 warnings ...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6298 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-07 06:47:20 +00:00
markster 54e45b1b09 Fix solaris vasprintf (don't free the memory, duh) (bug #4890)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6271 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-03 17:36:46 +00:00
markster 2cba429655 Fix vasnprintf emulation (bug #4882)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6258 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-03 02:07:25 +00:00
kpfleming 329b86c53d move strtoq into new string files (bug #4740)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6171 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-20 00:13:15 +00:00
russell 8737a4e465 restore warning about negative timestamps now that it is fixed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6161 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-19 15:32:03 +00:00
russell e8541d07e4 suppress timestamp message until we can figure out where it is coming from,
since it appears that this isn't causing a real problem


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6159 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-19 14:08:19 +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 63a6a077da phase two of string portability stuff:
don't need ast_ prefixes on functions
  use individual #defines for function presence
  add vasprintf to portability library


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6143 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15 22:06:15 +00:00
kpfleming c4670d0b06 more ifdef cleanup to match proper Linux macros
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6135 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15 15:37:58 +00:00
twisted 2b92e31a0e Fix breakage caused by bug #4669. Next time let's test the build on
linux before commiting a portability patch ;)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6134 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15 02:28:10 +00:00
kpfleming 4903f50fe8 first phase of proper fix for portable string function problems (bug #4669)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6133 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15 00:39:01 +00:00
kpfleming 889ce1c0e8 split up string/time functions into separate header files
make more LOW_MEMORY optimizations, and ensure that a non-inline version of each inlinable function is always available (for external modules)
move compiler-specific stuff into a separate header file


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6008 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-24 22:45:15 +00:00
kpfleming 53c06ed2e8 make inlinable functions only need the function body in one file, and respond properly to LOW_MEMORY being defined
make ast_copy_string inlinable, and ast_tvdiff_ms LOW_MEMORY aware


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5992 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-23 23:07:55 +00:00
markster cca6da1a51 Fix up utils nonsense
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5932 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-18 11:54:38 +00:00
kpfleming 0719f8be79 don't let ast_trim_blanks operate on empty strings or run off the beginning of the string
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5929 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-17 14:27:57 +00:00
kpfleming 8a86381ef1 string/whitespace handling cleanups (bug #4449, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5924 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-17 13:25:01 +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
markster 0e60fbb5c9 Fix cast to int from pointer (duh!)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5779 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-27 21:10:06 +00:00
kpfleming cfd99de79e make IF dialplan function handle quoted strings properly (bug #4322, with API mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5750 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-20 16:30:13 +00:00