Commit Graph

10230 Commits

Author SHA1 Message Date
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
Kevin P. Fleming
c8e56895b8 when making a release, we can always use wget and we can't run the configure script to find that out...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-12 23:18:14 +00:00
Kevin P. Fleming
979b8eca80 block addition of silence files... not needed here
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-12 05:18:11 +00:00
Joshua Colp
9b8b64f08d Use S_OR in my previous app_voicemail. This is the way it should have been done.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48401 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-12 04:13:48 +00:00
Matt O'Gorman
0a55018f77 new sounds package with 100% more silence
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 23:02:10 +00:00
Matt O'Gorman
d24fad5537 Merged revisions 48394 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.2

........
r48394 | mogorman | 2006-12-11 15:55:43 -0600 (Mon, 11 Dec 2006) | 4 lines

app_externalivr needs a real silence file, and additional
changes to add silence files into core instead of extra
patch provided by bug 8177 with minor additions.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 22:11:35 +00:00
Joshua Colp
8832f97a1f Return non-existant callerid handling to that which it was before. In 1.4 and trunk callerid can be allocated but not have any contents so we have to use ast_strlen_zero before passing it to the relevant functions. (issue #8567 reported by pabelanger)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 21:31:23 +00:00
Tilghman Lesher
fda0dce406 STRFTIME() does not actually require an argument (issue 8540)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 05:37:09 +00:00
Joshua Colp
c866263f50 Merge in my latest RTP changes. Break out RTP and RTCP callback functions so they no longer share a common one.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 05:36:45 +00:00
Joshua Colp
50ee01ccda Use the correct API call to say a device state changed. (Yes, I'm a nub.)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48379 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 05:30:01 +00:00
Joshua Colp
08ab40c1bf Don't access the conference structure after it has been freed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48377 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 04:57:38 +00:00
Tilghman Lesher
cb95f19c3f Merged revisions 48374 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48374 | tilghman | 2006-12-10 18:33:59 -0600 (Sun, 10 Dec 2006) | 5 lines

When doing a fork() and exec(), two problems existed (Issue 8086):
1) Ignored signals stayed ignored after the exec().
2) Signals could possibly fire between the fork() and exec(), causing Asterisk
signal handlers within the child to execute, which caused nasty race conditions.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 00:47:21 +00:00
Steve Murphy
f6cf1458ad Merged revisions 48371 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48371 | murf | 2006-12-09 19:14:13 -0700 (Sat, 09 Dec 2006) | 1 line

This version applies the patch suggested by stevens in bug 7836 (make inbound channel RINGING state consistent with other channels).
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-10 03:04:18 +00:00
Russell Bryant
eeb415e8dd Use locking when accessing the registrations list. This list is not actually
used very often, so the likelihood of there being a problem is pretty small,
but still possible.  For example, if the CLI command to list the registrations
was called at the same time that a reload was occurring and the registrations
list was getting destroyed and rebuilt, a crash could occur.

In passing, go ahead and convert this list to use the linked list macros.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-09 15:59:42 +00:00
Russell Bryant
0bcedc688d Blocked revisions 48361 via svnmerge
........
r48361 | russell | 2006-12-09 10:45:37 -0500 (Sat, 09 Dec 2006) | 6 lines

Use locking when accessing the registrations list.  This list is not actually
used very often, so the likelihood of there being a problem is pretty small,
but still possible.  For example, if the CLI command to list the registrations
was called at the same time that a reload was occurring and the registrations
list was getting destroyed and rebuilt, a crash could occur.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-09 15:47:01 +00:00
Russell Bryant
34384acbc9 Merged revisions 48356 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48356 | russell | 2006-12-07 13:14:13 -0500 (Thu, 07 Dec 2006) | 3 lines

