dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

145 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
tilghman e0ba99b7f5 Bug 6873 - Finish moving from the non-threadsafe (and poor randomness) rand() to threadsafe ast_random()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-05 17:44:44 +00:00
russell 29c48e23e2 Merged revisions 9609 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9609 | russell | 2006-02-11 14:23:20 -0500 (Sat, 11 Feb 2006) | 2 lines

fix memory leak from not destroying the scheduler context on module unload

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9610 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 19:31:11 +00:00
kpfleming e04e114ef1 Merged revisions 9404 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9404 | kpfleming | 2006-02-10 14:38:59 -0600 (Fri, 10 Feb 2006) | 2 lines

don't create monitor threads in detached mode, when we need to be able to pthread_join() them later if the module is unloaded (solve crash-on-unload problem for these channel modules)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9405 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-10 20:40:00 +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 b55d2bd3ea define a global null_frame object so when queueing a null frame, you don't
have to allocate one on the stack


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9001 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-31 17:18:58 +00:00
tilghman 72e3856804 Bug 5515 - Devicestate and API documentation update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8371 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 05:15:56 +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
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
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
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 ee234bbb3e Remove unnecessary checks before calls to ast_strlen_zero. Also, change
some places where strlen is used instead of ast_strlen_zero


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-27 02:19:37 +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 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 b0c5a1fc33 allow users of RTP to know when the peer endpoint is (apparently) behind a NAT
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6558 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-09 19:54:34 +00:00
russell 0b7a2ea0e7 add function to convert a cause code to a string
create MAX_MUSICCLASS instead of using MAX_LANGUAGE


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6024 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-05 17:16:17 +00:00
kpfleming 6589a68fcb don't use locks when reading usecounts (reading only, not writing)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5994 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-24 02:15:04 +00:00
kpfleming 7e528a8846 remove useless code (bug #4492)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5885 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-09 20:43:54 +00:00
kpfleming 4ea1c9335e header ordering fixes for FreeBSD (pending a global merge into asterisk.h) (bug #4484)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5876 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-07 17:06:33 +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 09f3094700 another round of version tag updates, along with 'show version files' pattern filtering
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5865 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 21:09:59 +00:00
markster ea6f06e9fb Use defined AST_MAX_ACCOUNT_CODE (bug #4350)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5765 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-25 17:18:05 +00:00
kpfleming 92f76b2bc8 correct some signed/unsigned issues found by GCC 4 (bug #4237)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5664 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-15 03:21:51 +00:00
markster 64ef317fa8 Fix gethostname calls (bug #4198, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5600 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-08 16:44:25 +00:00
markster 32344f5db4 Minor protocol fixes (bug #4169)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5577 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-04 19:17:09 +00:00
kpfleming 741dead410 solve memory leak and allow chan_mgcp to be unloaded (bug #4148)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5565 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-04 00:40:14 +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 11ff484c17 Fix MGCP call waiting (bug #3971, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5450 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-11 05:48:58 +00:00
kpfleming 2454efd07c ensure that MGCP AMA flags are passed into CDR (bug #3962)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5414 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-05 21:40:37 +00:00
kpfleming 00b2c2703f ensure account code specified in mgcp.conf propagates to CDR (bug #3951)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5390 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-05 04:41:15 +00:00
markster cde56acf4e Fix MGCP *67 to automatically reset callerid (bug #3940)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5382 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-04 14:14:19 +00:00
markster 25212ca9e8 Allow functions to be written to (bug #2278, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5296 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-29 06:16:49 +00:00
markster d55d17a494 Fix a bunch of const stuff, merge queue changes, add experimental "hybrid" DTMF mode
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5293 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-28 20:48:24 +00:00
markster 235a6486c3 Add PLC and jitter buffer and iax2 meta trunk with timestamps (bug #2532, #3400)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5192 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-17 21:30:19 +00:00
markster 8ba4898a1e Rework channel structure to eliminate "pvt" portion of channel (bug #3573)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5137 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-04 06:47:24 +00:00
markster 8fd99bb2ef Allow MGCP to use distinctive ring for call wait
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5107 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-28 22:26:41 +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
markster 8701d138d1 Make groups be 64-bits (bug #3351, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4803 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-15 21:51:38 +00:00
markster cf0c739b21 Fix MGCP when running without verbose (bug #3260)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4741 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-10 00:43:01 +00:00
markster 48127d3c09 Improve MGCP formatting (bug #3247)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4695 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-06 08:16:43 +00:00
markster 043f9e3c18 Merge distinctive ring for MGCP (bug #2880, with mods)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4690 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-06 04:02:33 +00:00
markster cb5b1bc31d Grab lock in hangup earlier
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4626 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-01 00:59:54 +00:00
markster 61e8762876 Remove duplicate parse (bug #3173)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4571 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-28 16:48:20 +00:00
markster 007c22fb4c Fix MGCP compile warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4489 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-19 21:18:17 +00:00
markster 10717cc766 Merge Olle's comment patch (bug #3097)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4488 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-19 21:13:41 +00:00
markster bf9ad997ff Make sure we del any remaining connections (bug #2982)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4480 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-18 23:32:42 +00:00
markster 70cedacdde Merge slimey's Solaris compatibility (with small mods) (bug #2740)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4446 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-14 23:36:30 +00:00