kpfleming
0819e8f57d
test commit to ensure the server is happy again
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-03 12:29:39 +00:00
rizzo
d6a1a0b4a2
fix a mostly harmless error introduced by svn merge.
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20036 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14 17:19:57 +00:00
rizzo
3664249356
This rather large commit changes the way modules are loaded.
...
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-14 14:08:19 +00:00
kpfleming
2737304d60
remove extraneous warning message
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19767 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-13 15:28:24 +00:00
rizzo
ec05420bc7
remove an unused function
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19226 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 16:00:23 +00:00
rizzo
925620eda5
remove unused fields
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19219 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 15:09:24 +00:00
kpfleming
34624c527c
update module license key text and update loader to accept it
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18574 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 22:37:30 +00:00
rizzo
e74b126e91
small cleanups to module.h and loader.c to start playing with
...
new-style modules using static symbols.
Everything will still work as before, but new-style modules
can now be defined by putting a '#define STATIC_MODULE' somewhere
before including module.h, then declaring STATIC_MODULE the
various methods (load, unload, key...) that the module is
supposed to supply, and adding a 'STD_MOD(MOD_1, reload_fn, NULL, NULL)'
macro call at the end.
A module compiled in this way will be loaded RTLD_NOW|RTLD_LOCAL
so symbol pollution is reduced, and symbols are resolved immediately.
Removing just the '#define STATIC_MODULE' will restore the old
behaviour.
In order for a module to be loaded RTLD_NOW|RTLD_LOCAL, it must not
export any symbol[1], and all the modules it depends on (e.g. res_*)
must be loaded already.
[1] Mechanisms are in place, and will be enabled later, to still
allow such modules to 'export' symbols and resolving the dependencies
irrespective of the load order.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17790 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 09:10:31 +00:00
tilghman
a72a36d8a8
Reduce debugging messages from WARNING to DEBUG
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16922 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-02 06:27:54 +00:00
oej
87ebf6cece
Doxygen fixes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15860 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 23:55:52 +00:00
rizzo
0901d3a59a
Bring in the new loader code as described in mantis #4377
...
and updated to today's version.
The core of the patch is only two files, loader.c
and include/asterisk/module.h, with the other files
touched only to adapt non-standard usages of the
reference counts and localuser lists.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15784 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 21:15:10 +00:00
markster
4f4a24ec6f
Add micro-http server and abstract manager interface, make snmp not die
...
on reload.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25 23:50:09 +00:00
kpfleming
5ba06203e6
revert loader changes that have clearly not undergone adequate testing before commit
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14952 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25 23:22:44 +00:00
tilghman
2fa222dfb9
Bug 4377 - Round 2 of the loader updates
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14886 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-25 06:02:46 +00:00
russell
bdb1758d15
conversions to allocation wrappers and various other coding guideliens fixes (issue #6582 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11231 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-27 01:37:56 +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
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
f9af4692c0
Merged revisions 8162 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r8162 | mogorman | 2006-01-17 18:47:04 -0600 (Tue, 17 Jan 2006) | 4 lines
Changed order of autoload so that pbx_ comes before
channels, and in doing so cause bug 6002 to not
be an issue
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8163 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 00:49:43 +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
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
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
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
acf412a387
use a more generic means to decide whether we need to provide poll/dlfcn functionality (issue #5297 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6664 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-26 17:17:56 +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
russell
c7503d31d3
fix a bunch of gcc4 warnings realted to pointer signedness
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6290 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-05 16:29:30 +00:00
russell
c0df67963e
formatting fixes (bug #4770 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6185 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25 15:32:06 +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
97236cfc32
add support for 'early loading' modules, so that nearly all configuration files can be read from Realtime storage
...
add warning for when file mapping is found but the engine is not available
add warning for trying to map 'logger.conf', since it cannot be reliably mapped
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6034 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-05 22:11:43 +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
2d6a1fbb23
clean up module version number output
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5863 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 18:42:15 +00:00
kpfleming
a74f3f93f4
add support for per-module version numbers
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5862 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 18:31:29 +00:00
kpfleming
e500673791
major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5855 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 03:04:58 +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
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
kpfleming
382175ba27
*** empty log message ***
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5431 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-06 21:12:32 +00:00
markster
2207b9a515
Merge config updates (bug #3406 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4889 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-25 06:10:20 +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
markster
97956e0b08
Optimize module loading (bug #3356 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4814 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-16 22:59:30 +00:00
markster
35eb6d04d6
Revert loader change now that we do it at runtime
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4753 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-10 22:16:42 +00:00
markster
126fc0bc61
Load formats first (bug #3242 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4664 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-04 20:55:43 +00:00
russell
c423c07af0
fix logging issue
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4563 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-27 22:41:58 +00:00
markster
6b4b4c491e
Don't hold modlock while doing reload
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4276 f38db490-d61c-443f-a65b-d21fe96a405b
2004-11-17 13:40:47 +00:00
markster
0cb7e1d121
Big agent / queue fixes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4231 f38db490-d61c-443f-a65b-d21fe96a405b
2004-11-13 22:44:33 +00:00
markster
cc8b63051a
Provide module command completion (make twisted happy)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4022 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-16 21:14:05 +00:00
markster
850b151d70
Add option for "show modules like" (bug #2643 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3996 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-14 04:38:29 +00:00
markster
c930a4479c
Minor config updates, add module counts (bug #2593 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3953 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-08 18:20:49 +00:00
markster
bfb57d8289
reload documentation, don't display res in app_test...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3718 f38db490-d61c-443f-a65b-d21fe96a405b
2004-09-03 14:02:12 +00:00
markster
a0c4cf53bd
Don't try to look offhook with channel banks & Loopstart (bug #2362 ), also make individual modules reloadable...
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3714 f38db490-d61c-443f-a65b-d21fe96a405b
2004-09-02 20:45:24 +00:00