Ensure that the file position is not incremented beyond the total number of
files available for playback.  (issue #8539, ulogic)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-07 18:17:28 +00:00
Steve Murphy
0ab411f2ed Here lies the fixes that killed bug 8423 -- OriginateSuccess and OriginateError incomplete channel name. May it rest in peace.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48349 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-07 15:33:32 +00:00
Olle Johansson
28c36660c7 Issue #8258 - fix handling of 487 being retransmitted to Asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-06 16:25:06 +00:00
Russell Bryant
4ee818eb8f Merged revisions 48322 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48322 | russell | 2006-12-06 11:05:54 -0500 (Wed, 06 Dec 2006) | 3 lines

Fix the name of the rtignoreregexpire option in the sample configuration file.
(issue #8526, arkadia)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48323 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-06 16:15:45 +00:00
Olle Johansson
0fe91149ae Don't send Contact on MESSAGE
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-06 12:27:43 +00:00
Olle Johansson
2d755929aa Block patch from 1.2
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48316 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-06 12:17:31 +00:00
Joshua Colp
6fbb04459c Regenerate configure from Qwell's last commit.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-05 20:45:28 +00:00
Jason Parker
7bad11f0b6 Fix curl version number testing to be much more friendly to non-bash shells.
Issue 8508, patch by me.  This *SHOULD* be POSIX compliant now..


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-05 20:42:52 +00:00
Olle Johansson
694205de93 Merging the invitestate-1.4 branch after successful testing.
Will check if I can solve this with less changes in 1.2.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-05 17:29:43 +00:00
Olle Johansson
7945d4ca35 Add missing s from another repository. (thanks jcmoore!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-05 15:59:05 +00:00
Olle Johansson
027096b3a3 Updating sip.conf.sample with information about T38 not working
when chan_local or chan_agent is involved in the call.

I don't know how big a fix that would be to solve, but this is
the current state of affairs.

(Chan_sip currently checks if the other side of the bridge
has a SIP tech. We could/should implement another check,
possibly for udptl_write or some flag in the ast_channel
structure).


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-05 12:39:30 +00:00
Tilghman Lesher
025c60f84e Oops, forgot to release the odbc handle
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-05 01:41:02 +00:00
Tilghman Lesher
1cb96e926a Merged revisions 48251 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48251 | tilghman | 2006-12-04 19:26:08 -0600 (Mon, 04 Dec 2006) | 6 lines

If the recording in the database is too large, it will fail to retrieve with
an mmap error.  Not too sure why this doesn't happen when we put it in the
database, also, but since that doesn't seem to be broken, I'm not going to fix
it (at least until someone reports it).  Solution is to ask for the file in
smaller chunks.  (Bug 8385)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-05 01:34:34 +00:00
Jason Parker
db68a40698 Fix an issue which didn't allow unavail/greet/busy/etc messages from being saved into ODBC (and probably IMAP).
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-04 21:48:41 +00:00
Jason Parker
2f7c65ba9e Blocked revisions 48246 via svnmerge
........
r48246 | qwell | 2006-12-04 15:20:34 -0600 (Mon, 04 Dec 2006) | 7 lines

Revert change from 8016 - this breaks other stuff...  Needs further review.

Tip: When you've reported a bug about something and somebody has put up a
patch for it..  It's not a good idea to open a completely new bug and say that
something is broken because of the patch in the other bug - PLEASE mention
something in the bug where the patch was actually created.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48247 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-04 21:23:11 +00:00
Jason Parker
a0d84f5061 Blocked revisions 48236 via svnmerge
........
r48236 | qwell | 2006-12-04 13:06:26 -0600 (Mon, 04 Dec 2006) | 4 lines

Fix an issue where a message isn't saved correctly when using ODBC storage and reviewing a message.

Issue 8016 - patch by sokhapkin.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-04 19:08:18 +00:00
Joshua Colp
a4839b46a8 Blocked revisions 48233 via svnmerge
........
r48233 | file | 2006-12-04 13:14:46 -0500 (Mon, 04 Dec 2006) | 2 lines

If the generic bridge tells us not to retry, and we have a frame to spit out then break the bridge. Props to markit in #asterisk-bugs for bringing this up.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48234 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-04 18:16:31 +00:00
Jason Parker
56c03478ab Add documentation to voicemail.conf.sample for ODBC storage.
Issue 8499 - patch by blitzrage.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-04 17:54:46 +00:00
Jason Parker
6ef4425e81 Attempt to document some of the dependencies that are needed for net-snmp
Issue 8499 - initial patch by blitzrage.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48228 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-04 17:43:24 +00:00
Russell Bryant
0d8d3b7c43 When "fetch" is in use, instead of "wget", --continue is not a valid option.
(issue #8451)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-03 06:34:14 +00:00
Olle Johansson
9636bccb7c - Removing one of two pieces of code to handle 481 response on INVITE
- Move handling of REFER response to handle_response_refer()


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-02 21:45:58 +00:00
Olle Johansson
f89143bd13 - Disable RTP hold timers while T.38 fax transmission happens
- Encapsulate RTP timers in the rtp structure so we have one for video and one for audio
   The video one is not used in 1.4, really. Will be used for RTP keepalives when we can send
   something that video phones support in the RTP stream.
   I now this is a big architectual change at this stage for 1.4, but decided it was needed
   to avoid future bug reports.
- Document the RTP NAT keepalive option in sip.conf.sample

Issue 7679 in the bug tracker. Please test.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-02 11:32:51 +00:00