Commit Graph

10266 Commits

Author SHA1 Message Date
Kevin P. Fleming
a299485952 since these variables all have static duration, none of them need initializers (they default to zero anyway)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 22:06:56 +00:00
Kevin P. Fleming
3307ae060a move extern declaration for this option to a header file where it belongs
provide an initial value for 'languageprefix' option, instead of relying on randomness to provide a useful value


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 21:08:30 +00:00
Olle Johansson
1e9c141c2d Only include acl.h and lock.h once
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48997 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 21:06:48 +00:00
Olle Johansson
4f157be79e Only set rfc2833compensate flag once (handle_common_options)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48995 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 20:27:59 +00:00
Olle Johansson
f1f8bbaabe - Remove checking for T38 options twice. Keeping them in handle_common_options
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 20:24:03 +00:00
Kevin P. Fleming
0f5aae9688 make the option actually match the documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 18:33:22 +00:00
Kevin P. Fleming
b2c8abbc6d allow 'show memory' and 'show memory summary' to distinguish memory allocations that were done for caching purposes, so they don't look like memory leaks
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 18:29:13 +00:00
Olle Johansson
d2b7e8b247 Be a bit more politically correct
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48985 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 17:59:53 +00:00
Olle Johansson
bfe4bb0f1e Issue #8575 - Buggy cisco MWI support.
Normally we try not to change our software for bugs in other devices. But in
this case, the Cisco phones are so widespread so we try to implement a fix while
waiting for a bugfix from Cisco.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 16:49:45 +00:00
Olle Johansson
e25756dfac - Make sure handle_common_options return 1 when we found a common option
- Move uncommon (only global) option away from handle_common_options
Reported by rizzo. Thanks!


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 16:31:55 +00:00
Olle Johansson
4ea530f2dc Issue 8599 (rizzo) Change invitestate before re-sending invite with auth.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48977 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 16:12:21 +00:00
Olle Johansson
8a42650605 Fix bogus content-length in t38 sdp. (rizzo, #8600)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48975 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-27 15:58:13 +00:00
Joshua Colp
c4bde5b40a Get rid of a needless memory allocation and only create a conference structure in find_conf_realtime if data was read from realtime. (issue #8669 reported by robl)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-26 05:20:08 +00:00
Joshua Colp
9cc04e026d Add an API call that initializes an RTP structure. We need this because chan_sip is cheeky and uses a temporary RTP structure for codec purposes, and the API calls that are used rely on the lock. (Pointed out on asterisk-dev by Andy Wang)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48964 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-26 04:31:58 +00:00
Joshua Colp
84a2b97b17 Clean up autoconf file (gets rid of warnings seen when rebuilding configure) and rebuild configure.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48960 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 17:04:48 +00:00
Russell Bryant
ab43c25d33 Merged revisions 48955 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48955 | russell | 2006-12-25 00:19:48 -0500 (Mon, 25 Dec 2006) | 6 lines

Fix an error introduced by copying and pasting the handling of the >= operator
for the MATH function.  If a single equal sign was used as an operator, the
function would treat it is as if it were the >= operator.  Now, it properly
handles it as an invalid operator.
(issue #8665, patch by tempest1)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48956 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 05:21:20 +00:00
Russell Bryant
a1eee8d2d9 Fix a typo in an error message that indicated that the MGCP channel type could
not be registered, instead of the correct type, OSS.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 21:19:37 +00:00
Russell Bryant
53115ff688 Merged revisions 48943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48943 | russell | 2006-12-24 02:23:07 -0500 (Sun, 24 Dec 2006) | 3 lines

Check for the proper return value on an error in a call to mmap().
This was reported by Andy Wang on the asterisk-dev list.  Thanks!

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 07:25:38 +00:00
Russell Bryant
1208869c00 Merged revisions 48939 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48939 | russell | 2006-12-24 01:47:29 -0500 (Sun, 24 Dec 2006) | 3 lines

Remove a couple of misplaced dots in log messages.  This was reported by
Andrea Spadaccini on the asterisk-dev mailing list.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-24 06:49:31 +00:00
Russell Bryant
395db9ea8b Implement locking for the list of URI handlers to make it thread-safe.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-23 20:22:52 +00:00
Jason Parker
d017436015 Minor fixes for Solaris.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-22 22:33:46 +00:00
Jason Parker
66783cb46f Note to self: Run make before committing...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48888 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-22 21:40:20 +00:00
Jason Parker
ef2f05a518 Fix for issue 7774 - patch by alamantia
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-22 20:43:05 +00:00
Joshua Colp
25f969b6eb Merged revisions 48782 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48782 | file | 2006-12-21 15:25:01 -0500 (Thu, 21 Dec 2006) | 2 lines

Add new silence sound files to the spec for Redhat. (issue #8652 reported by alvaro_palma_aste)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 20:26:29 +00:00
Joshua Colp
3a0a8b1908 vms doesn't exist on non-IMAP storage builds.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-20 02:56:09 +00:00
Joshua Colp
695c04cff3 Pass 'vms' pointer to record_and_review so it is then passed to the IMAP store file function. (issue #8614 reported by punknow)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 23:04:30 +00:00
Joshua Colp
cdab7c62eb find is not the same as bind when it comes to documentation. (issue #8626 reported by johann8384)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 22:00:57 +00:00
Kevin P. Fleming
2703d88576 suppress compiler warnings in this module until it can be improved
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 21:28:04 +00:00
Joshua Colp
8d7bdfc607 Merged revisions 48584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48584 | file | 2006-12-19 16:10:26 -0500 (Tue, 19 Dec 2006) | 2 lines

Free localuser structure when we fail to dial (issue #8612 reported by rizzo)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 21:12:07 +00:00
Luigi Rizzo
0f325ae583 fix a bogus datalen in the frames generated by app_sms
(causing noisy output if you listen to the output!)

This affects trunk as well, whereas 1.2 is ok.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 21:03:02 +00:00
Kevin P. Fleming
8e900c7db7 use the proper variable type for these unixODBC API calls, eliminating warnings on 64-bit platforms that use the 'new' 64-bit types for ODBC API calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 14:57:09 +00:00
Joshua Colp
14f57685be Use env -i to start a fresh environment when going to build menuselect. This is more portable then using unset. (issue #8543 reported by jtodd)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-19 03:46:12 +00:00
Luigi Rizzo
f9e3c1ecb0 unbreak the macro used for incrementing the frame counters.
I don't know when the bug was introduced, but with the typical usage

	c->fin = FRAMECOUNT_INC(c->fin)

the frame counters stay to 0.

affects trunk as well (fix coming).



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18 17:23:29 +00:00
Joshua Colp
11e61ea68a Put thread into proper list if we abort handling due to an error, and also hold the lock while putting it back into the proper idle list so we don't prematurely get a signal. (issue #8604 reported by arkadia)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18 17:15:49 +00:00
Jason Parker
e755759a58 ctrl-w != w (nano search)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18 16:55:46 +00:00
Kevin P. Fleming
9a78e1f90e remove some now-unnecessary explicit includes of autoconfig.h
clean up per-file dependencies during 'make clean'


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18 11:59:24 +00:00
Kevin P. Fleming
64800bdeab need an additional argument here to make the downloads actually occur
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48548 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-17 18:33:24 +00:00
Kevin P. Fleming
ee8ce744c3 use m4 quoting for AC_MSG_NOTICE calls, to keep these calls from thinking they have multiple arguments
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-16 21:34:41 +00:00
Kevin P. Fleming
0509ca82b4 simplify dependency tracking system, using the compiler's built-in method for generating them, and only doing dependency tracking if developer mode is enabled via the configure script
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-16 21:14:34 +00:00
Kevin P. Fleming
be1b5dab06 since we really, really have to have autoconfig.h included before all other headers (especially system headers), the Makefile will now force it to happen (this will fix build problems with files like ast_expr2f.c, where we can't control the inclusion order in the file itself)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-16 20:12:41 +00:00
Kevin P. Fleming
c2490f8e72 instead of initializing the curl library every time the CURL() function is invoked, do it only once per thread (this allows multiple calls to CURL() in the dialplan for a channel to run much more quickly, and also to re-use connections to the server) (thanks to JerJer for frequently complaining about this performance problem)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48513 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-16 04:25:09 +00:00
Joshua Colp
8df2c7228f Turn payload_lock into bridge_lock and make it encompass all RTP structure contents that may relate to bridge information, including who we are bridged to.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48506 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-15 19:55:28 +00:00
Joshua Colp
a0c21d30ac Hold call structure lock in places where a qualify or peer action can destroy it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-15 19:38:51 +00:00
Joshua Colp
195c66b4a1 Lock network retransmission queue in all places that it is used.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-15 19:24:15 +00:00
Olle Johansson
c1f1cf48ac Issue #8592 - treat 504 as 503 (imported from 1.2)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-15 10:55:41 +00:00
Olle Johansson
a8fe77b95b Update to latest IANA spec
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-15 10:18:04 +00:00
Joshua Colp
3706ecbbc5 Use a wakeup variable so that we don't wait on IO indefinitely if packets need to be retransmitted.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-15 06:28:05 +00:00
Joshua Colp
0995fb8aeb Payload values on the RTP structure can change AFTER a bridge has started. This comes from the packet handling of the SIP response when indication that it was answered has been sent. Therefore we need to protect this data with a lock when we read/write. (issue #8232 reported by tgrman)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-14 17:36:12 +00:00
Joshua Colp
87a03da072 Remove direct RTCP bridging. I've come to the conclusion that we should handle this through the core and not just forward it on. Should solve a few bugs.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-14 03:33:30 +00:00
Steve Murphy
898c9dd6fa a block to keep 48434 out of 1.4; the code works fine here
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-13 04:31:12 +00:00