Archived
14
0
Fork 0
Commit graph

57 commits

Author SHA1 Message Date
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
e4880150b1 since the module API is changing, it's a good time to const-ify the description() and key() return values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18552 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 22:01:19 +00:00
russell
c72e5e1b38 remove the uses of the deprecated STANDARD_LOCAL_USER
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10241 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 20:11:56 +00:00
kpfleming
21d21f89c0 use string fields for some stuff in ast_channel
const-ify some more APIs
remove 'type' field from ast_channel, in favor of the one in the channel's tech structure
allow string field module users to specify the 'chunk size' for pool allocations
update chan_alsa to be compatible with recent const-ification patches


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9060 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 23:05:28 +00:00
russell
252fb982f4 on this pass, only remove duplicate log messages
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8403 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 20:57:06 +00:00
russell
b14bdc5a12 revert my pass through the tree to remove checks of the result of ast_strdupa
(revisions 8378 through 8381)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8387 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 17:50:04 +00:00
russell
3f2c7248c6 remove lots of useless checks of the result of ast_strdupa
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 08:13:12 +00:00
jdixon
e7d0e77bbb Added NOANSWER support, so that optional the DISA application starts without
answering (used in new version of app_rpt, and potentially other applicaitons).


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8105 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-16 18:52:13 +00:00
oej
2706b4788d Whitespace and formatting changes. /Housekeeping
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7784 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-04 13:49:25 +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
c44967b62f correct a small problem with recent commit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7103 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-15 19:40:08 +00:00
kpfleming
c159581370 issue #5736
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7101 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-15 19:27:18 +00:00
kpfleming
0143c7ae3a issue #5676
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7065 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-11 00:53:19 +00:00
kpfleming
e61f71745f application doc update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6992 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-07 22:01:22 +00:00
russell
cf0c3725e2 user correct arguments to ast_cdr_reset from my changes earlier today
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6990 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-07 04:10:41 +00:00
russell
d3ddc001a2 issue #5605
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6979 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-06 15:09:47 +00:00
russell
36d630b4fe strncpy to ast_copy_string
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6868 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-27 02:48:56 +00:00
russell
2a1fd152ed remove unnecessary checks before calls to ast_strlen_zero
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-26 19:48:14 +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
fa889b15ad Fix app_disa to set the proper variable before goign to invalid (bug #5439)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6845 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-23 01:39:40 +00:00
markster
26d558831d Fix DISA documentation (bug #5461)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6837 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-21 04:00:13 +00:00
russell
58818426d6 Massive cleanups to applications for LOCAL_USER handling and some other things.
In general, LOCAL_USER_ADD/REMOVE should be the first/last thing called in an
application.  An exception is if there is some *fast* setup code that might
halt the execution of the application, such as checking to see if an argument
exists.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6832 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-19 18:19:02 +00:00
russell
2c83f05ebb it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6828 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-18 22:52:21 +00:00
kpfleming
23cd76b172 make DISA() use 'i' extension if it exists (issue #5439 with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6779 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-13 23:52:42 +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
a21860310e convert a bunch of apps to use ast_goto_if_exists() (issue #5138)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6533 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-07 19:13:00 +00:00
kpfleming
176a2ae83e ensure account code is not overwritten when none is supplied (bug #4743)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6168 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-19 23:45:21 +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
9bdf537755 ensure that mailbox numbers are read correctly from password files (bug #4655)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6049 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-07 22:42:06 +00:00
kpfleming
8dc28b2439 the last round of file version tags
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5867 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 22:39:32 +00:00
kpfleming
b7e6d89aa2 don't use '%i' at all, since we have no current use cases that need non base-10 parsing (bug #4110)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5533 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-29 17:00:33 +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
markster
3b2a896e6f Fix timeouts when no-password used (bug #3859)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5264 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-26 07:08:47 +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
4834419aa8 DISA fix, makefile fix (bug #3049)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4461 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-15 20:29:31 +00:00
markster
bbfd86d5f2 Fix DISA with callerid (bug #3058)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4460 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-15 20:20:58 +00:00
markster
d849649aa2 Minor disa fix for 3.4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4452 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-15 15:40:29 +00:00
jim
2795ea48a5 Fixed call parking, added separate paramater to allow/disallow call parking on
Zaptel interfaces (canpark=yes/no in zapata.conf), added urlbase paramater to
Monitor so that a url can optionally be included in CDR (user field), cleaned up a couple of minor things


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4413 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-09 22:39:14 +00:00
markster
ec3b941a14 DISA enhancemnets (bug #2766)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4132 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-31 23:28:42 +00:00
markster
6868babd22 Huge callerid rework (might break H.323, others)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3874 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-02 00:58:31 +00:00
markster
cac82edb73 Fix app_disa to not ignore ignorepat :) (bug #2451)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3789 f38db490-d61c-443f-a65b-d21fe96a405b
2004-09-15 22:06:30 +00:00
markster
38918c21db Update DISA to be internationalized (bug #2284)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3672 f38db490-d61c-443f-a65b-d21fe96a405b
2004-08-28 19:41:18 +00:00
markster
bbf6afc600 Major DISA improvements (bug #2284)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3670 f38db490-d61c-443f-a65b-d21fe96a405b
2004-08-28 17:33:43 +00:00
markster
59d780973e Merge rgagnon's pedantic string checks (apps a-m, bug #2035)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3428 f38db490-d61c-443f-a65b-d21fe96a405b
2004-07-14 07:22:30 +00:00
citats
31e064cf03 Remove pthread.h from source. We should be using asterisk/lock.h everywhere instead (except in asterisk/lock.h).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3277 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22 19:32:52 +00:00
markster
e21a2421e4 Make sure we don't accidently send weird delivery times on DISA
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2891 f38db490-d61c-443f-a65b-d21fe96a405b
2004-05-04 19:20:20 +00:00
markster
b837107b6b Get rid of all that old needlock garbage now that we're using recursive mutexes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2644 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-06 22:17:32 +00:00
markster
5acf40987d Make read/write mode have a lock parameter and use it properly.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2572 f38db490-d61c-443f-a65b-d21fe96a405b
2004-03-27 06:50:12 +00:00
markster
9c33fb1e3e Fix DISA to actually have header it advertises (bug #197)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1453 f38db490-d61c-443f-a65b-d21fe96a405b
2003-09-01 15:44:27 +00:00
markster
ca49f95311 Internationalize DISA and fix Voicemail when receiving messages and you're checking them too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1092 f38db490-d61c-443f-a65b-d21fe96a405b
2003-06-15 11:42:48 +00:00