aboutsummaryrefslogtreecommitdiffstats
path: root/res
AgeCommit message (Collapse)AuthorFilesLines
2006-05-19when displaying the list of registered music on hold classes, only showrussell1-2/+3
the format if the mode is not "files", because the field has no meaning in that case git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28445 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-18revert bogus changekpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28395 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-18Add missing argument to ast_carefulwriteoej1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@28393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-11 - The recent change to linklists.h broke the build on linux for some reason.russell1-2/+1
So, I have removed all of the uses of AST_LIST_HEAD_INIT and replaced them with the equivalent static initializations. - On passing, fix a memory leak in the unload_module() function of chan_agent. The agents list mutex was never destroyed, and the elements in the agents list were not freed. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26990 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10use the channel lock wrappers (issue #7128)russell1-12/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26526 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10remove almost all of the checks of the result from ast_strdupa() or alloca().russell7-63/+49
As it turns out, all of these checks were useless, because alloca will never return NULL. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09various doxygen fixeskpfleming1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26170 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-09remove a check of the result of ast_mutex_lockrussell1-14/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25891 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-08Incorrect log statement when playing transfer sounds (issue #7008 reported ↵file1-2/+2
and fixed by nathan) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25444 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-05move ast_carefulwrite from manager.c to utils.c so that cli.c andrussell1-1/+0
res_agi.c no longer depend on manager.h (issue #6397, casper) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25026 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 Correct call parking behavior when there is no courtesytone specified. ↵bweschke1-1/+4
#6306 (murf) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24605 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01Merged revisions 24019 via svnmerge from tilghman1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r24019 | tilghman | 2006-05-01 15:44:24 -0500 (Mon, 01 May 2006) | 2 lines Bug 6864 - drop realtime priority on ALL external processes ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24053 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30remove macro defined that is no longer neededkpfleming1-6/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23737 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29a bunch of conversion to ast_channel_*lock (issue #7058)russell4-20/+20
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23355 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29- convert lists to use linked list macrosrussell1-93/+74
- instead of allocating a frame on the stack every time the music on hold generator is called, put a frame in the mohdata structure. Also, initialize the parts of the frame that will never change when the mohdata struct is allocatted and only change the necessary parts in the generator function. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23334 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29- don't create duplicate log messagesrussell1-18/+16
- note when the data part of the tech/data pair is missing not only when using the app version, but the exten version as well - instead of logging syntax errors, just output them to the CLI git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23284 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29add reload() (bug 9981)rizzo1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23273 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-24Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have ↵kpfleming8-109/+72
autoconf and menuselect tools for Asterisk! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21move wait_and_stream to ast_wait_and_stream() because equivalentrizzo1-32/+12
code is replicated in way too many places not to have a global function for that. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22075 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21more strncpy/ast_copy_string replacement.rizzo1-14/+6
On passing, simplify code by using strsep() as appropriate git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22045 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21more strncpy/ast_copy_string replacementrizzo1-15/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22044 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21comment a possible memory leakrizzo1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21merge some common code into a functionrizzo1-18/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21986 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21more NULL "" equivalence in cid fields.rizzo1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21835 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-21more NULL / "" equivalence for CID fields.rizzo1-26/+26
Mark an inconsistency in empty string handling. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21819 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18update res_odbc to support pooled connectionsrussell2-376/+510
(from tilghman's developer branch, res_odbc_rewrite) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21181 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18simplify the flow of builtin_atxfer().rizzo1-111/+106
There is still a lot of similarity with builtin_blindtransfer() which should be removed by definining functions for the common pieces of code (eg in the first part). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21097 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17Merged revisions 20966 via svnmerge from tilghman1-0/+21
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r20966 | tilghman | 2006-04-17 12:00:16 -0500 (Mon, 17 Apr 2006) | 2 lines Bug 6544 - when we remove a music class, the thread servicing it should die ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21002 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17- Doxygen formattingoej1-25/+34
Please place a Doxygen todo marker before things that needs to be checked up later by someone - it's like /*! \todo We really need to implement this in C++ */ - option_debug checking before logging to DEBUG channel git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20790 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16preparation for reduction of the nesting of a large functionrizzo1-21/+26
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20733 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16more usages of stream_and_waitrizzo1-28/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20707 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16more usages of function 'finishup()'rizzo1-24/+18
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20705 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16one more instance of stream_and_wait, and remove an extrarizzo1-9/+2
'error = 1' line put in by miustake git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20693 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16more replaceemnt of dup code with functions.rizzo1-51/+23
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20678 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16localize several variables, and simplify the last part of park_exec()rizzo1-58/+46
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20653 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16more formatting cleanup including removal of a useless checkrizzo1-7/+6
for f == NULL git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20652 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16rename a variable same as used in a very similar function,rizzo1-10/+10
to reduce code differences. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16s/pu->chan/chan in a few places;rizzo1-37/+31
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20626 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16put some common code into functions (still more instances to be replaced)rizzo1-54/+69
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20625 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16properly reindent a large block.rizzo1-49/+48
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20624 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16more readability fixes - localize some variables and invertrizzo1-19/+25
a condition in an 'if' statement to reduce the nesting depth. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20623 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16introduce a function to set context, extension and priorityrizzo1-7/+11
replacing some common blocks of code (there are still a few instances where it can be used) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20598 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-16minor readability fixes in preparation for more work on this file:rizzo1-32/+24
- replace nested 'if' with '&&' - fix indentation - annotate the end brace of some huge block - remove useless parentheses git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20597 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15We are shaking up trunk tonight! allow data dir to be specified (issue #6967 ↵file1-0/+1
reported by tzafrir) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20330 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15- normalize for() loops to navigate through variables,rizzo1-27/+23
removing replicated var = var->next; - remove a potential infinite loop and document the problem - remove useless checks and document why - mark XXX a possible bug (to be investigated) - use ast_strlen_zero() instead of expanding it inline - fix indentation in one place - replace a nested 'if' with '&&' git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20223 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14- remove some unnecessary casts and braces; rizzo1-64/+36
- add braces around a nested 'if' - use S_OR and '?' to remove some duplicated function calls; - replace nested 'if' with && - move out a common term in a sequence of 'if' - add a comment on a potentially dangerous string manipulation git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20196 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14constification and code simplificationsrizzo1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20165 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14partial fix of the module API to use the new method.rizzo1-10/+15
Still not complete as we need to take care of the usecount stuff. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20104 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14fix another svn merge bugrizzo1-4/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20076 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14This rather large commit changes the way modules are loaded. rizzo14-211/+119
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