Commit graph

774 commits

Author SHA1 Message Date
Mark Spencer
6cfd28423c Unify manager behind a single event queue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-02 19:59:55 +00:00
Mark Spencer
bfba044b5f Flesh out the remainder of the manager + http changes and create a sample application to partially
demonstrate the capability of manager over http.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-04-01 08:49:54 +00:00
Luigi Rizzo
03ac858251 trailing whitespace/ useless extern removal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 15:02:52 +00:00
Luigi Rizzo
50fd665c09 more trailing whitespace and extern removal
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16654 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 10:35:25 +00:00
Luigi Rizzo
7b06841395 removal of trailing whitespace and useless 'extern'
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 10:29:50 +00:00
Luigi Rizzo
8d14d291ce another batch of whitespace removal
(trailing space-tabs, and useless 'extern')



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 10:06:42 +00:00
Luigi Rizzo
106b76940f remove useless 'extern' and trailing whitespace.
(this is a whitespace-only change)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16646 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 10:02:52 +00:00
Olle Johansson
adf8c8deda - Change AST_INLINE_AP to AST_INLINE_API for non-386 systems :-)
- Doxygen changes


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 00:25:50 +00:00
Luigi Rizzo
7dbeaa4ef0 remove useless 'extern' in function declarations.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-31 00:11:45 +00:00
Luigi Rizzo
a7ec530a64 initial implementation of support for native atomic ops.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 23:26:22 +00:00
Luigi Rizzo
6c232811c0 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: https://origsvn.digium.com/svn/asterisk/trunk@16558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 21:29:39 +00:00
Olle Johansson
c6d1bfbb31 Doxygen doc updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 19:05:00 +00:00
Luigi Rizzo
1de8b16b1e remove AST_MUTEX_DEFINE_EXPORTED, which now has no more clients.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 17:11:49 +00:00
Luigi Rizzo
48864ab877 do not export the tzlock and the list head, and introduce a new method,
ast_walk_indications(), to walk through the list of indications.
The new method returns an unlocked record, which is no different from the
behaviour of other existing methods in indications.c
(i.e. they all need to be fixed, with refcounts or some similar
method).

Note that ast_walk_indications() uses the pointer argument only as a
search key, so its implementation is completely safe.

In turn, this change allows the removal of AST_MUTEX_DEFINE_EXPORTED.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 17:10:11 +00:00
Luigi Rizzo
6d2fbc0b90 document why there are so many versions of the mutex functions,
with their pros and cons, and that we should converge to a single method.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 16:09:23 +00:00
Russell Bryant
03ce34e1aa convert internal timing to be stored as a flag in the ast_options flags
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 06:26:16 +00:00
Olle Johansson
50f0b12880 Issue #5374 - Enable internal timing of generators (cmantunes)
Thanks everyone involved for hard work, testing and testing!


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16473 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 06:07:04 +00:00
Olle Johansson
2c4ebe356e Issue #6450 - Don't remove characters from SIP uri's when not needed
Patch by jcomellas, heavily modified by oej


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-30 04:16:38 +00:00
Tilghman Lesher
a532c787f2 Merged revisions 16192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16192 | tilghman | 2006-03-29 13:11:18 -0600 (Wed, 29 Mar 2006) | 2 lines

Bug 6830 - Let GosubIf work with the same conditions as a GotoIf (change in API approved by Russell)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 19:30:57 +00:00
Olle Johansson
9e9db42562 Doxygen updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 04:42:07 +00:00
Russell Bryant
9b436eecb7 fix the provided unsetenv for solaris to return an int like it's supposed to
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 04:14:12 +00:00
Luigi Rizzo
705ccb2218 Introduce an utility macro to set base, offset and
datalen of a frame, which is a very common operation.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 02:14:38 +00:00
Luigi Rizzo
68ab41ebfe Add two widely used constants
#define DEFAULT_SAMPLE_RATE 8000
#define DEFAULT_SAMPLES_PER_MS  ((DEFAULT_SAMPLE_RATE)/1000)

to the main header, and remove equivalent ones from plc.[ch]

This will simplify the cleanup of the codec/ and formats/ files.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15969 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 02:12:31 +00:00
Kevin P. Fleming
c379ae8896 Merged revisions 15896 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r15896 | kpfleming | 2006-03-28 18:32:10 -0600 (Tue, 28 Mar 2006) | 2 lines

ensure that list traversal loops which skip entries properly update the 'previous entry' pointer so when entries _are_ removed the list does not get damaged

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-29 00:32:52 +00:00
Olle Johansson
7058495f97 Doxygen fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 23:55:52 +00:00
Luigi Rizzo
e5c455e15a bring in the code that was discussed on Mantis #6068,
which is the basis for several simplifications and fixes
to the CLI interfaces.

The core is in cli.c, some documentation on a new function
to help command completion is in cli.h, and one line of
glue code in the other two files.

