file
db5a6fcfc3
We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported by tzafrir)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20330 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-15 22:53:53 +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
rizzo
f699b62383
normalize code in preparation to module changes
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19189 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11 10:01:00 +00:00
kpfleming
c70f89e9c8
a few cleanups from the last commit
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18572 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08 22:16:34 +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
rizzo
50469fa174
normalize repeated instances of code as follows:
...
- if (res >= 0)
- return RESULT_SUCCESS;
- else
- return RESULT_FAILURE;
+ return (res >= 0) ? RESULT_SUCCESS : RESULT_FAILURE;
(we should probably create a macro for this,
#define RET(r) ((r) >= 0) ? RESULT_SUCCESS : RESULT_FAILURE)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@17899 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-06 16:17:04 +00:00
rizzo
c977f70f81
as discussed with Mark a few weeks ago, the 'newstack' argument
...
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-30 21:29:39 +00:00
russell
e1fe9b0683
Merged revisions 11382 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r11382 | russell | 2006-02-28 13:31:04 -0500 (Tue, 28 Feb 2006) | 2 lines
add a missing newline in the agi app description (thanks wunderkin!)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11383 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-28 18:34:45 +00:00
kpfleming
9c4950dff3
add 'consumed' argument to ast_get_time_t, so callers can know how many 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-23 17:13:57 +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
1290482b55
Merged revisions 10021,10108 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r10108 | kpfleming | 2006-02-14 18:36:57 -0600 (Tue, 14 Feb 2006) | 2 lines
ensure that FastAGI launcher can handle system call interruption (issue #6449 )
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10109 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 00:38:27 +00:00
kpfleming
15db46a445
add API function for parsing strings to time_t (issue #6320 , with mods)
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10105 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 00:24:24 +00:00
kpfleming
5d9ed5739a
major dialplan functions update
...
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9674 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 04:28:58 +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
mogorman
4d4470fe15
reports why an agi script errors out on opening
...
file
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9059 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-01 20:40:45 +00:00
tilghman
8b09090fc1
Bug 4872 - Make Asterisk paths available to AGIs via environmental variables
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8372 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 05:22:18 +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
cc20111b72
- move the string join() function to utils.c since it is used in both cli.c and res_agi.c
...
- reimplement ast_join to be of linear effieciency instead of quadratic
- remove some useless checks for "if (e)"
- reorder checks for strings starting with '_' to avoid a useless call to ast_join()
- check array bounds when parsing arguments to AGI
(issue #5868 )
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7556 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-20 20:20:04 +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
df706a8900
issue #5648
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7011 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08 01:55:31 +00:00
russell
bd1d2d2bbf
issue #5589
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6954 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-03 21:25:57 +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
e9f2397173
truncate last 200ms of DTMF-terminated recording to eliminate inband DTMF (issue #5383 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6717 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-04 22:35:43 +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
9413babc1d
make sure realtime/high scheduling priority is relinquished before executing an AGI script (issue #4930 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6368 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-23 01:30:22 +00:00
kpfleming
11c869642b
allow custom dialplan functions to be called from AGI (issue #4855 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6363 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-22 23:00:23 +00:00
kpfleming
81f971522d
add CONTROL STREAM FILE AGI command (issue #4738 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6360 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-22 21:59:24 +00:00
twisted
39e38ba578
Fix usage text for AGI recieve text (bug #4948 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6334 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-15 02:45:34 +00:00
markster
b0a41e75a0
Fix sighup with AGI (bug #4854 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6264 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-03 04:17:12 +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
63a6a077da
phase two of string portability stuff:
...
don't need ast_ prefixes on functions
use individual #defines for function presence
add vasprintf to portability library
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6143 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15 22:06:15 +00:00
kpfleming
182bab0dd6
don't hangup the channel when a RECEIVE TEXT command times out (bug #4607 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6082 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-11 20:40:02 +00:00
russell
cbc8a4b7d2
more ast_copy_string conversions
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6075 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-10 23:21:39 +00:00
kpfleming
2d0f688caf
add AGI 'RECEIVE TEXT' command (bug #4525 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5950 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-21 01:16:18 +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
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
7b1b9f53ef
more efficient (and understandable) ast_channel_walk_locked, and vastly more efficient ast_channel_by_name_locked (bug #4265 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5853 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06 02:29:18 +00:00
kpfleming
b7997fe7bd
make AGI 'TDD MODE' command behave as documented when the channel doesn't support options (bug #4370 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5851 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-05 21:00:33 +00:00
kpfleming
aa026fc3e8
support labels as targets of SET PRIORITY command (bug #4057 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5727 f38db490-d61c-443f-a65b-d21fe96a405b
2005-05-19 02:57:45 +00:00
kpfleming
8607bf9fbe
don't use %i for numeric input in scanf (bug #4071 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5507 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-27 01:42: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
2c123568df
Add datetime to AGI (bug #3984 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5446 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-11 03:23:54 +00:00
markster
40b6716991
Add say date to AGi (bug #3768 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5305 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-30 07:00:49 +00:00
markster
c17dc4f21b
Little say numer fix (bug #3884 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5298 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-29 06:21:21 +00:00
markster
622e8226c2
Continue with GET_DATA if no file is there (bug #3878 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5290 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-28 07:08:39 +00:00
markster
a4a27725e3
Make sure AGI continues even when files aren't there (bug #3862 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5263 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-26 05:33:48 +00:00
markster
2ec9bbcb0f
Add additional fields for calling parameters per BT request
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5251 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-24 16:38:13 +00:00
markster
57710533e7
Add support for Solaris/x86 (bug #3064 )
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5199 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-17 23:12:15 +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
a985c15efe
Various small fixups
...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4725 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-09 09:01:40 +00:00