Commit Graph

10207 Commits

Author SHA1 Message Date
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
Russell Bryant
1298cf0ea6 Backport the comment containing the warning regarding the limitations on the
usage of this function.  It is thread safe, but not technically reentrant.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-02 03:50:58 +00:00
Kevin P. Fleming
a2f6499c0a Merged revisions 48192 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48192 | kpfleming | 2006-12-01 17:30:59 -0600 (Fri, 01 Dec 2006) | 2 lines

if Dial() is going to send music-on-hold to the calling party, it has to send PROGRESS first to ensure that the reverse audio path has been setup first (BE-106)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 23:37:28 +00:00
Russell Bryant
fee1970293 FreeBSD 6.1 does not include wget by default. However, it has fetch which will
work just fine for our purposes of downloading the sounds packages.  So, check
for both wget and fetch and the configure script and use what was found to
download them.  If neither one was found, and sound packages are selected that
must be downloaded, the install process will print out an informative error
message indicating the situation.

Also, fix a couple places where "make" was hard coded into some output messages
by replacing them with the $(MAKE) variable.

(issue #8451, initial patch by pabelanger, with additional modifications by me)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 23:16:28 +00:00
Jason Parker
8cbe6025b6 Merged revisions 48183 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48183 | qwell | 2006-12-01 14:19:10 -0600 (Fri, 01 Dec 2006) | 2 lines

Fix a small typo - issue 8848, reported by pabelanger

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48186 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 20:25:51 +00:00
Jason Parker
93eb47fdbe erm, hmm...I typod a merge...that went...strangely
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48185 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 20:24:32 +00:00
Jason Parker
0ba598baea Merged revisions 48182 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 20:19:44 +00:00
Tilghman Lesher
a78cc926d4 Double-unlock error (reported by blitzrage on IRC)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 19:38:59 +00:00
Olle Johansson
98d3fb64ed - Backport of the "limitonpeers" patch from trunk, to fix a lot of issues with queues and SIP device states
- Remove support for T.38 early media, since it's impossible.

(Two patches in one - extra friday evening offer due to being off line from svn today... :-)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-01 17:41:56 +00:00
Joshua Colp
b2b70adede Do not do a partial bridge for Google Talk since we need to handle STUN. (issue #8448 reported by phsultan)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48168 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 21:18:24 +00:00
Olle Johansson
76e35bac11 Issue 8319 - change noncecount before using it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48166 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 20:51:04 +00:00
Joshua Colp
b4edf92931 Blocked revisions 48161 via svnmerge
........
r48161 | file | 2006-11-30 15:27:29 -0500 (Thu, 30 Nov 2006) | 2 lines

Don't write AST_FRAME_NULL or AST_FRAME_IAX frames out to the channel driver. (issue #8390 reported by hselasky)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 20:28:19 +00:00
Joshua Colp
422c97eab7 Merged revisions 48157 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48157 | file | 2006-11-30 15:06:43 -0500 (Thu, 30 Nov 2006) | 2 lines

Only print out debug message if bridged channel is not NULL. (issue #8412 reported by jubilex)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 20:07:55 +00:00
Joshua Colp
0bed57a7f1 Merged revisions 48154 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48154 | file | 2006-11-30 14:04:11 -0500 (Thu, 30 Nov 2006) | 2 lines

Do not listen for DTMF on the bridge that comes into existence when ParkedCall is executed. This means native bridging can now occur for this. (issue #8406 reported by kebl0155)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48155 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 19:05:14 +00:00
Joshua Colp
191c129b4f Merged revisions 48151 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48151 | file | 2006-11-30 13:42:45 -0500 (Thu, 30 Nov 2006) | 2 lines

Print certain CDR messages out at the NOTICE level versus WARNING since they can occur when used with the CDR applications and are perfectly fine. (issue #8367 reported by dartvader)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48152 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 18:47:40 +00:00
Joshua Colp
1771ee4f05 Blocked revisions 48146 via svnmerge
........
r48146 | file | 2006-11-30 13:17:54 -0500 (Thu, 30 Nov 2006) | 2 lines

Remember the pointer to the allocated block of memory so that we can free it and not cause a memory leak. (issue #8449 reported by arkadia)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 18:19:55 +00:00
Joshua Colp
802c3c3ecf Merged revisions 48142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48142 | file | 2006-11-30 12:55:23 -0500 (Thu, 30 Nov 2006) | 2 lines

Document 'port' for SIP peers, came up because of the current mailing list thread. (issue #8450 reported by blitzrage)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 17:57:35 +00:00
Olle Johansson
e49855c2bd Explain status reports and
make codefreeze more happy :-)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 14:29:39 +00:00
Olle Johansson
073e937757 Clean up bad dialogs properly. Caused by GS 487 adapter without CSEQ on separate line
in the REGISTER request. Imported from 1.2.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48129 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-30 09:12:30 +00:00
Joshua Colp
81c438713b Use MAILTMPLEN instead of sizeof in mm_login. (issue #8420 reported by slimey)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-29 21:05:17 +00:00
Olle Johansson
a68edf400f Explain the use device status system implemented in SIP for subscriptions,
queues and manager a bit better.

Like in 1.2, you will get more detailed information if you set a call 
limit for a device. When the call limit is reached, the status system will
report a device as busy.

For queues, setting a call limit per SIP device is propably a requirement.

In most cases, it will work much better if you only use type=peer and not
type=friend. We might decide to backport the new setting from trunk to
apply all call limits to the peer part of a friend only.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-29 19:56:56 +00:00
Joshua Colp
558639ff6a Merged revisions 48106 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r48106 | file | 2006-11-29 11:47:10 -0500 (Wed, 29 Nov 2006) | 2 lines

If the frame was duplicated before writing out then we need to free it. (issue #8429 reported by edguy3)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48107 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-29 16:50:33 +00:00
Olle Johansson
3fe8e34039 Clarify RTP timers. Sorry, grandma.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-29 08:03:36 +00:00
Joshua Colp
53b04eea95 Don't crash if the mailstream was not created.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-29 04:26:53 +00:00