Kevin P. Fleming
a394f4ad64
use a customized configure macro to tell the script that uCLinux does not have fork() that works
...
drop all startup options and code related to forking if it is not available
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 20:12:18 +00:00
Kevin P. Fleming
ca0a1d3842
don't initialize global variables list twice
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 20:04:59 +00:00
Kevin P. Fleming
6cd063c74d
use new configure-provided wrappers for attributes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40785 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 19:56:45 +00:00
Kevin P. Fleming
61755115c2
restore printing of module name during loading
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 19:56:30 +00:00
Russell Bryant
283bcf4c9f
- simplify and improve astmm by using thread storage instead of a dynamic
...
allocation and free on every call of the function for preparing the string
that will be appended. Then, use the ast_dynamic_str() code instead of the
open coded version that is appended to when waiting for it to be delivered.
- use for loops for list traversals
- convert the manager sessions list to use list macros
- use atomic operations for num_sessions and usecounts
- convert some defines to the equivalent enum
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 19:42:29 +00:00
Russell Bryant
389c605a67
- use the atomic operations for incrementing the unique int
...
- free the string fields allocation if ast_create_channel() failes to open the
alert pipe
- formatting tweaks
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 19:35:28 +00:00
Joshua Colp
1c182a606a
Allow an offset for SIP_HEADER so you can get more then 1 header of the same name if they exist. Why someone would want to grab something like Via headers from dialplan I don't exactly know, but okay. (issue #7563 reported by Corydon76)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 19:33:42 +00:00
Russell Bryant
5d3869a1c8
various cleanups, including ...
...
- Create an astmm_log() macro that logs the same message to both stderr as well
as the mmlog file if it is open instead of duplicating the code everywhere.
- Use for loops for list traversals instead of while loops
- reduce nesting
- ensure locking isn't put around more than is necessary
- localize a struct definition
- change the limit of the path to the mmlog to PATH_MAX instead of 80
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 19:18:09 +00:00
Russell Bryant
d030102eed
- use a common error message in all of the memory allocation macros
...
- add ast_asprintf() and ast_vasprintf()
- tweak doxygen comments
- simplify the definition of a flag macro
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 17:22:24 +00:00
Kevin P. Fleming
53b1c97c9a
build muted by default, since there is no Makefile target for it anymore
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 14:45:58 +00:00
Kevin P. Fleming
5b03b3449b
use a safer process for checking if a module wants to export symbols into the global namespace
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 14:42:03 +00:00
Kevin P. Fleming
ff74cbc116
replace a couple of bare 'make' with $(MAKE)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 13:47:45 +00:00
Kevin P. Fleming
e288ef135e
swap module macro arguments to proper order
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40761 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 11:48:08 +00:00
Jason Parker
79dca5ef75
Fix a potential integer signedness problem.
...
Also fix some locking issues I found at the same time.
Issue 7770, original patch by alamantia
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 07:34:59 +00:00
Kevin P. Fleming
e044e852c6
ensure that 'make' after 'svn update' that includes a configure script change won't run without making the user run configure first
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40753 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 03:58:02 +00:00
Kevin P. Fleming
f3c518a70f
don't declare these variables unless needed
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 03:06:41 +00:00
Kevin P. Fleming
b1288df748
document Makefile target changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:54:05 +00:00
Kevin P. Fleming
94302c792a
could have sworn i committed this change already...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:46:47 +00:00
Kevin P. Fleming
ca6ee66c60
main subdirectory is not dependencies for menuselect input
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:31:01 +00:00
Kevin P. Fleming
f62099a4dd
oops... no pattern rules for bison/flex
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:26:51 +00:00
Kevin P. Fleming
0a27d8bfe5
merge new_loader_completion branch, including (at least):
...
- restructured build tree and makefiles to eliminate recursion problems
- support for embedded modules
- support for static builds
- simpler cross-compilation support
- simpler module/loader interface (no exported symbols)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-21 02:11:39 +00:00
Tilghman Lesher
f60ada0be2
Merged revisions 40692 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r40692 | tilghman | 2006-08-20 17:09:57 -0500 (Sun, 20 Aug 2006) | 2 lines
Reformat to match the contribution style of other contributors
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 22:12:50 +00:00
Jason Parker
d371de5bf6
This is just step 1 in taking over the world.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40663 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 18:03:24 +00:00
Tilghman Lesher
6fec811743
Convert func_odbc to use the prepare_and_execute callback, which helps with a database reconnection issue (bug 7693)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 15:46:00 +00:00
Joshua Colp
2dc0692e86
Blocked revisions 40601 via svnmerge
...
........
r40601 | file | 2006-08-20 00:49:48 -0400 (Sun, 20 Aug 2006) | 2 lines
Turn media level c= parsing on by default (issue #7725 reported by psm)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 04:51:06 +00:00
Jason Parker
c12f6bcdd4
Converted device2str and control2str to use thread local storage.
...
Thanks Russell.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40600 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 04:39:57 +00:00
Joshua Colp
d5152177f3
Properly check to see if parkingnum is a number (issue #7762 reported by robf)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40599 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 04:25:28 +00:00
Joshua Colp
60cf653dde
kpfleming didn't break trunk, it was the aliens. (fix it so that the Makefile references the new name for the XML tree, menuselect-tree)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 01:42:41 +00:00
Jason Parker
6e140aae84
Make the CIPC device string useful
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 01:27:24 +00:00
Jason Parker
1bacbd54f4
Fix minor display issues in "skinny show devices".
...
Patch by wedhorn with minor modifications by me.
Issue 7766
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-20 01:25:02 +00:00
Kevin P. Fleming
fd0ac387a9
deprecate chan_agent callback mode
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-19 17:05:43 +00:00
Russell Bryant
a583f314dc
suppress warnings introduced by putting states in an enum
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40489 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-19 03:50:15 +00:00
Jason Parker
81fa4bcf40
Blocking 1.2 rev 40446 from merging to trunk
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40452 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-19 01:06:53 +00:00
Jason Parker
7c05e6478d
Fix a bug with app_voicemail when trying to use app_directory to leave messages
...
to another user (options 3, 5, 2).
If the context/extension didn't exist in the dialplan (and why should it have to?),
it would fail, saying that it's an "invalid extension".
(issue BE-71)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40426 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-19 00:53:54 +00:00
Russell Bryant
5dc72404ab
convert lists of constants in channel.h to enums instead of #defines
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-19 00:33:44 +00:00
Joshua Colp
590591c16e
Make a zttest of 20 seconds part of the autosupport script (issue #7752 reported by kshumard)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-18 19:22:33 +00:00
Kevin P. Fleming
749cd217c3
Merged revisions 40392 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r40392 | kpfleming | 2006-08-18 14:10:51 -0500 (Fri, 18 Aug 2006) | 2 lines
make a feeble attempt to avoid the 'how do I enable my hardware echo canceler' questions
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-18 19:11:34 +00:00
Steve Murphy
3607ab46c2
Updated this as per wishes of Kevin Fleming. Needs review. Any mistakes/misconceptions/glaring errors?
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-18 02:31:12 +00:00
Matt O'Gorman
a95851978b
updating configure script and putting comments in the docs
...
in english. yay!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40337 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 22:52:07 +00:00
Matt O'Gorman
57ee805062
changes to configure to support older c-client than the
...
2004 version.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 22:39:48 +00:00
Joshua Colp
ecb907e010
Use OSAtomicAdd instead of OSAtomicDecrement to decrement the value by 1.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 21:14:03 +00:00
Russell Bryant
4879edbcc1
update configure script to reflect change to make version check
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40302 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 21:10:16 +00:00
Russell Bryant
98e1cbb957
a lot of systems use GNU Make 3.81beta4, so only consider the first two characters
...
in the minor part of the version string
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40280 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 19:38:15 +00:00
Russell Bryant
a8272afb1f
fix the use of an uninitialized variable (issue #7746 , pointed out by garyhai)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 19:14:20 +00:00
Kevin P. Fleming
50d94fc889
rename to more clearly state what this file shows how to do
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 18:33:24 +00:00
Kevin P. Fleming
70e665018e
typo
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40256 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 18:32:47 +00:00
Russell Bryant
a0e891e63d
fix a little typo in the config file name
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 18:16:22 +00:00
Russell Bryant
1d7b202302
add Steve Murphy's guide on setting up call queues using dynamic queue members,
...
including examples in AEL.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 18:09:59 +00:00
Russell Bryant
5784d21897
Merged revisions 40227 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r40227 | russell | 2006-08-17 12:36:21 -0400 (Thu, 17 Aug 2006) | 3 lines
revert bogus change to attempt to fix bug 7506 which actually causes half of
the channels not to get "Newchannel" events at all (issue #7745 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40228 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 16:37:39 +00:00
Joshua Colp
08b23695b4
Add 'l' option to CDR dialplan function which will cause it to pass the last CDR record to getvar instead of the first. (issue #7689 reported by voipgate)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40226 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-08-17 16:29:44 +00:00