aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_dundi.c
AgeCommit message (Collapse)AuthorFilesLines
2007-09-27remove a todo item that has been completedrussell1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83976 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-21gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set ofrussell1-12/+10
changes gets all of Asterisk (minus chan_alsa for now) to compile with gcc 4.2. (closes issue #10774, patch from qwell) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83432 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-18When copying the contents from the wildcard peer, do a deep copy instead ofrussell1-1/+31
shallow copy so that it doesn't crash when beging destroyed. (closes issue #10546, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82802 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-11The sample dundi.conf claims support for a wildcard peer entry - [*], but therussell1-3/+34
code did not support it. This patch makes it work. (closes issue #10546, patch by dds, with some changes by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82250 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-11(closes issue #10577)file1-0/+5
Reported by: jamesgolovich Patches: asterisk-dundifree.diff.txt uploaded by jamesgolovich (license 176) Don't leak memory when unloading DUNDi. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@82243 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-28revert unintentional changes in rev 81226russell1-5/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81228 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-28Add Russian tones. (closes issue #7953, hanabana)russell1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81226 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27Add a \todo to note that this module leaks most of the memory it allocates onrussell1-0/+1
unload and should be fixed (when I'm not in the middle of something else ...). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81074 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-27explicity define a variable as a booleanrussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81065 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-18(closes issue #10224)file1-6/+7
Reported by: irroot Record the threadid of each running thread before shutting them down as the thread themselves may change the value. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75583 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Few minor thread synchronization tweaks. (issue #10124 reported by gzero)file1-4/+13
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74045 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Make unloading of pbx_dundi actually work.file1-2/+15
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72006 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-31Merged revisions 53045 via svnmerge from russell1-0/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r53045 | russell | 2007-01-31 15:25:11 -0600 (Wed, 31 Jan 2007) | 3 lines Fix a bunch of places where pthread_attr_init() was called, but pthread_attr_destroy() was not. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53046 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04update thread creation code a bitkpfleming1-2/+2
reduce standard thread stack size slightly to allow the pthreads library to allocate the stack+data and not overflow a power-of-2 allocation in the kernel and waste memory/address space add a new stack size for 'background' threads (those that don't handle PBX calls) when LOW_MEMORY is defined git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44378 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18merge qwell's CLI verbification workkpfleming1-74/+63
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31everything that loads a config that needs a config file to runmogorman1-1/+2
now reports AST_MODULE_LOAD_DECLINE when loading if config file is not there, also fixed an error in res_config_pgsql where it had a non static function when it should. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-21/+12
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-21Merge a new implementation of ast_inet_ntoa, our thread safe replacement forrussell1-22/+17
inet_ntoa, which uses thread specific data (aka thread local storage) instead of stack allocatted buffers to store the result. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@38042 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-4/+4
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-10remove almost all of the checks of the result from ast_strdupa() or alloca().russell1-2/+1
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-07- use ast_calloc instead of malloc+memsetrussell1-11/+6
- conver one malloc to ast_malloc git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25356 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-02staticize the list heads from my recent conversions to list macrosrussell1-5/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24139 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01- convert permission lists to use list macrosrussell1-68/+48
- remove unused precachesend and precachereceive variables from dundi_peer This concludes the visit to pbx_dundi ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23831 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01conver the lists of dundi packets to use the list macrosrussell1-48/+27
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23810 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-01- convert the dundi precache list to use the list macrosrussell1-46/+37
- change an instance of malloc+memset to ast_calloc git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23808 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30- convert the lists of dundi_transactions to the list macrosrussell1-109/+73
- remove an unused variable, keypending, from the dundi_peer struct git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23769 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30remove unneeded define - it is already in asterisk.hrussell1-3/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23494 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30convert the dundi_request list to use the list macrosrussell1-36/+18
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23493 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30convert existing comments to doxygen formatrussell1-34/+34
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23492 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30fix indentation for this functionrussell1-56/+56
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23491 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30immediately handle ast_strdupa result so that one more level of indentationrussell1-3/+4
can be removed from this function git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23490 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30fix the indentation of a large blockrussell1-43/+43
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23489 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30handle a memory allocation failure immediately so the following large blockrussell1-7/+4
does not have to be indented git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23480 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30- convert the list of dundi mappings to use the list macrosrussell1-60/+35
- change an instance of malloc+memset to use ast_calloc, instead git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23468 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30change a list traversal to use a for looprussell1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23466 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30fix the indentation of a large block of coderussell1-121/+121
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23465 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30immediately handle a memory allocation failure so the rest of the functionrussell1-5/+4
doesn't have to be indented (indentation still to be fixed) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23464 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-30- convert some comments to doxygen formatrussell1-140/+118
- convert the list of dundi peers to use the list macros - convert a use of malloc+memset to use ast_calloc git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23463 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-29add a small optimization for deleting all the members of a listrussell1-3/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23271 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-24Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have ↵kpfleming1-0/+5
autoconf and menuselect tools for Asterisk! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@22267 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14This rather large commit changes the way modules are loaded. rizzo1-17/+10
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
2006-04-08since the module API is changing, it's a good time to const-ify the ↵kpfleming1-2/+2
description() and key() return values git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) ↵tilghman1-2/+2
rand() to threadsafe ast_random() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30as discussed with Mark a few weeks ago, the 'newstack' argumentrizzo1-2/+2
in pbx_exec is always 1 so it can be removed. This change also takes away ast_exec_extension(), and lets all switch functions (exists, canmatch, exec, matchmore) all use the same prototype, which makes the code a bit cleaner. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16558 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28- remove an unnecessary cast and recomputation of (timeout - now);rizzo1-20/+13
- remove useless recomputations of strlen(word) in a loop, and normalize the form of complete_peer_helper(); - move LOCAL_USER_ADD() to after the verification of arguments, thus removing the need for one LOCAL_USER_REMOVE() call. The three chunks of the patch are fully disjoint. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15581 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23add 'consumed' argument to ast_get_time_t, so callers can know how many ↵kpfleming1-7/+4
characters were used in the parser update pbx_dundi to use ast_get_time_t eliminate some compiler warnings git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10871 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23Fix a few compile warnings (turned errors) and disable -Werror on the markster1-2/+6
normal build. If people want this they can turn it on, and don't anyone turn it on by default until you fix building on GCC 4.x git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10842 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15remove the uses of the deprecated STANDARD_LOCAL_USERrussell1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-13remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADDrussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12major dialplan functions updatekpfleming1-17/+7
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL() git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9674 f38db490-d61c-443f-a65b-d21fe96a405b