Next step is to bring in the patches described in #6066 and
other simplifications.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 22:25:08 +00:00
Kevin P. Fleming
4bf8e92c1d make 'show hints' CLI command show context name for each hint
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15815 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 22:09:38 +00:00
Luigi Rizzo
2326d0d499 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: https://origsvn.digium.com/svn/asterisk/trunk@15784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 21:15:10 +00:00
Luigi Rizzo
606c7dcb93 remove the long since unused STANDARD_LOCAL_USERS macro
so that new apps will not try to use it by mistake.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 13:52:04 +00:00
Kevin P. Fleming
278b8e8fc7 improve IP TOS support for SIP and IAX2 (issue #6355, code from jcollie plus modifications)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-28 03:28:52 +00:00
Mark Spencer
9164eac21a Add micro-http server and abstract manager interface, make snmp not die
on reload.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-25 23:50:09 +00:00
Kevin P. Fleming
b0ac62573a revert loader changes that have clearly not undergone adequate testing before commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-25 23:22:44 +00:00
Tilghman Lesher
bdd24455b4 Bug 4377 - Round 2 of the loader updates
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14886 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-25 06:02:46 +00:00
Luigi Rizzo
b3ad3a7556 as discussed on the -dev list, introduce a macro to simplify the
writing of common constructs like

	chan = !ast_strlen_zero(cdr->channel) ? cdr->channel : "<unknown>";

(or the if/then/else form) into

	chan = S_OR(cdr->channel, "<unknown>");

The name can be changed if we find a better (and not too long) one;
currently, it is S as String, OR as it mimics the behaviour of
the || operator, but applied to strings.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-24 15:06:42 +00:00
BJ Weschke
d09b5ff20b Doxygen typo fix.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14612 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-24 00:55:06 +00:00
Kevin P. Fleming
322f53d8b8 don't treat timeouts as errors in ast_cond_timedwait
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-24 00:03:21 +00:00
Luigi Rizzo
dde76c531c Replace ast_say_* functionn with function pointers, so that modules
can override them.
On passing, fix a potential problem in the top level Makefile:

if a static library is not referenced by any of the core objects,
it is not linked in the main program, and will not be available
to modules, which leads to failure at runtime when the modules
are loaded.
This is the case of stdtime/localtime.o, which supplies some core
symbolx, but is only linked in as a library. Fix the problem by
linking in the object.

NOTE: this is intended as a temporary aid to replace the
existing say.c with a newer implementation. Once the
task is completed, we may decide whether or not the ast_say*()
functions should be pluggable or not and possibly revert
part of this change.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 14:28:16 +00:00
Luigi Rizzo
6be9f52948 Fix a compile problem on FreeBSD for a missing header.
In this specific case the problem triggered on app_amd.c,
but it keeps coming out from time to time so it is better
to fix it in a more central place.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14320 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-23 12:47:50 +00:00
Joshua Colp
6cda4c3b8b Merged revisions 14234 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r14234 | file | 2006-03-22 17:38:32 -0400 (Wed, 22 Mar 2006) | 2 lines

Issue #5918 - Disposition showing FAILED even though call is answered successfully (Reported by tracinet)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14235 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-22 21:43:38 +00:00
Russell Bryant
cfea89a29a update LOCAL_USER_ADD to use ast_calloc
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14000 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-21 19:19:35 +00:00
Russell Bryant
4c82ac2e7a fix the return value for the provided unsetenv() for Solaris
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 21:28:55 +00:00
Olle Johansson
2654b12320 - Doxygen fixes.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13627 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 20:23:16 +00:00
Russell Bryant
45651441ec When astmm is in use, define ast_malloc and friends to malloc, etc., so that
it doesn't report that all allocations are coming from utils.h.  Also, add some
more information to the error message astmm reports when a memory allocation
failure occurs.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-19 01:39:14 +00:00
Russell Bryant
92f7c2d82d - remove some unnecessary extern keywords
- cleanups to doxygen formatted documentation


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-18 17:38:51 +00:00
Russell Bryant
0838e30076 move the definition of the mappings between extension states and their text
representation into pbx.c so that every file that includes pbx.h does not
unnecessarily get a copy of it


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-17 21:39:36 +00:00
Russell Bryant
4279bf18f8 clarify which global options are enabled by default
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 16:57:35 +00:00
Russell Bryant
4e6af293f9 add an option to cdr.conf that enables ending CDRs before executing
the "h" extension as opposed to afterwards (issue #6193)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12896 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-14 16:49:34 +00:00
Olle Johansson
f01ad20393 Doxygen fixes (we renamed a lot of README's recently)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-10 10:41:34 +00:00
Olle Johansson
0cbc59563f Doxygen reformatting
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12491 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-10 10:28:08 +00:00
Tilghman Lesher
bb92e0ec1f Bug 5702 - Realtime patch for meetme
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12232 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-03-07 01:12:09 +00:00