dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

821 Commits

Author SHA1 Message Date
rizzo ff6c03d35f more trailing whitespace and extern removal
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16654 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 10:35:25 +00:00
rizzo 7f4ae1ebd6 removal of trailing whitespace and useless 'extern'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16653 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 10:29:50 +00:00
rizzo 8f71a478a6 another batch of whitespace removal
(trailing space-tabs, and useless 'extern')



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16650 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 10:06:42 +00:00
rizzo 56bd47f73c remove useless 'extern' and trailing whitespace.
(this is a whitespace-only change)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16646 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 10:02:52 +00:00
oej d56b06986f - Change AST_INLINE_AP to AST_INLINE_API for non-386 systems :-)
- Doxygen changes


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16615 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 00:25:50 +00:00
rizzo aee3a9731a remove useless 'extern' in function declarations.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16611 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-31 00:11:45 +00:00
rizzo 1baf6ed326 initial implementation of support for native atomic ops.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16601 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 23:26:22 +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
oej 1c79f1e9fb Doxygen doc updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16551 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 19:05:00 +00:00
rizzo 23da0e5614 remove AST_MUTEX_DEFINE_EXPORTED, which now has no more clients.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16533 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 17:11:49 +00:00
rizzo 70020a2853 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: http://svn.digium.com/svn/asterisk/trunk@16532 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 17:10:11 +00:00
rizzo cd3c76f7f1 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: http://svn.digium.com/svn/asterisk/trunk@16528 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 16:09:23 +00:00
russell 5ccd449638 convert internal timing to be stored as a flag in the ast_options flags
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16477 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 06:26:16 +00:00
oej 60636c2599 Issue #5374 - Enable internal timing of generators (cmantunes)
Thanks everyone involved for hard work, testing and testing!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16473 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 06:07:04 +00:00
oej a9a990c344 Issue #6450 - Don't remove characters from SIP uri's when not needed
Patch by jcomellas, heavily modified by oej


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16425 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-30 04:16:38 +00:00
tilghman bedbd29a79 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: http://svn.digium.com/svn/asterisk/trunk@16193 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 19:30:57 +00:00
oej 30ccbf100f Doxygen updates
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16012 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 04:42:07 +00:00
russell d95c9215a8 fix the provided unsetenv for solaris to return an int like it's supposed to
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16007 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 04:14:12 +00:00
rizzo 3353340ceb Introduce an utility macro to set base, offset and
datalen of a frame, which is a very common operation.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15970 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 02:14:38 +00:00
rizzo 034c8b2f00 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: http://svn.digium.com/svn/asterisk/trunk@15969 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 02:12:31 +00:00
kpfleming ec8e1d98dc 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: http://svn.digium.com/svn/asterisk/trunk@15897 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29 00:32:52 +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 8e14140a52 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: http://svn.digium.com/svn/asterisk/trunk@15817 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 22:25:08 +00:00
kpfleming 9fb8a9a6fd make 'show hints' CLI command show context name for each hint
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15815 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 22:09:38 +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
rizzo f2babce209 remove the long since unused STANDARD_LOCAL_USERS macro
so that new apps will not try to use it by mistake.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15517 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 13:52:04 +00:00
kpfleming 7c697789d6 improve IP TOS support for SIP and IAX2 (issue #6355, code from jcollie plus modifications)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15435 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-28 03:28:52 +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
rizzo dbd425a39f 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: http://svn.digium.com/svn/asterisk/trunk@14747 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-24 15:06:42 +00:00
bweschke 93b938a003 Doxygen typo fix.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14612 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-24 00:55:06 +00:00
kpfleming 80293f38cd don't treat timeouts as errors in ast_cond_timedwait
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14593 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-24 00:03:21 +00:00
rizzo 72b5597185 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: http://svn.digium.com/svn/asterisk/trunk@14382 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23 14:28:16 +00:00
rizzo 6bbf8b5925 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: http://svn.digium.com/svn/asterisk/trunk@14320 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-23 12:47:50 +00:00
file 5faebd5bd6 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: http://svn.digium.com/svn/asterisk/trunk@14235 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-22 21:43:38 +00:00
russell c3f42e93be update LOCAL_USER_ADD to use ast_calloc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@14000 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-21 19:19:35 +00:00
russell 63e2848d64 fix the return value for the provided unsetenv() for Solaris
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13629 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-19 21:28:55 +00:00
oej f09eaa0741 - Doxygen fixes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13627 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-19 20:23:16 +00:00
russell d328c2ea16 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: http://svn.digium.com/svn/asterisk/trunk@13513 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-19 01:39:14 +00:00
russell 4803d1a813 - remove some unnecessary extern keywords
- cleanups to doxygen formatted documentation


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@13393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-18 17:38:51 +00:00
russell e69d1ded06 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: http://svn.digium.com/svn/asterisk/trunk@13357 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-17 21:39:36 +00:00
russell 07881c38a1 clarify which global options are enabled by default
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12897 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14 16:57:35 +00:00
russell 9389382205 add an option to cdr.conf that enables ending CDRs before executing
the "h" extension as opposed to afterwards (issue #6193)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12896 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-14 16:49:34 +00:00
oej 6482d08a58 Doxygen fixes (we renamed a lot of README's recently)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12493 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-10 10:41:34 +00:00
oej fc9cde9594 Doxygen reformatting
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12491 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-10 10:28:08 +00:00
tilghman 2aba4a9f98 Bug 5702 - Realtime patch for meetme
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@12232 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-07 01:12:09 +00:00
tilghman d723568b93 Merged revisions 11503 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r11503 | tilghman | 2006-03-01 11:41:52 -0600 (Wed, 01 Mar 2006) | 2 lines

Bug 6615 - Fix 64bit conversion errors by using a long int

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11504 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-01 17:53:05 +00:00
tilghman 89a70084d9 Merged revisions 11165 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r11165 | tilghman | 2006-02-26 10:26:39 -0600 (Sun, 26 Feb 2006) | 2 lines

Bug 5950 - reenable queue log rotation; also, eliminate redundant code

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11166 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-26 16:40:39 +00:00
oej 45d29914cc Reverting revision 10998 that was accidentaly committed to trunk. My apologies.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10989 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-24 10:50:43 +00:00
oej 5d7fbc4b1e Update to trunk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10988 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-24 10:17:40 +00:00
tilghman d14ce4c739 Bug 6417 - Allow retrieval of raw CDR values
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-23 23:12:41 +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
kpfleming 298fa6c9e1 merge rizzo's patch to make compiler warnings stop the build, and fix a bunch of warnings found
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10805 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-22 22:53:49 +00:00
mogorman 48848cc51d bug in the linkedlists macros where the prev node
was improperly managed when doing removals or insertions.
also solved issues with app_voicemail init. and reload
solves bug #6557


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10766 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-22 20:13:05 +00:00
tilghman e8504c1dce Bug 5984 - Convert file offsets to 64 bit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10579 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-20 23:35:12 +00:00
russell d5bf9e4881 fix up some doxygen formatted comments
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10432 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-18 02:45:38 +00:00
tilghman 17f5af7b6f Bug 6515 - extra semicolon
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10338 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-16 22:53:56 +00:00
russell 5f7ef687fa add StopMixMonitor application (issue #6122, with mods)
Rename and export ast_complete_channels for use by cli completion functions
that want to complete from the list of active channels


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10287 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-16 17:37:03 +00:00
tilghman 284a588ebd Define the initial values separate from the STATIC definitions
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10255 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 23:00:07 +00:00
russell ee948b14c3 now that there are no modules that define their own version of
'struct localuser' (see issue #6216), redefine STANDARD_LOCAL_USER 
to empty, and define the localuser structure in module.h (issue #6494)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10223 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-15 19:07:48 +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 69f7e69869 add 'systemname' option to prefix channel unique IDs with (issue #5825)
convert chan->uniqueid to a stringfield from a fixed-size buffer


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10088 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 23:42:36 +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
kpfleming bddd8bab57 more list macro conversion (issue #6361, plus documentation for new macro)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10067 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-14 22:44:20 +00:00
russell 4c6776c6d7 remove LOCAL_USER_ACF_ADD since it is now the same as LOCAL_USER_ADD
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9800 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-13 20:12:50 +00:00
russell c8911c3450 fix a little typo
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9704 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-12 17:07:45 +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
russell fcdce7ed63 eliminate warning on older versions of gcc
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9629 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 20:54:21 +00:00
russell 0a0b84d8de Merged revisions 9581 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9581 | russell | 2006-02-11 13:15:00 -0500 (Sat, 11 Feb 2006) | 2 lines

now that CDR is a loadable module, don't depend on it elsewhere (issue #6460)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9582 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 18:31:59 +00:00
markster 24dc28a81f Add capability to retrieve list of channel types
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9508 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-11 07:06:47 +00:00
kpfleming 6fdcb5fae5 clean up SMDI support commit:
copyright header format and dates
code formatting and guidelines conformance
use of timeval wrapper functions
use of memory allocation wrappers
propery unref created interface objects during config load
document new variable set by chan_zap in doc/channelvariables.txt
remove useless 'extern' on function prototypes and definitions


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9451 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-10 23:55:47 +00:00
mattf 8ebf7821fe Add smdi support for asterisk (see doc/smdi.txt for config info) (#5945)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9423 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-10 21:50:56 +00:00
russell 78631ee5dd remove windows-style line endings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9150 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-04 16:32:27 +00:00
tilghman d36e97804d Bug 6322 - Implementation of SHA1 in Asterisk (plus dialplan function to use it)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@9138 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-03 22:37:29 +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
russell 4c6278f6b7 add a note to hopefully decrease the chance that someone forgets to increment
.cleancount after changing the ast_channel structure


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8949 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-31 00:24:34 +00:00
markster df81c56d13 Merge Rizzo's waitfor update (bug #4584)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8877 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-30 03:13:33 +00:00
kpfleming 9c36c7330f add channel-driver callbacks for variable length DTMF
teach ast_write() to call those new callbacks


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8851 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-29 05:15:24 +00:00
kpfleming d6dcf07573 make ast_read() able to handle channel read()/exception() methods that return a chain of frames
cleanup code in ast_read()
add AST_FRAME_DTMF_BEGIN and AST_FRAME_DTMF_END so that variable-length DTMF events can be supported
teach chan_zap to send DTMF_BEGIN and DTMF_END when appropriate


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8850 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-29 05:07:04 +00:00
kpfleming de2fd6aebf string field manager improvements:
use multiple memory blocks, instead of realloc(), ensuring that field pointers will never become invalid or change
don't run vs(n)printf twice when doing a field build unless required


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8697 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-26 04:00:05 +00:00
russell 90b3bcb192 convert ast_channel list to use linked list macros (issue #6338)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8571 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-24 20:20:05 +00:00
oej 1e6538d0cc - Report SIP reload in manager (issue 5742 with small changes)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8531 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-24 12:48:44 +00:00
russell 564f2c17e0 eliminate some compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8443 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-22 18:42:06 +00:00
russell 3ac4f66675 don't do the memcpy inside of ast_strdupa if we know that __builtin_alloca
was not successful


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8393 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 18:11:40 +00:00
russell 5ca38239e1 remove optimization where its benefits are negligible
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8368 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-21 03:09:01 +00:00
russell 834f1b5789 - move ast_strdupa from channel.h to utils.h
- attempt to log an error message if the __builtin_alloca inside of ast_strdupa
  fails.
- document the fact that it is known and intended behavior for ast_strdupa to
  cause Asterisk to crash if the alloca fails
- use __builtin_expect when checking for allocation failure in all of the
  allocation wrappers

New Janitor Project!  Anywhere that we check for a successful allocation after
a call to ast_strdupa is unnecessary and should be removed.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8356 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-20 19:24:42 +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 8b2bdbe6c6 allows for use of the originate function from
the cli patch 5847


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8186 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 15:42:48 +00:00
mogorman 08260a7241 cli.h cleanup and additional documentation
from patch 6272 


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8179 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-18 03:53:10 +00:00
oej 8d535ff32b Doxygen update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8118 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-17 03:05:43 +00:00
mattf f295d6727a Small documentation update for new AST_FRAME_MODEM type
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8073 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-14 18:53:10 +00:00
mogorman 61820f0d59 added feature for pausing and unpausing the
monitor app from manager and in the call through
features.conf bug 5395 for the patch


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8070 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-14 00:32:30 +00:00
russell c68a2d2d8e Various cleanups from comments in an email from Luigi Rizzo. Thank you!
- Use a cleaner syntax for declaring the allocation macros
- Fix return value for ast_strdup/ast_strndup
- remove safe_strdup from app_macro, since ast_strup does the same thing
- fix a place in app_queue where ast_calloc+strncpy was used instead of
  ast_strdup.  If you are helping out with these conversions, please watch out
  for other places where this is done.
- add a note to the coding guidelines about the fix to app_queue


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8065 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 18:38:55 +00:00
mogorman f94feca2c5 Made chan_agent code parsing more robust and
implemented new macro code. from 6228.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8064 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-13 18:30:49 +00:00
mattf 18ad8f1708 More changes to make t.38 support work
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8015 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 17:14:58 +00:00
mattf 2fe44fb4ce Changes to add udptl to asterisk (preliminary merging of the t.38 patch)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8014 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 17:12:12 +00:00
mogorman dc631e5cdc As we no longer have chan_modem this file is not used
either thanks rizzo in refrence to 6217


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8013 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-12 16:15:01 +00:00
russell 07ec2feb51 add doxygen documentation and fix various issues with ast_dtmf_stream
(discussed in issue #6087)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7969 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11 05:23:19 +00:00