dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

686 Commits

Author SHA1 Message Date
russell 3ac4f66675 don't do the memcpy inside of ast_strdupa if we know that __builtin_alloca
was not successful


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 18:11:40 +00:00
russell 5ca38239e1 remove optimization where its benefits are negligible
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8368 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 03:09:01 +00:00
russell 834f1b5789 - move ast_strdupa from channel.h to utils.h
- attempt to log an error message if the __builtin_alloca inside of ast_strdupa
  fails.
- document the fact that it is known and intended behavior for ast_strdupa to
  cause Asterisk to crash if the alloca fails
- use __builtin_expect when checking for allocation failure in all of the
  allocation wrappers

New Janitor Project!  Anywhere that we check for a successful allocation after
a call to ast_strdupa is unnecessary and should be removed.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8356 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-20 19:24:42 +00:00
russell c6643537f1 constify arguments in more places where strings should not be modified (issue #6286)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8203 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 22:17:31 +00:00
mogorman 8b2bdbe6c6 allows for use of the originate function from
the cli patch 5847


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8186 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 15:42:48 +00:00
mogorman 08260a7241 cli.h cleanup and additional documentation
from patch 6272 


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8179 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 03:53:10 +00:00
oej 8d535ff32b Doxygen update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8118 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17 03:05:43 +00:00
mattf f295d6727a Small documentation update for new AST_FRAME_MODEM type
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8073 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-14 18:53:10 +00:00
mogorman 61820f0d59 added feature for pausing and unpausing the
monitor app from manager and in the call through
features.conf bug 5395 for the patch


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8070 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-14 00:32:30 +00:00
russell c68a2d2d8e Various cleanups from comments in an email from Luigi Rizzo. Thank you!
- Use a cleaner syntax for declaring the allocation macros
- Fix return value for ast_strdup/ast_strndup
- remove safe_strdup from app_macro, since ast_strup does the same thing
- fix a place in app_queue where ast_calloc+strncpy was used instead of
  ast_strdup.  If you are helping out with these conversions, please watch out
  for other places where this is done.
- add a note to the coding guidelines about the fix to app_queue


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8065 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 18:38:55 +00:00
mogorman f94feca2c5 Made chan_agent code parsing more robust and
implemented new macro code. from 6228.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8064 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 18:30:49 +00:00
mattf 18ad8f1708 More changes to make t.38 support work
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8015 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 17:14:58 +00:00
mattf 2fe44fb4ce Changes to add udptl to asterisk (preliminary merging of the t.38 patch)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8014 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 17:12:12 +00:00
mogorman dc631e5cdc As we no longer have chan_modem this file is not used
either thanks rizzo in refrence to 6217


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8013 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 16:15:01 +00:00
russell 07ec2feb51 add doxygen documentation and fix various issues with ast_dtmf_stream
(discussed in issue #6087)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7969 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 05:23:19 +00:00
russell 1d62e35521 - add AST_LIST_HEAD_NOLOCK_STATIC, similar to AST_LIST_HEAD_STATIC, but without the lock!
- store registered channel backends using linked list macros


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7968 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 05:05:13 +00:00
russell 6b12442db5 lock list of translators *before* recalculating translation matrix.
Also, store translators using linked list macros.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7967 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 05:00:45 +00:00
russell d47b8a1a28 remove stray header
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7964 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 04:39:53 +00:00
russell 1eb7a651e2 Add wrappers for commonly used memory allocation functions. These wrappers
add an automatically generated Asterisk log message if the allocation fails
for some reason.  Otherwise, they are functionally the same, with the
exception of ast_strdup and ast_strndup.  These functions have the added
ability to accept a NULL argument without error, which will just be ignored
without generating an error. The coding guidelines have also been updated to 
reflect all of this information.  (issue #4996)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7952 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-10 23:51:42 +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
mogorman 4956021b6d Commiting bugfix 5310. added functions to astobj
for queue like structure. astobj_container_link_end
astobj_container_link_start 
astobj_conatiner_unlink_start


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7867 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-08 17:24:54 +00:00
markster d1d90f47fd Add support for H.264 with SIP and recording
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7855 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-07 17:54:22 +00:00
tilghman cde8c70439 Bug 6164 - Allow ast_skip_blanks on const strings without spewing warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7854 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-07 15:45:47 +00:00
tilghman d26c57d4be Bug 6162 - Constify manager_event arguments
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7853 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-07 15:23:38 +00:00
mattf e157d1f1e9 Changes to allow receiving japanese callerid (Bug #5928)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7842 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-06 20:03:20 +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
tilghman 63aec1e233 Merged revisions 7827 via svnmerge from
/branches/1.2


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7828 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-05 23:54:28 +00:00
oej e8a7928eaa Doxygen updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7814 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-05 09:40:22 +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
kpfleming 385d29ad6f update copyright headers for files changed this year
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7751 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-03 22:16:23 +00:00
kpfleming 66b30d5d48 Merged revisions 7740 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7740 | kpfleming | 2006-01-03 11:24:56 -0600 (Tue, 03 Jan 2006) | 4 lines

revert incorrect fix for bug #6048 from revision 7709
put in correct (simpler) fix
add doxygen docs for channel spy 'state' values

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7741 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-03 17:25:39 +00:00
oej 1481c4a127 Bug #6109: Fix unprotected list in RTP, implement AST_LIST macros, update doxygen docs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7730 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-03 09:30:19 +00:00
oej b417b748b6 Bug #6118: Clean up list handling in image.c (drumkilla)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7728 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-03 08:40:55 +00:00
russell cecdcd6289 fix a couple of doxygen errors
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7699 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-01 18:37:50 +00:00
russell c92403c479 - fix some doxygen errors
- add the flag definitions to the page about global options


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7690 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-31 19:45:30 +00:00
tilghman 8d6c048c86 Bug 5183 - Inline stack backtraces
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7646 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-27 06:24:28 +00:00
russell 470cfa71c8 minor cleanups ...
- use for loops instead of while loops for basic list traversals
- only calculate word length one time in CLI complete functions
- use calloc instead of malloc + memset
- remove some unnecessary casts
- formatting tweaks 


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7618 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-24 06:23:36 +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
markster 37635ecfdd Major RTP fixes for using inbound SDP on outbound connection, get rid of
old local rtp stuff...


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7551 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-20 17:52:31 +00:00
markster be3c78074e Major peformance improvements to meetme
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7547 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-20 13:07:02 +00:00
tilghman 18c2c62232 Merged revisions 7508 via svnmerge from
/branches/1.2


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7509 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-17 01:07:44 +00:00
tilghman 205d533dc5 Typo
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7434 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-12 17:20:21 +00:00
tilghman 8ca09cb947 Bug 5965 - major bug in AST_LIST_REMOVE
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7428 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-11 01:26:09 +00:00
russell cfb1ef4712 convert most of the option_*'s to a single ast_flags structure. Also, fix some
formatting, remove some unnecessary casts, and other little code cleanups.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7331 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-04 20:40:46 +00:00
tilghman 3365b1cc9f Bug 5858 - Make the chanvars.c functions return a 'const char *'
This should prevent us from unintentionally changing variable
values when they're returned from pbx_builtin_getvar_helper.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7304 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-03 19:25:33 +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 6c54a7cf87 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7220 f38db490-d61c-443f-a65b-d21fe96a405b 2005-11-29 18:09:49 +00:00
twisted affd985bf2 issue #5826
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7188 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-23 05:03:42 +00:00
kpfleming 87a3621538 issue #5590
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7068 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-11 03:48:28 +00:00
kpfleming 4087161a90 issue #5669
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7067 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-11 01:30:34 +00:00